?? i2c.h
字號:
#ifndef __I2C_DEFINED
#define __I2C_DEFINED
#include <services\services.h> // system services
//--------------------------------------------------------------------------//
// Header files //
//--------------------------------------------------------------------------//
#include <sys\exception.h>
#include "error_def.h"
#include "basic_type.h"
//--------------------------------------------------------------------------//
// Definations
//--------------------------------------------------------------------------//
//#define INL inline // Large Code Size/Little Stack usage
#define INL // Small Code Size/Larger Stack usage
//--------------------------------------------------------------------------//
// Symbolic constants //
//--------------------------------------------------------------------------//
#define SCLK 0x0001 // PF0
#define SDATA 0x0002 // PF1
//--------------------------------------------------------------------------//
// Prototypes //
//--------------------------------------------------------------------------//
// in file I2C.c
#ifdef __cplusplus
extern "C" {
#endif
RESULT I2C_Init(u8 identaddr);
RESULT I2C_Write(u8 *pDataOut, u8 address,char num_data);
RESULT I2C_Read(u8 *pbyDataIn, u8 byAddress,char numData);
#ifdef __cplusplus
}
#endif
#endif //__I2C_DEFINED
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -