Master configuration structure. More...
#include <platform/drivers/inc/flexio_spi_driver.h>
Data Fields | |
uint32_t | baudRate |
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 |
Master configuration structure.
This structure is used to provide configuration parameters for the flexio_spi master at initialization time. Implements : flexio_spi_master_user_config_t_Class
Definition at line 70 of file flexio_spi_driver.h.
uint32_t baudRate |
Baud rate in hertz
Definition at line 72 of file flexio_spi_driver.h.
flexio_spi_transfer_bit_order_t bitOrder |
Bit order: LSB-first / MSB-first
Definition at line 74 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 82 of file flexio_spi_driver.h.
void* callbackParam |
Parameter for the callback function
Definition at line 86 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 77 of file flexio_spi_driver.h.
uint8_t clockPolarity |
Clock Polarity (CPOL) 0 = active-high clock; 1 = active-low clock
Definition at line 76 of file flexio_spi_driver.h.
flexio_driver_type_t driverType |
Driver type: interrupts/polling/DMA
Definition at line 73 of file flexio_spi_driver.h.
uint8_t misoPin |
Flexio pin to use as MISO pin
Definition at line 79 of file flexio_spi_driver.h.
uint8_t mosiPin |
Flexio pin to use as MOSI pin
Definition at line 78 of file flexio_spi_driver.h.
uint8_t rxDMAChannel |
Rx DMA channel number. Only used in DMA mode
Definition at line 87 of file flexio_spi_driver.h.
uint8_t sckPin |
Flexio pin to use as SCK pin
Definition at line 80 of file flexio_spi_driver.h.
uint8_t ssPin |
Flexio pin to use as SS pin
Definition at line 81 of file flexio_spi_driver.h.
flexio_spi_transfer_size_t transferSize |
Transfer size in bytes: 1/2/4
Definition at line 75 of file flexio_spi_driver.h.
uint8_t txDMAChannel |
Tx DMA channel number. Only used in DMA mode
Definition at line 88 of file flexio_spi_driver.h.