EasyManuals Logo

ST STM32F2 User Manual

ST STM32F2
1371 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #1144 background imageLoading...
Page #1144 background image
LL SPI Generic Driver
UM1940
1144/1371
DocID028236 Rev 2
Function description
Set each LL_SPI_InitTypeDef field to default value.
Parameters
SPI_InitStruct: pointer to a LL_SPI_InitTypeDef structure
whose fields will be set to default values.
Return values
None:
65.3 SPI Firmware driver defines
65.3.1 SPI
Baud Rate Prescaler
LL_SPI_BAUDRATEPRESCALER_DIV2
BaudRate control equal to fPCLK/2
LL_SPI_BAUDRATEPRESCALER_DIV4
BaudRate control equal to fPCLK/4
LL_SPI_BAUDRATEPRESCALER_DIV8
BaudRate control equal to fPCLK/8
LL_SPI_BAUDRATEPRESCALER_DIV16
BaudRate control equal to fPCLK/16
LL_SPI_BAUDRATEPRESCALER_DIV32
BaudRate control equal to fPCLK/32
LL_SPI_BAUDRATEPRESCALER_DIV64
BaudRate control equal to fPCLK/64
LL_SPI_BAUDRATEPRESCALER_DIV128
BaudRate control equal to fPCLK/128
LL_SPI_BAUDRATEPRESCALER_DIV256
BaudRate control equal to fPCLK/256
Transmission Bit Order
LL_SPI_LSB_FIRST
Data is transmitted/received with the LSB first
LL_SPI_MSB_FIRST
Data is transmitted/received with the MSB first
CRC Calculation
LL_SPI_CRCCALCULATION_DISABLE
CRC calculation disabled
LL_SPI_CRCCALCULATION_ENABLE
CRC calculation enabled
Datawidth
LL_SPI_DATAWIDTH_8BIT
Data length for SPI transfer: 8 bits
LL_SPI_DATAWIDTH_16BIT
Data length for SPI transfer: 16 bits
Get Flags Defines
LL_SPI_SR_RXNE
Rx buffer not empty flag
LL_SPI_SR_TXE
Tx buffer empty flag
LL_SPI_SR_BSY
Busy flag
LL_SPI_SR_CRCERR
CRC error flag
LL_SPI_SR_MODF
Mode fault flag
LL_SPI_SR_OVR
Overrun flag
LL_SPI_SR_FRE
TI mode frame format error flag
IT Defines
LL_I2S_CR2_RXNEIE
Rx buffer not empty interrupt enable
LL_I2S_CR2_TXEIE
Tx buffer empty interrupt enable

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the ST STM32F2 and is the answer not in the manual?

ST STM32F2 Specifications

General IconGeneral
BrandST
ModelSTM32F2
CategoryMicrocontrollers
LanguageEnglish

Related product manuals