This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[参考译文] CCS/TM4C1294NCPDT:TivaWare SSI

Guru**** 2337880 points
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/647458/ccs-tm4c1294ncpdt-tivaware-ssi

器件型号:TM4C1294NCPDT

工具/软件:Code Composer Studio

您好、TI 团队

TivaWare 和实现的文档中存在一些错误。

软件仅返回0或1。

文档:

返回:
返回从 SSI 接收 FIFO 读取的元素数量。

代码:

//!
//! 返回从 SSI 接收 FIFO 读取的单元数。
////
*****************
int32_t
SSIDataGetNonBlocking (uint32_t ui32Base、uint32_t * pui32Data)
{
//
//检查参数。
//
assert (_SSIBaseValid (ui32Base));

//
//检查要读取的数据。
//
IF (HWREG (ui32Base + SSI_O_SR)和 SSI_SR_RNE)
{
* pui32Data = HWREG (ui32Base + SSI_O_DR);
返回(1);
}
其他
{
返回(0);
}
} 

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    由于此函数只从 FIFO 中读取一个元素、因此它只能返回1 (1个元素读取)或0 (FIFO 为空)。
  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    你(们)好 Bob

    感谢您的回答。 我明白它会给我位的数量。
    我将 SSIConfigSetExpClk()的数据宽度配置为16,因此我希望此函数返回16。

    此致
    勒内