STM32F4xx HAL Documentation
Hardware Abstraction Layer for STM32F4 familiy
|
SPI Configuration Structure definition. More...
#include <stm32f4xx_hal_spi.h>
Data Fields | |
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 Configuration Structure definition.
Definition at line 46 of file stm32f4xx_hal_spi.h.
uint32_t SPI_InitTypeDef::Mode |
Specifies the SPI operating mode. This parameter can be a value of SPI Mode
Definition at line 48 of file stm32f4xx_hal_spi.h.
Referenced by HAL_SPI_Init(), HAL_SPI_Receive(), HAL_SPI_Receive_DMA(), HAL_SPI_Receive_IT(), HAL_SPI_Transmit(), HAL_SPI_TransmitReceive(), HAL_SPI_TransmitReceive_DMA(), HAL_SPI_TransmitReceive_IT(), SPI_DMAReceiveCplt(), SPI_EndRxTransaction(), SPI_EndRxTxTransaction(), and SPI_WaitFlagStateUntilTimeout().
uint32_t SPI_InitTypeDef::Direction |
Specifies the SPI bidirectional mode state. This parameter can be a value of SPI Direction Mode
Definition at line 51 of file stm32f4xx_hal_spi.h.
Referenced by HAL_SPI_Init(), HAL_SPI_Receive(), HAL_SPI_Receive_DMA(), HAL_SPI_Receive_IT(), HAL_SPI_Transmit(), HAL_SPI_Transmit_DMA(), HAL_SPI_Transmit_IT(), HAL_SPI_TransmitReceive(), HAL_SPI_TransmitReceive_DMA(), HAL_SPI_TransmitReceive_IT(), SPI_CloseRx_ISR(), SPI_CloseRxTx_ISR(), SPI_CloseTx_ISR(), SPI_DMAReceiveCplt(), SPI_DMATransmitCplt(), SPI_EndRxTransaction(), and SPI_WaitFlagStateUntilTimeout().
uint32_t SPI_InitTypeDef::DataSize |
Specifies the SPI data size. This parameter can be a value of SPI Data Size
Definition at line 54 of file stm32f4xx_hal_spi.h.
Referenced by HAL_SPI_Init(), HAL_SPI_Receive(), HAL_SPI_Receive_IT(), HAL_SPI_Transmit(), HAL_SPI_Transmit_IT(), HAL_SPI_TransmitReceive(), and HAL_SPI_TransmitReceive_IT().
uint32_t SPI_InitTypeDef::CLKPolarity |
Specifies the serial clock steady state. This parameter can be a value of SPI Clock Polarity
Definition at line 57 of file stm32f4xx_hal_spi.h.
Referenced by HAL_SPI_Init().
uint32_t SPI_InitTypeDef::CLKPhase |
Specifies the clock active edge for the bit capture. This parameter can be a value of SPI Clock Phase
Definition at line 60 of file stm32f4xx_hal_spi.h.
Referenced by HAL_SPI_Init().
uint32_t SPI_InitTypeDef::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
Definition at line 63 of file stm32f4xx_hal_spi.h.
Referenced by HAL_SPI_Init().
uint32_t SPI_InitTypeDef::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
Definition at line 67 of file stm32f4xx_hal_spi.h.
Referenced by HAL_SPI_Init().
uint32_t SPI_InitTypeDef::FirstBit |
Specifies whether data transfers start from MSB or LSB bit. This parameter can be a value of SPI MSB LSB Transmission
Definition at line 73 of file stm32f4xx_hal_spi.h.
Referenced by HAL_SPI_Init().
uint32_t SPI_InitTypeDef::TIMode |
Specifies if the TI mode is enabled or not. This parameter can be a value of SPI TI Mode
Definition at line 76 of file stm32f4xx_hal_spi.h.
Referenced by HAL_SPI_Init().
uint32_t SPI_InitTypeDef::CRCCalculation |
Specifies if the CRC calculation is enabled or not. This parameter can be a value of SPI CRC Calculation
Definition at line 79 of file stm32f4xx_hal_spi.h.
Referenced by HAL_SPI_Init(), HAL_SPI_Receive(), HAL_SPI_Receive_DMA(), HAL_SPI_Receive_IT(), HAL_SPI_Transmit(), HAL_SPI_Transmit_DMA(), HAL_SPI_Transmit_IT(), HAL_SPI_TransmitReceive(), HAL_SPI_TransmitReceive_DMA(), HAL_SPI_TransmitReceive_IT(), SPI_2linesRxISR_16BIT(), SPI_2linesRxISR_8BIT(), SPI_2linesTxISR_16BIT(), SPI_2linesTxISR_8BIT(), SPI_DMAReceiveCplt(), SPI_DMATransmitReceiveCplt(), SPI_RxISR_16BIT(), SPI_RxISR_8BIT(), SPI_TxISR_16BIT(), SPI_TxISR_8BIT(), and SPI_WaitFlagStateUntilTimeout().
uint32_t SPI_InitTypeDef::CRCPolynomial |
Specifies the polynomial used for the CRC calculation. This parameter must be an odd number between Min_Data = 1 and Max_Data = 65535
Definition at line 82 of file stm32f4xx_hal_spi.h.
Referenced by HAL_SPI_Init().