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.

[参考译文] 编译器/TM4C123GH6PZ:如何在 tivac 中声明压缩结构?

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

https://e2e.ti.com/support/tools/code-composer-studio-group/ccs/f/code-composer-studio-forum/897028/compiler-tm4c123gh6pz-how-to-declare-a-packed-struct-in-tivac

器件型号:TM4C123GH6PZ

工具/软件:TI C/C++编译器

如何在 tivac 中声明压缩结构?

例如:

struct __packed struct{

uint8_t Data0;
uint8_t data1;  
uint32_t data2;  
uint8_t data5;
uint8_t data6[8];  
uint8_t data7;
};

谢谢