SPI Parameters. More...
#include <SPI.h>
Data Fields | |
SPI_TransferMode | transferMode |
uint32_t | transferTimeout |
SPI_CallbackFxn | transferCallbackFxn |
SPI_Mode | mode |
uint32_t | bitRate |
SPI bit rate in Hz. More... | |
uint32_t | dataSize |
SPI_FrameFormat | frameFormat |
void * | custom |
SPI Parameters.
SPI Parameters are used to with the SPI_open() call. Default values for these parameters are set using SPI_Params_init().
SPI_TransferMode SPI_Params::transferMode |
Blocking or Callback mode
uint32_t SPI_Params::transferTimeout |
Transfer timeout in system ticks
SPI_CallbackFxn SPI_Params::transferCallbackFxn |
Callback function pointer
SPI_Mode SPI_Params::mode |
Controller or Peripheral mode
uint32_t SPI_Params::bitRate |
SPI bit rate in Hz.
Maximum bit rates supported by hardware:
Device Family | Peripheral Max (MHz) | Controller Max (MHz) |
---|---|---|
CC13XX/CC26XX | 4 MHz | 12 MHz |
CC32XX | 20 MHz | 20 MHz |
Please note that depending on the specific use case, the driver may not support the hardware's maximum bit rate.
uint32_t SPI_Params::dataSize |
SPI data frame size in bits
SPI_FrameFormat SPI_Params::frameFormat |
SPI frame format
void* SPI_Params::custom |
Custom argument used by driver implementation