[an error occurred while processing this directive]
|
union TWI_statusReg
{
unsigned char all;
struct
{
unsigned char lastTransOK:1;
unsigned char unusedBits:7;
} a;
};
extern union TWI_statusReg TWI_statusReg;
а , в другом файле такая запись
union TWI_statusReg TWI_statusReg = {0};
.
.
.
.
TWI_statusReg.all = 0;
.
.
TWI_statusReg.a.lastTransOK = TRUE;
.
.
if( TWI_statusReg.a.lastTransOK ) {}
E-mail: info@telesys.ru