Tool Libs
UMIT-TIROL Institute of Automation and Control Engineering library collection
 
Loading...
Searching...
No Matches
I2C::Device Struct Referenceabstract

generic I2C device wrapper. More...

#include <i2c.h>

Inherited by ADS1115 [private], AS5048B [private], BMI160, BNO085, HMC5883L, and QMC5883L.

Collaboration diagram for I2C::Device:
[legend]

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
 

Detailed Description

generic I2C device wrapper.

Implement I2C devices with this as a base class to make use of the asynchronous I2C::HW bus.

Note
currently only implements 7bit addressing

Member Function Documentation

◆ callback()

virtual void I2C::Device::callback ( const Request req)
pure virtual

callback.

is called as soon as transmission completed successfully

Implemented in AS5048B, BMI160, BNO085, HMC5883L, and QMC5883L.


The documentation for this struct was generated from the following file: