C30 bit設定問題!
|
||||
---|---|---|---|---|
新會員
|
在C30裡利用struct宣告一個byte內有8個bit資料,請問如何針對一個byte資料清為0.
我在程式中將FLAGBITS = 0;編譯不過.請問還需要什麼宣告嗎?? struct { //旗標設定 unsigned Control_Data:1; unsigned Monitor_Data:1; unsigned CANBus_Rec:1; unsigned DATA_ERROR:1; unsigned Home_Stop:1; unsigned LED_STATE:1; unsigned Record_Start_P:1; unsigned Record_End_P:1; }FLAGBITS;
發表於: 2008/11/7 11:58
|
|||
|