
如何使用C51单片机中的位域功能-typedef struct
{
uchar DC0_ALA:1; //电源0告警
uchar DC1_ALA:1; //电源1告警
uchar AC_ALA:1; //停电告警
uchar UN_H_ALA:1; //同频信道机失锁告警
uchar UN_L_ALA:1; //异频信道机失锁告警
uchar FAR_ALA:1; //远端通讯故障告警
uchar OPEN_ALA:1; //门襟告警
uchar x:1;
如何使用C51单片机中的位域功能-typedef struct
{
uchar DC0_ALA:1; //电源0告警
uchar DC1_ALA:1; //电源1告警
uchar AC_ALA:1; //停电告警
uchar UN_H_ALA:1; //同频信道机失锁告警
uchar UN_L_ALA:1; //异频信道机失锁告警
uchar FAR_ALA:1; //远端通讯故障告警
uchar OPEN_ALA:1; //门襟告警
uchar x:1;