STM32F439xx HAL User Manual
Data Fields
LL_SPI_InitTypeDef Struct Reference

SPI Init structures definition. More...

#include <stm32f4xx_ll_spi.h>

Data Fields

uint32_t TransferDirection
uint32_t Mode
uint32_t DataWidth
uint32_t ClockPolarity
uint32_t ClockPhase
uint32_t NSS
uint32_t BaudRate
uint32_t BitOrder
uint32_t CRCCalculation
uint32_t CRCPoly

Detailed Description

SPI Init structures definition.

Definition at line 70 of file stm32f4xx_ll_spi.h.


Field Documentation

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

Note:
The communication clock is derived from the master clock. The slave clock does not need to be set.

This feature can be modified afterwards using unitary function LL_SPI_SetBaudRatePrescaler().

Definition at line 102 of file stm32f4xx_ll_spi.h.

Referenced by LL_SPI_Init(), and LL_SPI_StructInit().

Specifies whether data transfers start from MSB or LSB bit. This parameter can be a value of Transmission Bit Order.

This feature can be modified afterwards using unitary function LL_SPI_SetTransferBitOrder().

Definition at line 108 of file stm32f4xx_ll_spi.h.

Referenced by LL_SPI_Init(), and LL_SPI_StructInit().

Specifies the clock active edge for the bit capture. This parameter can be a value of Clock Phase.

This feature can be modified afterwards using unitary function LL_SPI_SetClockPhase().

Definition at line 92 of file stm32f4xx_ll_spi.h.

Referenced by LL_SPI_Init(), and LL_SPI_StructInit().

Specifies the serial clock steady state. This parameter can be a value of Clock Polarity.

This feature can be modified afterwards using unitary function LL_SPI_SetClockPolarity().

Definition at line 87 of file stm32f4xx_ll_spi.h.

Referenced by LL_SPI_Init(), and LL_SPI_StructInit().

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

This feature can be modified afterwards using unitary functions LL_SPI_EnableCRC() and LL_SPI_DisableCRC().

Definition at line 113 of file stm32f4xx_ll_spi.h.

Referenced by LL_SPI_Init(), and LL_SPI_StructInit().

Specifies the polynomial used for the CRC calculation. This parameter must be a number between Min_Data = 0x00 and Max_Data = 0xFFFF.

This feature can be modified afterwards using unitary function LL_SPI_SetCRCPolynomial().

Definition at line 118 of file stm32f4xx_ll_spi.h.

Referenced by LL_SPI_Init(), and LL_SPI_StructInit().

Specifies the SPI data width. This parameter can be a value of Datawidth.

This feature can be modified afterwards using unitary function LL_SPI_SetDataWidth().

Definition at line 82 of file stm32f4xx_ll_spi.h.

Referenced by LL_SPI_Init(), and LL_SPI_StructInit().

Specifies the SPI mode (Master/Slave). This parameter can be a value of Operation Mode.

This feature can be modified afterwards using unitary function LL_SPI_SetMode().

Definition at line 77 of file stm32f4xx_ll_spi.h.

Referenced by LL_SPI_Init(), and LL_SPI_StructInit().

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 Slave Select Pin Mode.

This feature can be modified afterwards using unitary function LL_SPI_SetNSSMode().

Definition at line 97 of file stm32f4xx_ll_spi.h.

Referenced by LL_SPI_Init(), and LL_SPI_StructInit().

Specifies the SPI unidirectional or bidirectional data mode. This parameter can be a value of Transfer Mode.

This feature can be modified afterwards using unitary function LL_SPI_SetTransferDirection().

Definition at line 72 of file stm32f4xx_ll_spi.h.

Referenced by LL_SPI_Init(), and LL_SPI_StructInit().


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