[an error occurred while processing this directive]
|
typedef union
{
char flags;
struct
{
char telemetryRQ : 1;
char clearI2C : 1;
char autopilot : 1;
char noUsed : 5;
};
}T_bitflag;T_bitflag bitflag;
.......bitflag.flags = 1;
bitflag.flags = 2;
*((char*)&bitflag)=4;
*((char*)&bitflag.flags)=8;
E-mail: info@telesys.ru