|
union
{
unsigned char tmp0
struct
{
unsigned int
tmp0_Bit0:1,
tmp0_Bit1:1,
tmp0_Bit2:1,
tmp0_Bit3:1,
tmp0_Bit4:1,
tmp0_Bit5:1,
tmp0_Bit6:1,
tmp0_Bit7:1,
}
}
union
{
unsigned char tmp1
struct
{
unsigned int
tmp1_Bit0:1,
tmp1_Bit1:1,
tmp1_Bit2:1,
tmp1_Bit3:1,
tmp1_Bit4:1,
tmp1_Bit5:1,
tmp1_Bit6:1,
tmp1_Bit7:1,
}
}
union
{
unsigned char tmp2
struct
{
unsigned int
tmp2_Bit0:1,
tmp2_Bit1:1,
tmp2_Bit2:1,
tmp2_Bit3:1,
tmp2_Bit4:1,
tmp2_Bit5:1,
tmp2_Bit6:1,
tmp2_Bit7:1,
}
}
tmp0_Bit0=tmp1_Bit1;// собираем переменную tmp0 из tmp1 и tmp2
tmp0_Bit1=tmp2_Bit3;
tmp0_Bit2=tmp2_Bit2;
ну и тд.
E-mail: info@telesys.ru