I2C Transport for NeoTrellis
#include <neotrellis.h>
|
| NeoTrellisI2CTransport () |
|
| ~NeoTrellisI2CTransport () |
|
void | Init (Config config) |
|
void | Write (uint8_t *data, uint16_t size) |
|
void | Read (uint8_t *data, uint16_t size) |
|
void | ReadLen (uint8_t reg_high, uint8_t reg_low, uint8_t *buff, uint16_t size, int delay) |
|
void | Write8 (uint8_t reg_high, uint8_t reg_low, uint8_t value) |
|
uint8_t | Read8 (uint8_t reg_high, uint8_t reg_low, int delay) |
|
bool | GetError () |
|
◆ NeoTrellisI2CTransport()
daisy::NeoTrellisI2CTransport::NeoTrellisI2CTransport |
( |
| ) |
|
|
inline |
◆ ~NeoTrellisI2CTransport()
daisy::NeoTrellisI2CTransport::~NeoTrellisI2CTransport |
( |
| ) |
|
|
inline |
◆ GetError()
bool daisy::NeoTrellisI2CTransport::GetError |
( |
| ) |
|
|
inline |
◆ Init()
void daisy::NeoTrellisI2CTransport::Init |
( |
Config |
config | ) |
|
|
inline |
◆ Read()
◆ Read8()
Reads an 8 bit value
- Parameters
-
reg | the register address to read from |
- Returns
- the 16 bit data value read from the device
◆ ReadLen()
◆ Write()
◆ Write8()
Writes an 8 bit value
- Parameters
-
reg | the register address to write to |
value | the value to write to the register |
The documentation for this class was generated from the following file: