smbus.#1

来自「本程序运行于C8051F330」· #1 代码 · 共 17 行

#1
17
字号
#define TRUE 1;
#define FALSE 0;
typedef bit BOOL;

//-----------------------------------------------------------------------------
// SMBus Status vector - top 4 bits only
//-----------------------------------------------------------------------------

#define SMBus_DetectSTA   0x60             // Detect a START and a slave address
#define SMBus_TxData      0x40             // A slave byte was transmitted
#define SMBus_RxData      0x00 
#define SMBus_TxSTO 0x50             // when transmiting Detect a STOP
#define SMBus_RxSTO 0x10             // when receiving Detect a STOP

#define SMBus_SlaveAddress 0x91          // Read Address of F330 SMBus   

⌨️ 快捷键说明

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