//--------------------------------------------------------------------------- #ifndef mathToolsH #define mathToolsH //--------------------------------------------------------------------------- typedef unsigned int uint4; typedef unsigned char uint1; //--------------------------------------------------------------------------- bool testBit(const unsigned char *mas,const unsigned char pos); //проверка значения бита void setBit(unsigned char *mas,const unsigned char pos,bool val);//установить заданный бит в 1 или в 0 uint1 setBitVal(uint1 bit,uint1 pos,bool val); //<Установит знначение бита в заданную позицию bool getBitVal(uint1 bit,uint1 pos); //<Вернёт значение бита на заданной позиции long getBaudRate(long s); int MaxI4_2(int v1,int v2); //------------------------------------------------------------------------------ #endif