56 virtual int SetSlave(uint16_t address) = 0;
66 virtual ssize_t
Write(
const void *buf,
size_t nbyte) = 0;
76 virtual ssize_t
Read(
void *buf,
size_t nbyte) = 0;
Base class for all Framework's classes.
Definition: Object.h:83
namespace of the flair Framework
Definition: Ahrs.h:19
Class defining a mutex.
Definition: Mutex.h:29
~I2cPort()
Destructor.
Definition: I2cPort.h:47
unsigned long long Time
Time definition, in ns.
Definition: Object.h:55
virtual void SetRxTimeout(Time timeout_ns)=0
Set RX timeout.
virtual int SetSlave(uint16_t address)=0
Set slave's address.
virtual void SetTxTimeout(Time timeout_ns)=0
Set TX timeout.
Base class for i2c port.
Definition: I2cPort.h:31
virtual ssize_t Read(void *buf, size_t nbyte)=0
Read datas.
virtual ssize_t Write(const void *buf, size_t nbyte)=0
Write datas.
I2cPort(const Object *parent, std::string name)
Constructor.
Definition: I2cPort.h:41