[an error occurred while processing this directive]
[an error occurred while processing this directive]
|
// Установить бит
#define SetBit(Reg,Bit) Reg |= ( 0x01 << Bit )
// Сбросить бит
#define ClrBit(Reg,Bit) Reg &= ( ~( 0x01 << Bit ) )
// Инвертировать бит
#define TglBit(Reg,Bit) Reg ^= ( 0x01 << Bit )
// Прочитать бит
#define RdBit(Reg,Bit) ( Reg & ( 0x01 << Bit ) )
E-mail: info@telesys.ru