zlg上的寄存器定义如下:
typedef union _fullcansffline_ { UINT32 Word; struct { UINT32 CANSFFID1 :11; UINT32 RSV_BIT1 :1; UINT32 EN_BIT1 :1; UINT32 Num_BIT1 :3; UINT32 CANSFFID2 :11; UINT32 RSV_BIT2 :1; UINT32 EN_BIT2 :1; UINT32 Num_BIT2 :3; }Bits; }uFullCANSFFLine,*P_uFullCANSFFLine;
谁能解析下,这是怎么意思呢?
比如说Num_BIT1它是占3个bit的,好像没怎么体现出来a, 我只看到例子中只对:*P_uFullCANSFFLine.Bits.Num_BIT1 操作。
谁帮我解析下a。谢谢! |