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 #1126 background imageLoading...
Page #1126 background image
LL SPI Generic Driver
UM1940
1126/1371
DocID028236 Rev 2
uint32_t LL_SPI_InitTypeDef::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().
uint32_t LL_SPI_InitTypeDef::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().
uint32_t LL_SPI_InitTypeDef::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().
65.2 SPI Firmware driver API description
65.2.1 Detailed description of functions
LL_SPI_Enable
Function name
__STATIC_INLINE void LL_SPI_Enable (SPI_TypeDef * SPIx)
Function description
Enable SPI peripheral.
Parameters
SPIx: SPI Instance
Return values
None:
Reference Manual to
LL API cross
reference:
CR1 SPE LL_SPI_Enable
LL_SPI_Disable
Function name
__STATIC_INLINE void LL_SPI_Disable (SPI_TypeDef * SPIx)
Function description
Disable SPI peripheral.
Parameters
SPIx: SPI Instance
Return values
None:
Notes
When disabling the SPI, follow the procedure described in the
Reference Manual.
Reference Manual to
LL API cross
reference:
CR1 SPE LL_SPI_Disable
LL_SPI_IsEnabled
Function name
__STATIC_INLINE uint32_t LL_SPI_IsEnabled (SPI_TypeDef *
SPIx)
Function description
Check if SPI peripheral is enabled.
Parameters
SPIx: SPI Instance
Return values
State: of bit (1 or 0).
Reference Manual to
LL API cross
CR1 SPE LL_SPI_IsEnabled

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