struct DRV8301_STATUS_REG_1_BITS { // bit description
Uint16 FETLC_OC :1; // 0 Phase C, low-side FET OC
Uint16 Reserved : 5; // 15:11
};
结构体变量后面的 :1 ,和 :5 有什么意义。
还有共同体
union DRV8301_STATUS_REG_1 {
Uint16 all;
struct DRV8301_STATUS_REG_1_BITS bit;
};
变量后面的all 和bit 是什么意义