Rx buffer not empty interrupt enable
Tx buffer empty interrupt enable
Operation Mode
Slave Select Pin Mode
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
Clock Phase
First clock transition is the first data capture edge
Second clock transition is the first data capture edge
Clock Polarity
Serial Protocol
Motorola mode. Used as default value
Transfer 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
Common Write and read registers Macros
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.