Class daisy::NeoTrellisI2CTransport¶
ClassList > daisy > NeoTrellisI2CTransport
#include <neotrellis.h>
Classes¶
Type | Name |
---|---|
struct | Config |
Public Functions¶
Type | Name |
---|---|
bool | GetError () |
void | Init (Config config) |
NeoTrellisI2CTransport () |
|
void | Read (uint8_t * data, uint16_t size) |
uint8_t | Read8 (uint8_t reg_high, uint8_t reg_low, int delay) |
void | ReadLen (uint8_t reg_high, uint8_t reg_low, uint8_t * buff, uint16_t size, int delay) |
void | Write (uint8_t * data, uint16_t size) |
void | Write8 (uint8_t reg_high, uint8_t reg_low, uint8_t value) |
~NeoTrellisI2CTransport () |
Detailed Description¶
I2C Transport for NeoTrellis
Public Functions Documentation¶
function GetError¶
function Init¶
function NeoTrellisI2CTransport¶
function Read¶
function Read8¶
inline uint8_t daisy::NeoTrellisI2CTransport::Read8 (
uint8_t reg_high,
uint8_t reg_low,
int delay
)
Reads an 8 bit value
Parameters:
reg
the register address to read from
Returns:
the 16 bit data value read from the device
function ReadLen¶
inline void daisy::NeoTrellisI2CTransport::ReadLen (
uint8_t reg_high,
uint8_t reg_low,
uint8_t * buff,
uint16_t size,
int delay
)
function Write¶
function Write8¶
inline void daisy::NeoTrellisI2CTransport::Write8 (
uint8_t reg_high,
uint8_t reg_low,
uint8_t value
)
Writes an 8 bit value
Parameters:
reg
the register address to write tovalue
the value to write to the register
function ~NeoTrellisI2CTransport¶
The documentation for this class was generated from the following file external-docs/libDaisy/src/dev/neotrellis.h