[STM32F1] uint32_t _reserved0:27; 请问这是什么语法

[复制链接]
2528|2
 楼主| code 发表于 2015-10-15 16:26 | 显示全部楼层 |阅读模式
有个冒号的那个东西 !!!  谢谢 !!!!!!!!!!!!
在core_cm3.h里面看见的

typedef union
{
  struct
  {
    uint32_t _reserved0:27;              /*!< bit:  0..26  Reserved                           */
    uint32_t Q:1;                        /*!< bit:     27  Saturation condition flag          */
    uint32_t V:1;                        /*!< bit:     28  Overflow condition code flag       */
    uint32_t C:1;                        /*!< bit:     29  Carry condition code flag          */
    uint32_t Z:1;                        /*!< bit:     30  Zero condition code flag           */
    uint32_t N:1;                        /*!< bit:     31  Negative condition code flag       */
  } b;                                   /*!< Structure used for bit  access                  */
  uint32_t w;                            /*!< Type      used for word access                  */
} APSR_Type;
sky.sun.zz 发表于 2015-10-15 20:01 | 显示全部楼层
reserved0占用27 Bit,其余各占用1Bit
 楼主| code 发表于 2015-10-16 10:45 | 显示全部楼层
您需要登录后才可以回帖 登录 | 注册

本版积分规则

个人签名:"></a><img src="http://uc2.21ic.com/avatar.php?uid=319240&size=middle"></img><a href="

40

主题

150

帖子

1

粉丝
快速回复 在线客服 返回列表 返回顶部