drv_i2c.h
来自「最新版IAR FOR ARM(EWARM)5.11中的代码例子」· C头文件 代码 · 共 33 行
H
33 行
/**********************************************************************************/
/* */
/* Copyright (C) 2006 Oki Electric Industry Co., LTD. */
/* */
/* System Name : ML675050 series */
/* Module Name : ML675050system I2C drives definition inclode file */
/* File Name : drv_i2c.h */
/* Revision : 01.00 */
/* Date : 2006/1/6 initial version */
/* */
/**********************************************************************************/
#ifndef DRV_I2C_H
#define DRV_I2C_H
/***********************************/
/* type definition */
/***********************************/
#define MASTER_MODE (0x0000) /* Master mode */
#define SLAVE_MODE (0x0001) /* SLAVE mode */
#define DRV_I2C_OK (1) /* I2C No error */
/***********************************/
/* Functions prototype */
/***********************************/
int16_t smpDrv_OpenI2C(struct ml675050_i2cParam *init_i2c);
int16_t smpDrv_CloseI2C(void);
int16_t smpDrv_WriteI2C(uint8_t *buff, uint16_t size);
int16_t smpDrv_ReadI2C(uint8_t *buff, uint16_t size);
#endif /* DRV_I2C_H */
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?