typedef union
{
struct
{
uint8 Led0 :1;
uint8 Led1 :1;
uint8 Led2 :1;
uint8 Led3 :1;
uint8 Key0 :1;
uint8 Key1 :1;
uint8 Key2 :1;
uint8 Key3 :1;
uint8 KeyStatus0 :1;
uint8 KeyStatus1 :1;
uint8 KeyStatus2 :1;
uint8 KeyStatus3 :1;
} ;
struct
{
uint8 Led :4;
uint8 Key :4;
uint8 KeyStatus :4;
} ;
} TouchKeyStruct;
TouchKeyStruct TouchKeyStatus;
extern TouchKeyStruct TouchKeyStatus;
我用这个能过! |