generic I2C device wrapper. More...
#include <i2c.h>
Inherited by ADS1115 [private], AS5048B [private], BMI160, BNO085, HMC5883L, and QMC5883L.
Public Member Functions | |
| Device (Sink< Request > &bus, uint8_t address) | |
| construct device on bus with given address | |
| virtual void | callback (const Request &req)=0 |
| callback. | |
Public Attributes | |
| const uint8_t | address |
| unshifted 7bit I2C device address | |
generic I2C device wrapper.
Implement I2C devices with this as a base class to make use of the asynchronous I2C::HW bus.
|
pure virtual |