13 #ifndef RTDM_I2CPORT_H
14 #define RTDM_I2CPORT_H
66 ssize_t
Write(
const void *buf,
size_t nbyte);
76 ssize_t
Read(
void *buf,
size_t nbyte);
102 #endif // RTDM_I2CPORT_H
Base class for all Framework's classes.
Definition: Object.h:83
namespace of the flair Framework
Definition: Ahrs.h:19
unsigned long long Time
Time definition, in ns.
Definition: Object.h:55
RTDM_I2cPort(const Object *parent, std::string name, std::string device)
Constructor.
int SetSlave(uint16_t address)
Set slave's address.
ssize_t Write(const void *buf, size_t nbyte)
Write datas.
~RTDM_I2cPort()
Destructor.
Class for real time i2c port using RTDM.
Definition: RTDM_I2cPort.h:27
Base class for i2c port.
Definition: I2cPort.h:31
void SetRxTimeout(Time timeout_ns)
Set RX timeout.
ssize_t Read(void *buf, size_t nbyte)
Read datas.
void SetTxTimeout(Time timeout_ns)
Set TX timeout.