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.

[参考译文] F28M36P63C2:F28M36x_Gpio.h 中的语法怀疑

Guru**** 2613335 points


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

https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/694200/f28m36p63c2-syntax-doubt-in-f28m36x_gpio-h

器件型号:F28M36P63C2

您好!

这是一个有关理解在使用其中一个头文件时找到的一段代码的常规查询。 请原谅我、因为这只是一个一般的编码问题、我希望找到答案、我知道它并不适用于这里常见的问题。 这是一段代码、

struct GPA1_bits{                // bits description
       UINT16 GPIO0:2;         // 1:0   GPIO0
       uint16 GPIO1:2;         // 3:2   GPIO1
       uint16 GPIO2:2;         // 5:4   GPIO2
       uint16 GPIO3:2;         // 7:6   GPIO3
       uint16 GPIO4:2;         // 9:8   GPIO4
       UINT16 GPIO5:2;         // 11:10 GPIO5
       UINT16 GPIO6:2;         // 13:12 GPIO6
       uint16 GPIO7:2;         // 15:14 GPIO7
       UINT16 GPIO8:2;         // 17:16 GPIO8
       UINT16 GPIO9:2;         // 19:18 GPIO9
       uint16 GPIO10:2;        // 21:20 GPIO10
       UINT16 GPIO11:2;        // 23:22 GPIO11
       UINT16 GPIO12:2;        // 25:24 GPIO12
       UINT16 GPIO13:2;        // 27:26 GPIO13
       UINT16 GPIO14:2;        // 29:28 GPIO14
       UINT16 GPIO15:2;        // 31:30 GPIO15
};

我的查询是关于与 GPIO 关联的数字。 数字的物理含义是什么? 是 GPIO 变量的存储器大小还是与之关联的值集?

谢谢、

Srini.