182 void* callback_context);
198 void* callback_context);
217 void* callback_context);
Definition leddriver.h:33
Result BlockingTransmitAndReceive(uint8_t *tx_buff, uint8_t *rx_buff, size_t size, uint32_t timeout=100)
Result DmaTransmit(uint8_t *buff, size_t size, SpiHandle::StartCallbackFunctionPtr start_callback, SpiHandle::EndCallbackFunctionPtr end_callback, void *callback_context)
void(* EndCallbackFunctionPtr)(void *context, Result result)
Definition spi.h:137
Result DmaReceive(uint8_t *buff, size_t size, SpiHandle::StartCallbackFunctionPtr start_callback, SpiHandle::EndCallbackFunctionPtr end_callback, void *callback_context)
Result DmaTransmitAndReceive(uint8_t *tx_buff, uint8_t *rx_buff, size_t size, SpiHandle::StartCallbackFunctionPtr start_callback, SpiHandle::EndCallbackFunctionPtr end_callback, void *callback_context)
SpiHandle(const SpiHandle &other)=default
const Config & GetConfig() const
Result BlockingTransmit(uint8_t *buff, size_t size, uint32_t timeout=100)
Result BlockingReceive(uint8_t *buffer, uint16_t size, uint32_t timeout)
Result Init(const Config &config)
DmaDirection
Definition spi.h:122
SpiHandle & operator=(const SpiHandle &other)=default
SpiHandle()
Definition spi.h:110
void(* StartCallbackFunctionPtr)(void *context)
Definition spi.h:135
Result
Definition spi.h:116
void dsy_spi_global_init()
Hardware defines and helpers for daisy field platform.
Definition index.h:2
representation of hardware port/pin combination
Definition daisy_core.h:193
ClockPolarity clock_polarity
Definition spi.h:104
BaudPrescaler
Definition spi.h:72
Peripheral periph
Definition spi.h:100
Pin nss
Definition spi.h:88
ClockPolarity
Definition spi.h:53
struct daisy::SpiHandle::Config::@18 pin_config
Direction
Definition spi.h:45
ClockPhase
Definition spi.h:59
Mode mode
Definition spi.h:101
Peripheral
Definition spi.h:29
NSS nss
Definition spi.h:106
Pin mosi
Definition spi.h:87
Pin sclk
Definition spi.h:85
ClockPhase clock_phase
Definition spi.h:105
BaudPrescaler baud_prescaler
Definition spi.h:107
Config()
Definition spi.h:91
Pin miso
Definition spi.h:86
Direction direction
Definition spi.h:102
unsigned long datasize
Definition spi.h:103