Skip to content

daisy::NeoTrellisI2CTransport

Module: External

More...

#include <neotrellis.h>

Public Classes

Name
struct Config

Public Functions

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

Detailed Description

class daisy::NeoTrellisI2CTransport;

I2C Transport for NeoTrellis

Public Functions Documentation

function NeoTrellisI2CTransport

inline NeoTrellisI2CTransport()

function ~NeoTrellisI2CTransport

inline ~NeoTrellisI2CTransport()

function Init

inline void Init(
    Config config
)

function Write

inline void Write(
    uint8_t * data,
    uint16_t size
)

function Read

inline void Read(
    uint8_t * data,
    uint16_t size
)

function ReadLen

inline void ReadLen(
    uint8_t reg_high,
    uint8_t reg_low,
    uint8_t * buff,
    uint16_t size,
    int delay
)

function Write8

inline void Write8(
    uint8_t reg_high,
    uint8_t reg_low,
    uint8_t value
)

Parameters:

  • reg the register address to write to
  • value the value to write to the register

Writes an 8 bit value


function Read8

inline uint8_t Read8(
    uint8_t reg_high,
    uint8_t reg_low,
    int delay
)

Parameters:

  • reg the register address to read from

Return: the 16 bit data value read from the device

Reads an 8 bit value


function GetError

inline bool GetError()

---

Updated on 2024-01-03 at 19:41:01 +0000