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

Detailed Description

I2C Transport for NeoPixel

#include <neopixel.h>

Classes

struct  Config
 

Public Member Functions

 NeoPixelI2CTransport ()
 
 ~NeoPixelI2CTransport ()
 
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)
 
void WriteLen (uint8_t reg_high, uint8_t reg_low, uint8_t *buff, uint16_t size)
 
void Write8 (uint8_t reg_high, uint8_t reg_low, uint8_t value)
 
uint8_t Read8 (uint8_t reg_high, uint8_t reg_low)
 
bool GetError ()
 

Constructor & Destructor Documentation

◆ NeoPixelI2CTransport()

daisy::NeoPixelI2CTransport::NeoPixelI2CTransport ( )
inline

◆ ~NeoPixelI2CTransport()

daisy::NeoPixelI2CTransport::~NeoPixelI2CTransport ( )
inline

Member Function Documentation

◆ GetError()

bool daisy::NeoPixelI2CTransport::GetError ( )
inline

◆ Init()

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

◆ Read()

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

◆ Read8()

uint8_t daisy::NeoPixelI2CTransport::Read8 ( uint8_t  reg_high,
uint8_t  reg_low 
)
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::NeoPixelI2CTransport::ReadLen ( uint8_t  reg_high,
uint8_t  reg_low,
uint8_t buff,
uint16_t  size 
)
inline

◆ Write()

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

◆ Write8()

void daisy::NeoPixelI2CTransport::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

◆ WriteLen()

void daisy::NeoPixelI2CTransport::WriteLen ( uint8_t  reg_high,
uint8_t  reg_low,
uint8_t buff,
uint16_t  size 
)
inline

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