Skip to content

Class daisy::NeoTrellisI2CTransport

ClassList > daisy > NeoTrellisI2CTransport

More...

  • #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

inline bool daisy::NeoTrellisI2CTransport::GetError () 

function Init

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

function NeoTrellisI2CTransport

inline daisy::NeoTrellisI2CTransport::NeoTrellisI2CTransport () 

function Read

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

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

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

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 to
  • value the value to write to the register

function ~NeoTrellisI2CTransport

inline daisy::NeoTrellisI2CTransport::~NeoTrellisI2CTransport () 


The documentation for this class was generated from the following file external-docs/libDaisy/src/dev/neotrellis.h