SPI Macro

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

SPI Macro

1,636 次查看
Jojo67
Contributor II

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

标记 (1)
0 项奖励
回复
1 回复

1,600 次查看
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 项奖励
回复