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.

[参考译文] TMS320F28386D:位类型

Guru**** 2451510 points
Other Parts Discussed in Thread: C2000WARE

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

https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/1258549/tms320f28386d-bit-type

器件型号:TMS320F28386D
主题中讨论的其他器件:C2000WARE

C28x 是否支持如下所示的位类型?

我们希望保存 RAM 或闪存的使用情况。

联合
{
结构体
{
volatile bit_type SW_flg:1;  
volatile bit_type err_flg:1;  
volatile bit_type rst_flg:1;  
volatile bit_type them_flg:1;  
Volatile bit_TYPE TEST_flg:1;  
Volatile bit_TYPE IFO_RES:3;  
} B;
易失性 uint8_t U;
} IFO;

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

    您好!

    我认为它类似于、您可以在 C2000Ware 的器件支持目录的头文件(C2000Ware_5_00_00\device_support\f2838x\headers\include)中查看这一点、不过它使用 uint16_t 或 uint32_t 等有效数据类型作为寄存器中的位域、而不是单个位。

    此致、

    阿米尔·奥马尔