union

typedef union {
    struct SCOPE_TYPE_CART {
        unsigned int actual_cart : 1;
        unsigned int acutal_dcart : 1;
        unsigned int actual_ddcart : 1;
        unsigned int target_cart : 1;
        unsigned int target_dcart : 1;
        unsigned int target_ddcart : 1;
        unsigned int cart_error : 1;
    }bit;
    unsigned int all;
}ScopeTypeCart;
posted @ 2021-07-20 15:37  石首桃花山  阅读(51)  评论(0)    收藏  举报