结构体问题:单位访问和双位访问
下面程序中的“:1”和“:2”是什么意思?/* 单位访问结构 (single) */
struct
{
tU08 B0 :1;
tU08 B1 :1;
tU08 B2 :1;
tU08 B3 :1;
tU08 B4 :1;
tU08 B5 :1;
tU08 B6 :1;
tU08 B7 :1;
}sBIT;
/* 双位访问结构1 (double) */
struct
{
tU08 B01 :2;
tU08 B23 :2;
tU08 B45 :2;
tU08 B67 :2;
}sBIT2222;