13 #ifndef UNIX_I2CPORT_H
14 #define UNIX_I2CPORT_H
80 ssize_t
Write(
const void *buf,
size_t nbyte);
90 ssize_t
Read(
void *buf,
size_t nbyte);
98 #endif // UNIX_I2CPORT_H
~Unix_I2cPort()
Destructor.
Base class for all Framework's classes.
Definition: Object.h:83
namespace of the flair Framework
Definition: Ahrs.h:19
Unix_I2cPort(const Object *parent, std::string port_name, std::string device)
Constructor.
unsigned long long Time
Time definition, in ns.
Definition: Object.h:55
void SetTxTimeout(Time timeout_ns)
Set TX timeout.
ssize_t Write(const void *buf, size_t nbyte)
Write datas.
int SetSlave(uint16_t address)
Set slave's address.
ssize_t Read(void *buf, size_t nbyte)
Read datas.
Base class for i2c port.
Definition: I2cPort.h:31
Class for unix serial port.
Definition: Unix_I2cPort.h:25
void SetRxTimeout(Time timeout_ns)
Set RX timeout.