UM1940
LL_I2S_CR2_ERRIE
LL_SPI_CR2_RXNEIE
LL_SPI_CR2_TXEIE
LL_SPI_CR2_ERRIE
Operation Mode
LL_SPI_MODE_MASTER
LL_SPI_MODE_SLAVE
Slave Select Pin Mode
LL_SPI_NSS_SOFT
LL_SPI_NSS_HARD_INPUT
LL_SPI_NSS_HARD_OUTPUT
Clock Phase
LL_SPI_PHASE_1EDGE
LL_SPI_PHASE_2EDGE
Clock Polarity
LL_SPI_POLARITY_LOW
LL_SPI_POLARITY_HIGH
Serial Protocol
LL_SPI_PROTOCOL_MOTOROLA
LL_SPI_PROTOCOL_TI
Transfer Mode
LL_SPI_FULL_DUPLEX
LL_SPI_SIMPLEX_RX
LL_SPI_HALF_DUPLEX_RX
LL_SPI_HALF_DUPLEX_TX
Common Write and read registers Macros
LL_SPI_WriteReg
LL_SPI_ReadReg
Error interrupt enable
Rx buffer not empty interrupt enable
Tx buffer empty interrupt enable
Error interrupt enable
Master configuration
Slave configuration
NSS managed internally. NSS pin not used and free
NSS pin used in Input. Only used in Master mode
NSS pin used in Output. Only used in Slave mode as
chip select
First clock transition is the first data capture edge
Second clock transition is the first data capture edge
Clock to 0 when idle
Clock to 1 when idle
Motorola mode. Used as default value
TI mode
Full-Duplex mode. Rx and Tx transfer on 2 lines
Simplex Rx mode. Rx transfer only on 1 line
Half-Duplex Rx mode. Rx transfer on 1 line
Half-Duplex Tx mode. Tx transfer on 1 line
Description:
Write a value in SPI register.
Parameters:
__INSTANCE__: SPI Instance
__REG__: Register to be written
__VALUE__: Value to be written in the register
Return value:
None
Description:
Read a value in SPI register.
DocID028236 Rev 2
LL SPI Generic Driver
1145/1371
Need help?
Do you have a question about the STM32F2 and is the answer not in the manual?
Questions and answers