S32 SDK

Defines the configuration structure for SPI master. More...

#include <spi_pal.h>

Data Fields

uint32_t baudRate
 
uint8_t frameSize
 
spi_transfer_bit_order_t bitOrder
 
spi_polarity_t clockPolarity
 
spi_polarity_t ssPolarity
 
spi_clock_phase_t clockPhase
 
uint8_t ssPin
 
spi_transfer_type_t transferType
 
uint8_t rxDMAChannel
 
uint8_t txDMAChannel
 
spi_callback_t callback
 
void * callbackParam
 
void * extension
 

Detailed Description

Defines the configuration structure for SPI master.

Definition at line 78 of file spi_pal.h.

Field Documentation

uint32_t baudRate

Clock frequency

Definition at line 80 of file spi_pal.h.

Select if first bit is MSB or LSB

Definition at line 82 of file spi_pal.h.

spi_callback_t callback

Select the callback to transfer complete

Definition at line 90 of file spi_pal.h.

void* callbackParam

Select additional callback parameters if it's necessary

Definition at line 91 of file spi_pal.h.

spi_clock_phase_t clockPhase

Select clock edges for sampling and shifting

Definition at line 85 of file spi_pal.h.

spi_polarity_t clockPolarity

Select polarity for Clock

Definition at line 83 of file spi_pal.h.

void* extension

This field will be used to add extra settings to the basic configuration like FlexIO pins

Definition at line 92 of file spi_pal.h.

uint8_t frameSize

Size of frame in bits

Definition at line 81 of file spi_pal.h.

uint8_t rxDMAChannel

Channel number for DMA rx channel

Definition at line 88 of file spi_pal.h.

uint8_t ssPin

Select which SS is used

Definition at line 86 of file spi_pal.h.

spi_polarity_t ssPolarity

Select polarity for SS

Definition at line 84 of file spi_pal.h.

spi_transfer_type_t transferType

Select if buffers are managed by internal interrupt handler or by DMA

Definition at line 87 of file spi_pal.h.

uint8_t txDMAChannel

Channel number for DMA tx channel

Definition at line 89 of file spi_pal.h.


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