|
STM32L4xx_HAL_Driver
1.14.0
|
Functions | |
| __STATIC_INLINE void | LL_SPI_Enable (SPI_TypeDef *SPIx) |
| Enable SPI peripheral CR1 SPE LL_SPI_Enable. More... | |
| __STATIC_INLINE void | LL_SPI_Disable (SPI_TypeDef *SPIx) |
| Disable SPI peripheral. More... | |
| __STATIC_INLINE uint32_t | LL_SPI_IsEnabled (SPI_TypeDef *SPIx) |
| Check if SPI peripheral is enabled CR1 SPE LL_SPI_IsEnabled. More... | |
| __STATIC_INLINE void | LL_SPI_SetMode (SPI_TypeDef *SPIx, uint32_t Mode) |
| Set SPI operation mode to Master or Slave. More... | |
| __STATIC_INLINE uint32_t | LL_SPI_GetMode (SPI_TypeDef *SPIx) |
| Get SPI operation mode (Master or Slave) CR1 MSTR LL_SPI_GetMode CR1 SSI LL_SPI_GetMode. More... | |
| __STATIC_INLINE void | LL_SPI_SetStandard (SPI_TypeDef *SPIx, uint32_t Standard) |
| Set serial protocol used. More... | |
| __STATIC_INLINE uint32_t | LL_SPI_GetStandard (SPI_TypeDef *SPIx) |
| Get serial protocol used CR2 FRF LL_SPI_GetStandard. More... | |
| __STATIC_INLINE void | LL_SPI_SetClockPhase (SPI_TypeDef *SPIx, uint32_t ClockPhase) |
| Set clock phase. More... | |
| __STATIC_INLINE uint32_t | LL_SPI_GetClockPhase (SPI_TypeDef *SPIx) |
| Get clock phase CR1 CPHA LL_SPI_GetClockPhase. More... | |
| __STATIC_INLINE void | LL_SPI_SetClockPolarity (SPI_TypeDef *SPIx, uint32_t ClockPolarity) |
| Set clock polarity. More... | |
| __STATIC_INLINE uint32_t | LL_SPI_GetClockPolarity (SPI_TypeDef *SPIx) |
| Get clock polarity CR1 CPOL LL_SPI_GetClockPolarity. More... | |
| __STATIC_INLINE void | LL_SPI_SetBaudRatePrescaler (SPI_TypeDef *SPIx, uint32_t BaudRate) |
| Set baud rate prescaler. More... | |
| __STATIC_INLINE uint32_t | LL_SPI_GetBaudRatePrescaler (SPI_TypeDef *SPIx) |
| Get baud rate prescaler CR1 BR LL_SPI_GetBaudRatePrescaler. More... | |
| __STATIC_INLINE void | LL_SPI_SetTransferBitOrder (SPI_TypeDef *SPIx, uint32_t BitOrder) |
| Set transfer bit order. More... | |
| __STATIC_INLINE uint32_t | LL_SPI_GetTransferBitOrder (SPI_TypeDef *SPIx) |
| Get transfer bit order CR1 LSBFIRST LL_SPI_GetTransferBitOrder. More... | |
| __STATIC_INLINE void | LL_SPI_SetTransferDirection (SPI_TypeDef *SPIx, uint32_t TransferDirection) |
| Set transfer direction mode. More... | |
| __STATIC_INLINE uint32_t | LL_SPI_GetTransferDirection (SPI_TypeDef *SPIx) |
| Get transfer direction mode CR1 RXONLY LL_SPI_GetTransferDirection CR1 BIDIMODE LL_SPI_GetTransferDirection CR1 BIDIOE LL_SPI_GetTransferDirection. More... | |
| __STATIC_INLINE void | LL_SPI_SetDataWidth (SPI_TypeDef *SPIx, uint32_t DataWidth) |
| Set frame data width CR2 DS LL_SPI_SetDataWidth. More... | |
| __STATIC_INLINE uint32_t | LL_SPI_GetDataWidth (SPI_TypeDef *SPIx) |
| Get frame data width CR2 DS LL_SPI_GetDataWidth. More... | |
| __STATIC_INLINE void | LL_SPI_SetRxFIFOThreshold (SPI_TypeDef *SPIx, uint32_t Threshold) |
| Set threshold of RXFIFO that triggers an RXNE event CR2 FRXTH LL_SPI_SetRxFIFOThreshold. More... | |
| __STATIC_INLINE uint32_t | LL_SPI_GetRxFIFOThreshold (SPI_TypeDef *SPIx) |
| Get threshold of RXFIFO that triggers an RXNE event CR2 FRXTH LL_SPI_GetRxFIFOThreshold. More... | |
| __STATIC_INLINE void LL_SPI_Disable | ( | SPI_TypeDef * | SPIx | ) |
Disable SPI peripheral.
| SPIx | SPI Instance |
| None |
Definition at line 371 of file stm32l4xx_ll_spi.h.
| __STATIC_INLINE void LL_SPI_Enable | ( | SPI_TypeDef * | SPIx | ) |
Enable SPI peripheral CR1 SPE LL_SPI_Enable.
| SPIx | SPI Instance |
| None |
Definition at line 359 of file stm32l4xx_ll_spi.h.
| __STATIC_INLINE uint32_t LL_SPI_GetBaudRatePrescaler | ( | SPI_TypeDef * | SPIx | ) |
Get baud rate prescaler CR1 BR LL_SPI_GetBaudRatePrescaler.
| SPIx | SPI Instance |
| Returned | value can be one of the following values:
|
Definition at line 538 of file stm32l4xx_ll_spi.h.
| __STATIC_INLINE uint32_t LL_SPI_GetClockPhase | ( | SPI_TypeDef * | SPIx | ) |
Get clock phase CR1 CPHA LL_SPI_GetClockPhase.
| SPIx | SPI Instance |
| Returned | value can be one of the following values:
|
Definition at line 469 of file stm32l4xx_ll_spi.h.
| __STATIC_INLINE uint32_t LL_SPI_GetClockPolarity | ( | SPI_TypeDef * | SPIx | ) |
Get clock polarity CR1 CPOL LL_SPI_GetClockPolarity.
| SPIx | SPI Instance |
| Returned | value can be one of the following values:
|
Definition at line 498 of file stm32l4xx_ll_spi.h.
| __STATIC_INLINE uint32_t LL_SPI_GetDataWidth | ( | SPI_TypeDef * | SPIx | ) |
Get frame data width CR2 DS LL_SPI_GetDataWidth.
| SPIx | SPI Instance |
| Returned | value can be one of the following values:
|
Definition at line 652 of file stm32l4xx_ll_spi.h.
| __STATIC_INLINE uint32_t LL_SPI_GetMode | ( | SPI_TypeDef * | SPIx | ) |
Get SPI operation mode (Master or Slave) CR1 MSTR LL_SPI_GetMode
CR1 SSI LL_SPI_GetMode.
| SPIx | SPI Instance |
| Returned | value can be one of the following values:
|
Definition at line 412 of file stm32l4xx_ll_spi.h.
| __STATIC_INLINE uint32_t LL_SPI_GetRxFIFOThreshold | ( | SPI_TypeDef * | SPIx | ) |
Get threshold of RXFIFO that triggers an RXNE event CR2 FRXTH LL_SPI_GetRxFIFOThreshold.
| SPIx | SPI Instance |
| Returned | value can be one of the following values:
|
Definition at line 679 of file stm32l4xx_ll_spi.h.
| __STATIC_INLINE uint32_t LL_SPI_GetStandard | ( | SPI_TypeDef * | SPIx | ) |
Get serial protocol used CR2 FRF LL_SPI_GetStandard.
| SPIx | SPI Instance |
| Returned | value can be one of the following values:
|
Definition at line 440 of file stm32l4xx_ll_spi.h.
| __STATIC_INLINE uint32_t LL_SPI_GetTransferBitOrder | ( | SPI_TypeDef * | SPIx | ) |
Get transfer bit order CR1 LSBFIRST LL_SPI_GetTransferBitOrder.
| SPIx | SPI Instance |
| Returned | value can be one of the following values:
|
Definition at line 566 of file stm32l4xx_ll_spi.h.
| __STATIC_INLINE uint32_t LL_SPI_GetTransferDirection | ( | SPI_TypeDef * | SPIx | ) |
Get transfer direction mode CR1 RXONLY LL_SPI_GetTransferDirection
CR1 BIDIMODE LL_SPI_GetTransferDirection
CR1 BIDIOE LL_SPI_GetTransferDirection.
| SPIx | SPI Instance |
| Returned | value can be one of the following values:
|
Definition at line 603 of file stm32l4xx_ll_spi.h.
| __STATIC_INLINE uint32_t LL_SPI_IsEnabled | ( | SPI_TypeDef * | SPIx | ) |
Check if SPI peripheral is enabled CR1 SPE LL_SPI_IsEnabled.
| SPIx | SPI Instance |
| State | of bit (1 or 0). |
Definition at line 382 of file stm32l4xx_ll_spi.h.
| __STATIC_INLINE void LL_SPI_SetBaudRatePrescaler | ( | SPI_TypeDef * | SPIx, |
| uint32_t | BaudRate | ||
| ) |
Set baud rate prescaler.
| SPIx | SPI Instance |
| BaudRate | This parameter can be one of the following values:
|
| None |
Definition at line 519 of file stm32l4xx_ll_spi.h.
| __STATIC_INLINE void LL_SPI_SetClockPhase | ( | SPI_TypeDef * | SPIx, |
| uint32_t | ClockPhase | ||
| ) |
Set clock phase.
| SPIx | SPI Instance |
| ClockPhase | This parameter can be one of the following values:
|
| None |
Definition at line 456 of file stm32l4xx_ll_spi.h.
| __STATIC_INLINE void LL_SPI_SetClockPolarity | ( | SPI_TypeDef * | SPIx, |
| uint32_t | ClockPolarity | ||
| ) |
Set clock polarity.
| SPIx | SPI Instance |
| ClockPolarity | This parameter can be one of the following values:
|
| None |
Definition at line 485 of file stm32l4xx_ll_spi.h.
| __STATIC_INLINE void LL_SPI_SetDataWidth | ( | SPI_TypeDef * | SPIx, |
| uint32_t | DataWidth | ||
| ) |
Set frame data width CR2 DS LL_SPI_SetDataWidth.
| SPIx | SPI Instance |
| DataWidth | This parameter can be one of the following values:
|
| None |
Definition at line 628 of file stm32l4xx_ll_spi.h.
| __STATIC_INLINE void LL_SPI_SetMode | ( | SPI_TypeDef * | SPIx, |
| uint32_t | Mode | ||
| ) |
Set SPI operation mode to Master or Slave.
| SPIx | SPI Instance |
| Mode | This parameter can be one of the following values:
|
| None |
Definition at line 398 of file stm32l4xx_ll_spi.h.
| __STATIC_INLINE void LL_SPI_SetRxFIFOThreshold | ( | SPI_TypeDef * | SPIx, |
| uint32_t | Threshold | ||
| ) |
Set threshold of RXFIFO that triggers an RXNE event CR2 FRXTH LL_SPI_SetRxFIFOThreshold.
| SPIx | SPI Instance |
| Threshold | This parameter can be one of the following values:
|
| None |
Definition at line 666 of file stm32l4xx_ll_spi.h.
| __STATIC_INLINE void LL_SPI_SetStandard | ( | SPI_TypeDef * | SPIx, |
| uint32_t | Standard | ||
| ) |
Set serial protocol used.
| SPIx | SPI Instance |
| Standard | This parameter can be one of the following values:
|
| None |
Definition at line 427 of file stm32l4xx_ll_spi.h.
| __STATIC_INLINE void LL_SPI_SetTransferBitOrder | ( | SPI_TypeDef * | SPIx, |
| uint32_t | BitOrder | ||
| ) |
Set transfer bit order.
| SPIx | SPI Instance |
| BitOrder | This parameter can be one of the following values:
|
| None |
Definition at line 553 of file stm32l4xx_ll_spi.h.
| __STATIC_INLINE void LL_SPI_SetTransferDirection | ( | SPI_TypeDef * | SPIx, |
| uint32_t | TransferDirection | ||
| ) |
Set transfer direction mode.
| SPIx | SPI Instance |
| TransferDirection | This parameter can be one of the following values:
|
| None |
Definition at line 586 of file stm32l4xx_ll_spi.h.