Abstract I2C transport.
More...
#include <SegTransport.h>
|
| virtual | ~SegTransportI2C ()=default |
| |
| virtual void | write (uint8_t address, uint8_t data)=0 |
| | Write one byte to an I2C device.
|
| |
| virtual void | write (uint8_t address, uint8_t *data, size_t length)=0 |
| | Write multiple bytes to an I2C device.
|
| |
◆ ~SegTransportI2C()
| virtual SegTransportI2C::~SegTransportI2C |
( |
| ) |
|
|
virtualdefault |
◆ write() [1/2]
| virtual void SegTransportI2C::write |
( |
uint8_t |
address, |
|
|
uint8_t * |
data, |
|
|
size_t |
length |
|
) |
| |
|
pure virtual |
Write multiple bytes to an I2C device.
- Parameters
-
| address | I2C address |
| data | Pointer to data buffer |
| length | Number of bytes to write |
Implemented in SegTransportI2CArduino.
◆ write() [2/2]
| virtual void SegTransportI2C::write |
( |
uint8_t |
address, |
|
|
uint8_t |
data |
|
) |
| |
|
pure virtual |
Write one byte to an I2C device.
- Parameters
-
| address | I2C address |
| data | Byte to write |
Implemented in SegTransportI2CArduino.
The documentation for this class was generated from the following file: