📄 i2c.h
字号:
//*****************************************************************
//
// File Name : 'i2c.h'
// Title : I2C protocol code using port pins
// Author : Pascal Stang
// Date : 11/22/2000
// Version : 0.1
// Target MCU : ATmega103
// Editor Tabs : 3
//
//*****************************************************************
#ifndef I2C_H
#define I2C_H
// uses these type redefinitions
typedef unsigned char BYTE;
typedef unsigned int WORD;
typedef unsigned long DWORD;
typedef unsigned short USHORT;
typedef unsigned char BOOL;
typedef unsigned char UCHAR;
typedef unsigned int UINT;
typedef unsigned long ULONG;
typedef char CHAR;
typedef int INT;
typedef long LONG;
void i2c_init(void);
void i2c_send(BYTE dev, BYTE sub, BYTE length, BYTE *data);
void i2c_receive(BYTE dev, BYTE sub, BYTE length, BYTE *data);
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -