Arduino TwoWire implementation of the I2C transport.
More...
#include <SegTransport.h>
|
| | SegTransportI2CArduino (TwoWire &i2c) |
| | Create Arduino I2C transport.
|
| |
| void | write (uint8_t address, uint8_t data) override |
| | Write one byte to an I2C device.
|
| |
| void | write (uint8_t address, uint8_t *data, size_t length) override |
| | Write multiple bytes to an I2C device.
|
| |
| virtual | ~SegTransportI2C ()=default |
| |
Arduino TwoWire implementation of the I2C transport.
◆ SegTransportI2CArduino()
| SegTransportI2CArduino::SegTransportI2CArduino |
( |
TwoWire & |
i2c | ) |
|
Create Arduino I2C transport.
- Parameters
-
| i2c | Reference to the TwoWire bus instance |
◆ write() [1/2]
| void SegTransportI2CArduino::write |
( |
uint8_t |
address, |
|
|
uint8_t * |
data, |
|
|
size_t |
length |
|
) |
| |
|
overridevirtual |
Write multiple bytes to an I2C device.
- Parameters
-
| address | I2C address |
| data | Pointer to data buffer |
| length | Number of bytes to write |
Implements SegTransportI2C.
◆ write() [2/2]
| void SegTransportI2CArduino::write |
( |
uint8_t |
address, |
|
|
uint8_t |
data |
|
) |
| |
|
overridevirtual |
Write one byte to an I2C device.
- Parameters
-
| address | I2C address |
| data | Byte to write |
Implements SegTransportI2C.
◆ _i2c
| TwoWire& SegTransportI2CArduino::_i2c |
|
private |
The documentation for this class was generated from the following files: