LL_SPI_SetMode
__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:
LL_SPI_MODE_MASTER
LL_SPI_MODE_SLAVE
This bit should not be changed when communication is
ongoing.
Reference Manual to
LL API cross
reference:
CR1 MSTR LL_SPI_SetMode
CR1 SSI LL_SPI_SetMode
LL_SPI_GetMode
__STATIC_INLINE uint32_t LL_SPI_GetMode (SPI_TypeDef *
SPIx)
Get SPI operation mode (Master or Slave)
Returned: value can be one of the following values:
LL_SPI_MODE_MASTER
LL_SPI_MODE_SLAVE
Reference Manual to
LL API cross
reference:
CR1 MSTR LL_SPI_GetMode
CR1 SSI LL_SPI_GetMode
LL_SPI_SetStandard
__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:
LL_SPI_PROTOCOL_MOTOROLA
LL_SPI_PROTOCOL_TI
This bit should be written only when SPI is disabled (SPE = 0)
for correct operation.
Reference Manual to
LL API cross
CR2 FRF LL_SPI_SetStandard