i2c.h
来自「AVR mp3 embedded program code support ID」· C头文件 代码 · 共 39 行
H
39 行
//*****************************************************************
//
// 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 + =
减小字号Ctrl + -
显示快捷键?