flexio_spi_slave_user_config_t Struct Reference

Slave configuration structure. More...

#include <platform/drivers/inc/flexio_spi_driver.h>

Data Fields

flexio_driver_type_t driverType
 
flexio_spi_transfer_bit_order_t bitOrder
 
flexio_spi_transfer_size_t transferSize
 
uint8_t clockPolarity
 
uint8_t clockPhase
 
uint8_t mosiPin
 
uint8_t misoPin
 
uint8_t sckPin
 
uint8_t ssPin
 
spi_callback_t callback
 
void * callbackParam
 
uint8_t rxDMAChannel
 
uint8_t txDMAChannel
 

Detailed Description

Slave configuration structure.

This structure is used to provide configuration parameters for the flexio_spi slave at initialization time. Implements : flexio_spi_slave_user_config_t_Class

Definition at line 97 of file flexio_spi_driver.h.

Field Documentation

Bit order: LSB-first / MSB-first

Definition at line 100 of file flexio_spi_driver.h.

spi_callback_t callback

User callback function. Note that this function will be called from the interrupt service routine, so its execution time should be as small as possible. It can be NULL if it is not needed

Definition at line 108 of file flexio_spi_driver.h.

void* callbackParam

Parameter for the callback function

Definition at line 112 of file flexio_spi_driver.h.

uint8_t clockPhase

Clock Phase (CPHA) 0 = sample on leading clock edge; 1 = sample on trailing clock edge

Definition at line 103 of file flexio_spi_driver.h.

uint8_t clockPolarity

Clock Polarity (CPOL) 0 = active-low clock; 1 = active-high clock

Definition at line 102 of file flexio_spi_driver.h.

Driver type: interrupts/polling/DMA

Definition at line 99 of file flexio_spi_driver.h.

uint8_t misoPin

Flexio pin to use as MISO pin

Definition at line 105 of file flexio_spi_driver.h.

uint8_t mosiPin

Flexio pin to use as MOSI pin

Definition at line 104 of file flexio_spi_driver.h.

uint8_t rxDMAChannel

Rx DMA channel number. Only used in DMA mode

Definition at line 113 of file flexio_spi_driver.h.

uint8_t sckPin

Flexio pin to use as SCK pin

Definition at line 106 of file flexio_spi_driver.h.

uint8_t ssPin

Flexio pin to use as SS pin

Definition at line 107 of file flexio_spi_driver.h.

Transfer size in bytes: 1/2/4

Definition at line 101 of file flexio_spi_driver.h.

uint8_t txDMAChannel

Tx DMA channel number. Only used in DMA mode

Definition at line 114 of file flexio_spi_driver.h.


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