|
SatCat5
|
Polymorphic API for a generic I2C interface.
#include <cfg_i2c.h>
Public Member Functions | |
| virtual bool | busy ()=0 |
| Is the I2C controller currently busy? | |
| virtual bool | read (const satcat5::util::I2cAddr &devaddr, u8 regbytes, u32 regaddr, u8 nread, satcat5::cfg::I2cEventListener *callback=0)=0 |
| Add a read operation to the queue. More... | |
| virtual bool | write (const satcat5::util::I2cAddr &devaddr, u8 regbytes, u32 regaddr, u8 nwrite, const u8 *data, satcat5::cfg::I2cEventListener *callback=0)=0 |
| Add a write operation to the queue. More... | |
|
pure virtual |
Add a read operation to the queue.
Implemented in satcat5::cfg::I2c, and satcat5::device::i2c::Tca9548.
|
pure virtual |
Add a write operation to the queue.
Implemented in satcat5::cfg::I2c, and satcat5::device::i2c::Tca9548.