HAL
SPI_InitTypeDef is only used within HAL.
 
Symbols
loading...
Files
loading...

SPI_InitTypeDef struct

SPI Configuration Structure definition

Syntax

typedef struct {   uint32_t Mode;                   uint32_t Direction;              uint32_t DataSize;               uint32_t CLKPolarity;            uint32_t CLKPhase;               uint32_t NSS;                    uint32_t BaudRatePrescaler;      uint32_t FirstBit;               uint32_t TIMode;                 uint32_t CRCCalculation;         uint32_t CRCPolynomial;        } SPI_InitTypeDef;

Fields

CRCPolynomial

Specifies the polynomial used for the CRC calculation. This parameter must be an odd number between Min_Data = 1 and Max_Data = 65535. Read more...

Mode

Specifies the SPI operating mode. This parameter can be a value of SPI_Mode. Read more...

Direction

Specifies the SPI bidirectional mode state. This parameter can be a value of SPI_Direction. Read more...

DataSize

Specifies the SPI data size. This parameter can be a value of SPI_Data_Size. Read more...

CLKPolarity

Specifies the serial clock steady state. This parameter can be a value of SPI_Clock_Polarity. Read more...

CLKPhase

Specifies the clock active edge for the bit capture. This parameter can be a value of SPI_Clock_Phase. Read more...

NSS

Specifies whether the NSS signal is managed by hardware (NSS pin) or by software using the SSI bit. This parameter can be a value of SPI_Slave_Select_management. Read more...

BaudRatePrescaler

Specifies the Baud Rate prescaler value which will be used to configure the transmit and receive SCK clock. This parameter can be a value of SPI_BaudRate_Prescaler. Read more...

FirstBit

Specifies whether data transfers start from MSB or LSB bit. This parameter can be a value of SPI_MSB_LSB_transmission. Read more...

TIMode

Specifies if the TI mode is enabled or not. This parameter can be a value of SPI_TI_mode. Read more...

CRCCalculation

Specifies if the CRC calculation is enabled or not. This parameter can be a value of SPI_CRC_Calculation. Read more...

Type Use

Variables of SPI_InitTypeDef type
all items filtered out
SPI_InitTypeDef
all items filtered out
SPI_InitTypeDef
all items filtered out