libDaisy
Hardware Library for Daisy
Loading...
Searching...
No Matches
daisy::NeoTrellisI2CTransport Class Reference

Detailed Description

I2C Transport for NeoTrellis

#include <neotrellis.h>

Classes

struct  Config
 

Public Member Functions

 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 ()
 

Constructor & Destructor Documentation

◆ NeoTrellisI2CTransport()

daisy::NeoTrellisI2CTransport::NeoTrellisI2CTransport ( )
inline

◆ ~NeoTrellisI2CTransport()

daisy::NeoTrellisI2CTransport::~NeoTrellisI2CTransport ( )
inline

Member Function Documentation

◆ GetError()

bool daisy::NeoTrellisI2CTransport::GetError ( )
inline

◆ Init()

void daisy::NeoTrellisI2CTransport::Init ( Config  config)
inline

◆ Read()

void daisy::NeoTrellisI2CTransport::Read ( uint8_t data,
uint16_t  size 
)
inline

◆ Read8()

uint8_t daisy::NeoTrellisI2CTransport::Read8 ( uint8_t  reg_high,
uint8_t  reg_low,
int  delay 
)
inline

Reads an 8 bit value

Parameters
regthe register address to read from
Returns
the 16 bit data value read from the device

◆ ReadLen()

void daisy::NeoTrellisI2CTransport::ReadLen ( uint8_t  reg_high,
uint8_t  reg_low,
uint8_t buff,
uint16_t  size,
int  delay 
)
inline

◆ Write()

void daisy::NeoTrellisI2CTransport::Write ( uint8_t data,
uint16_t  size 
)
inline

◆ Write8()

void daisy::NeoTrellisI2CTransport::Write8 ( uint8_t  reg_high,
uint8_t  reg_low,
uint8_t  value 
)
inline

Writes an 8 bit value

Parameters
regthe register address to write to
valuethe value to write to the register

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