TxData: Value between Min_Data=0x00 and
Max_Data=0xFF
Reference Manual to
LL API cross
reference:
DR DR LL_SPI_TransmitData8
LL_SPI_TransmitData16
__STATIC_INLINE void LL_SPI_TransmitData16 (SPI_TypeDef
* SPIx, uint16_t TxData)
Write 16-Bits in the data register.
SPIx: SPI Instance
TxData: Value between Min_Data=0x00 and
Max_Data=0xFFFF
Reference Manual to
LL API cross
reference:
DR DR LL_SPI_TransmitData16
LL_SPI_DeInit
ErrorStatus LL_SPI_DeInit (SPI_TypeDef * SPIx)
De-initialize the SPI registers to their default reset values.
An: ErrorStatus enumeration value:
SUCCESS: SPI registers are de-initialized
ERROR: SPI registers are not de-initialized
LL_SPI_Init
ErrorStatus LL_SPI_Init (SPI_TypeDef * SPIx,
LL_SPI_InitTypeDef * SPI_InitStruct)
Initialize the SPI registers according to the specified parameters in
SPI_InitStruct.
SPIx: SPI Instance
SPI_InitStruct: pointer to a LL_SPI_InitTypeDef structure
An: ErrorStatus enumeration value. (Return always
SUCCESS)
As some bits in SPI configuration registers can only be written
when the SPI is disabled (SPI_CR1_SPE bit =0), SPI IP
should be in disabled state prior calling this function.
Otherwise, ERROR result will be returned.
LL_SPI_StructInit
void LL_SPI_StructInit (LL_SPI_InitTypeDef * SPI_InitStruct)