⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 bit.h

📁 vt6528芯片交换机API函数和文档运行程序
💻 H
字号:
/*
 * File:    bit.h
 */


#ifndef __BIT_H__
#define __BIT_H__




/*---------------------  Export Definitions  ------------------------*/

/*---------------------  Export Types  ------------------------------*/

/*---------------------  Export Macros ------------------------------*/
// test single bit on
#define BITbIsBitOn(tData, tTestBit)                \
    (((tData) & (tTestBit)) != 0)

// test single bit off
#define BITbIsBitOff(tData, tTestBit)               \
    (((tData) & (tTestBit)) == 0)


#define BITbIsAllBitsOn(tData, tTestBit)            \
    (((tData) & (tTestBit)) == (tTestBit))

#define BITbIsAllBitsOff(tData, tTestBit)           \
    (((tData) & (tTestBit)) == 0)

#define BITbIsAnyBitsOn(tData, tTestBit)            \
    (((tData) & (tTestBit)) != 0)

#define BITbIsAnyBitsOff(tData, tTestBit)           \
    (((tData) & (tTestBit)) != (tTestBit))

/*---------------------  Export Classes  ----------------------------*/

/*---------------------  Export Variables  --------------------------*/

/*---------------------  Export Functions  --------------------------*/
#ifdef __cplusplus
extern "C" {                            /* Assume C declarations for C++ */
#endif /* __cplusplus */


#ifdef __cplusplus
}                                       /* End of extern "C" { */
#endif /* __cplusplus */




#endif // __BIT_H__


⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -