SPI Macro

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

SPI Macro

393 Views
Jojo67
Contributor II

Hi, is it this macro <SPI_S_SPTEF_MASK> same function as <LPSPI_SR_TDF_MASK> ?

Tags (1)
0 Kudos
1 Reply

357 Views
giraffe508
Contributor IV

Hi SPI Macro can be defined following two types,

SPI_S_SPTEF_MASK is a mask for the SPI Transmit Buffer Empty Flag (SPTEF) in the SPI Status Register (SPI_S). 

On the other hand, LPSPI_SR_TDF_MASK is a mask for the Transmit Data Flag (TDF) in the LPSPI Status Register (LPSPI_SR).

Both of these masks are used to check the status of the respective SPI modules' transmit buffers, but they are specific to different SPI modules within the NXP product range. The SPI_S_SPTEF_MASK is used with the classic SPI module, while the LPSPI_SR_TDF_MASK is used with the Low Power SPI (LPSPI) module.

 

For more information on these modules and their respective registers, you can refer to the following documentation:

0 Kudos