Class CommInterface

Inheritance Relationships

Derived Types

Class Documentation

class CommInterface

Interface for the communication with the BNO08x sensor This class defines the interface for the communication with the BNO08x sensor. It is used by the BNO08x class to abstract the communication with the sensor, so that the BNO08x class can be used with different communication interfaces (I2C, UART, SPI).

Subclassed by I2CInterface, SPIInterface, UARTInterface

Public Functions

inline virtual ~CommInterface()
virtual int open() = 0
virtual void close() = 0
virtual int read(uint8_t *pBuffer, unsigned len, uint32_t *t_us) = 0
virtual int write(uint8_t *pBuffer, unsigned len) = 0
inline uint32_t getTimeUs()