位域入门
1. 完整例子
C
复制
1
struct Ctrl {
2
unsigned int enable : 1;
3
unsigned int mode : 2;
4
unsigned int reserved : 29;
5
};