145 void* callback_context);
170 void* callback_context);
I2CHandle(const I2CHandle &other)=default
const Config & GetConfig() const
Result ReadDataAtAddress(uint16_t address, uint16_t mem_address, uint16_t mem_address_size, uint8_t *data, uint16_t data_size, uint32_t timeout)
Result TransmitDma(uint16_t address, uint8_t *data, uint16_t size, CallbackFunctionPtr callback, void *callback_context)
Result Init(const Config &config)
I2CHandle()
Definition i2c.h:83
Result
Definition i2c.h:72
Result ReceiveBlocking(uint16_t address, uint8_t *data, uint16_t size, uint32_t timeout)
void(* CallbackFunctionPtr)(void *context, Result result)
Definition i2c.h:120
I2CHandle & operator=(const I2CHandle &other)=default
Direction
Definition i2c.h:78
Result TransmitBlocking(uint16_t address, uint8_t *data, uint16_t size, uint32_t timeout)
Result ReceiveDma(uint16_t address, uint8_t *data, uint16_t size, CallbackFunctionPtr callback, void *callback_context)
Result WriteDataAtAddress(uint16_t address, uint16_t mem_address, uint16_t mem_address_size, uint8_t *data, uint16_t data_size, uint32_t timeout)
Definition leddriver.h:33
Hardware defines and helpers for daisy field platform.
Definition index.h:2
void dsy_i2c_global_init()
struct daisy::I2CHandle::Config::@15 pin_config
Mode mode
Definition i2c.h:65
Pin scl
Definition i2c.h:60
Speed speed
Definition i2c.h:64
uint8_t address
Definition i2c.h:67
Peripheral periph
Definition i2c.h:57
Peripheral
Definition i2c.h:40
Pin sda
Definition i2c.h:61
representation of hardware port/pin combination
Definition daisy_core.h:193