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

#include <max11300.h>

Classes

struct  Config
 

Public Types

enum class  Result { OK , ERR }
 

Public Member Functions

template<size_t num_devices>
Result Init (Config< num_devices > config)
 
bool Ready ()
 
Result TransmitBlocking (size_t device_index, uint8_t *buff, size_t size)
 
Result TransmitDma (size_t device_index, uint8_t *buff, size_t size, MAX11300Types::TransportCallbackFunctionPtr complete_callback, void *callback_context)
 
Result TransmitAndReceiveBlocking (size_t device_index, uint8_t *tx_buff, uint8_t *rx_buff, size_t size)
 
Result TransmitAndReceiveDma (size_t device_index, uint8_t *tx_buff, uint8_t *rx_buff, size_t size, MAX11300Types::TransportCallbackFunctionPtr complete_callback, void *callback_context)
 
size_t GetNumDevices () const
 

Member Enumeration Documentation

◆ Result

Member Function Documentation

◆ GetNumDevices()

size_t daisy::MAX11300MultiSlaveSpiTransport::GetNumDevices ( ) const
inline

◆ Init()

template<size_t num_devices>
Result daisy::MAX11300MultiSlaveSpiTransport::Init ( Config< num_devices >  config)
inline

◆ Ready()

bool daisy::MAX11300MultiSlaveSpiTransport::Ready ( )
inline

◆ TransmitAndReceiveBlocking()

Result daisy::MAX11300MultiSlaveSpiTransport::TransmitAndReceiveBlocking ( size_t  device_index,
uint8_t tx_buff,
uint8_t rx_buff,
size_t  size 
)
inline

◆ TransmitAndReceiveDma()

Result daisy::MAX11300MultiSlaveSpiTransport::TransmitAndReceiveDma ( size_t  device_index,
uint8_t tx_buff,
uint8_t rx_buff,
size_t  size,
MAX11300Types::TransportCallbackFunctionPtr  complete_callback,
void callback_context 
)
inline

◆ TransmitBlocking()

Result daisy::MAX11300MultiSlaveSpiTransport::TransmitBlocking ( size_t  device_index,
uint8_t buff,
size_t  size 
)
inline

◆ TransmitDma()

Result daisy::MAX11300MultiSlaveSpiTransport::TransmitDma ( size_t  device_index,
uint8_t buff,
size_t  size,
MAX11300Types::TransportCallbackFunctionPtr  complete_callback,
void callback_context 
)
inline

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