HAL + 0/1 examples
CodeScope will show references to LL_SPI_InitTypeDef from the following samples and libraries:
Examples
STM32F411RE-Nucleo
Examples_LL
SPI
 
Symbols
loading...
Files
loading...

LL_SPI_InitTypeDef struct

SPI Init structures definition

Syntax

typedef struct {   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;                  } LL_SPI_InitTypeDef;

Fields

TransferDirection

Specifies the SPI unidirectional or bidirectional data mode. This parameter can be a value of SPI_LL_EC_TRANSFER_MODE. This feature can be modified afterwards using unitary function LL_SPI_SetTransferDirection(). Read more...

Mode

Specifies the SPI mode (Master/Slave). This parameter can be a value of SPI_LL_EC_MODE. This feature can be modified afterwards using unitary function LL_SPI_SetMode(). Read more...

DataWidth

Specifies the SPI data width. This parameter can be a value of SPI_LL_EC_DATAWIDTH. This feature can be modified afterwards using unitary function LL_SPI_SetDataWidth(). Read more...

ClockPolarity

Specifies the serial clock steady state. This parameter can be a value of SPI_LL_EC_POLARITY. This feature can be modified afterwards using unitary function LL_SPI_SetClockPolarity(). Read more...

ClockPhase

Specifies the clock active edge for the bit capture. This parameter can be a value of SPI_LL_EC_PHASE. This feature can be modified afterwards using unitary function LL_SPI_SetClockPhase(). 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_LL_EC_NSS_MODE. This feature can be modified afterwards using unitary function LL_SPI_SetNSSMode(). Read more...

BaudRate

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

BitOrder

Specifies whether data transfers start from MSB or LSB bit. This parameter can be a value of SPI_LL_EC_BIT_ORDER. This feature can be modified afterwards using unitary function LL_SPI_SetTransferBitOrder(). Read more...

CRCCalculation

Specifies if the CRC calculation is enabled or not. This parameter can be a value of SPI_LL_EC_CRC_CALCULATION. This feature can be modified afterwards using unitary functions LL_SPI_EnableCRC() and LL_SPI_DisableCRC(). Read more...

CRCPoly

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(). Read more...

Examples

LL_SPI_InitTypeDef is referenced by 1 libraries and example projects.