Search
Project
General
Profile
Sign in
Register
Home
Projects
Redmine shortcuts
Search
:
MitySOM-5CSX Altera Cyclone V
All Projects
Mity CPU Platforms
»
MitySOM-5CSX Altera Cyclone V
Overview
Activity
Wiki
Forums
Download (545 Bytes)
RE: I2C Access with 5CSX Development Board
» i2cdevice.h
Michael Williamson
, 06/17/2014 11:04 AM
#ifndef I2CDEVICE_H
#define I2CDEVICE_H
namespace
MityDSP
{
class
tcI2CDevice
{
public:
static
const
int
gnBaseErr
=
-
1000
;
static
const
int
gnBaseDevErr
=
-
1100
;
tcI2CDevice
(
int
bus
,
int
slave_addr
);
virtual
~
tcI2CDevice
(
void
);
virtual
int
Open
(
void
);
virtual
int
Close
(
void
);
virtual
const
char
*
GetError
(
int
err
);
int
Bus
()
const
{
return
mnBus
;
}
int
Addr
()
const
{
return
mnAddr
;
}
protected
:
int
mnFd
;
int
mnBus
;
int
mnAddr
;
};
};
#endif
« Previous
1
…
3
4
5
6
Next »
(5-5/6)
Go to top
Loading...