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

📄 i2c.h

📁 Generate I2C Using 8051 IO port
💻 H
字号:
// ------ Public function prototypes -------------------------------

void  I2C_Send_Start(void);        
void  I2C_Send_Stop(void);         

u8 I2C_Write_Byte(const u8); 
u8 I2C_Read_Byte(void);         

void I2C_Send_Master_Ack(void);
void I2C_Send_Master_NAck(void);

// ------ Public constants -----------------------------------------

#define I2C_READ      0x01    // Read command
#define I2C_WRITE     0x00    // Write command

/*------------------------------------------------------------------*-
  ---- END OF FILE -------------------------------------------------
-*------------------------------------------------------------------*/

⌨️ 快捷键说明

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