MIBSPI Parameters.
MIBSPI Parameters are used with the MIBSPI_open() call. Default values for these parameters are set using MIBSPI_Params_init().
Data Fields | |
MIBSPI_Mode | mode |
MIBSPI_TransferMode | transferMode |
Bool | iCountSupport |
MIBSPI_CallbackFxn | transferCallbackFxn |
uint32_t | dataSize |
MIBSPI_FrameFormat | frameFormat |
union { | |
MIBSPI_ControllerModeParams controllerParams | |
MIBSPI_PeripheralModeParams peripheralParams | |
} | u |
MIBSPI_PinMode | pinMode |
MIBSPI_DataShiftFmt | shiftFormat |
uint8_t | dmaEnable |
int32_t | edmaInst |
void * | dmaHandle |
uint8_t | eccEnable |
uint8_t | csHold |
uint16_t | txDummyValue |
uint32_t | transferTimeout |
Bool | compatibilityMode |
uint16_t | edmaLinkParamId |
EDMA link channel id Needs to be set only if compatibility mode is TRUE The MIBSPI requries an additional param to terminate Tx transfer. This should be from the pool of free param sets More... | |
MIBSPI_Mode MIBSPI_OpenParams::mode |
Controller or Peripheral mode
MIBSPI_TransferMode MIBSPI_OpenParams::transferMode |
Blocking or Callback mode
Bool MIBSPI_OpenParams::iCountSupport |
Support for multi icount in one transfer to achieve high throughput, this is only supported in blocking mode
MIBSPI_CallbackFxn MIBSPI_OpenParams::transferCallbackFxn |
Callback function pointer
uint32_t MIBSPI_OpenParams::dataSize |
SPI data frame size in bits
MIBSPI_FrameFormat MIBSPI_OpenParams::frameFormat |
SPI frame format
MIBSPI_ControllerModeParams MIBSPI_OpenParams::controllerParams |
Configuration dedicated to controller mode, refer to MIBSPI_ControllerModeParams
MIBSPI_PeripheralModeParams MIBSPI_OpenParams::peripheralParams |
Configuration dedicated to peripheral mode, refer to MIBSPI_PeripheralModeParams
union { ... } MIBSPI_OpenParams::u |
union to hold either controller mode or peripheral mode params
MIBSPI_PinMode MIBSPI_OpenParams::pinMode |
Pin operation Mode, refer to MIBSPI_PinMode
MIBSPI_DataShiftFmt MIBSPI_OpenParams::shiftFormat |
SPI Data shift format, refer to MIBSPI_DataShiftFmt
uint8_t MIBSPI_OpenParams::dmaEnable |
DMA mode enable. When Dma mode is disable, SPI driver is operated in polling mode, there is while(1) loop waiting for hardware to finish
int32_t MIBSPI_OpenParams::edmaInst |
EDMA instance
void* MIBSPI_OpenParams::dmaHandle |
EDMA handle
uint8_t MIBSPI_OpenParams::eccEnable |
ECC mode enable
uint8_t MIBSPI_OpenParams::csHold |
CS Hold enable
uint16_t MIBSPI_OpenParams::txDummyValue |
16 bit value transmitted when no TX data is provided for SPI_tranfer()
uint32_t MIBSPI_OpenParams::transferTimeout |
Transfer timeout in system ticks (Not supported with all implementations
Bool MIBSPI_OpenParams::compatibilityMode |
Enable Compatibility mode operation of MIBSPI. MIBSPI RAM will be disabled
uint16_t MIBSPI_OpenParams::edmaLinkParamId |
EDMA link channel id Needs to be set only if compatibility mode is TRUE The MIBSPI requries an additional param to terminate Tx transfer. This should be from the pool of free param sets
Link param id.