This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

F28035 结构体定义语法

Other Parts Discussed in Thread: DRV8301

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 是什么意义