iic.h
来自「DM642算法例程 阈值选取 基于DSPBIOS」· C头文件 代码 · 共 53 行
H
53 行
/***********************************************************/
/* Copyright 2003 by BTECH Incorporated. */
/* All rights reserved. Property of BTECH Incorporated. */
/* */
/***********************************************************/
#ifndef _IIC_H
#define _IIC_H
#include <std.h>
#include <csl_stdinc.h>
#include <csl_i2c.h>
#ifdef __cplusplus
extern "C" {
#endif
void _IIC_write_byte(I2C_Handle hI2C,
Uint8 devAddress,
Uint32 subAddress,
Uint8 data
);
/*
* ======== _IIC_read ========
* This function performs read from operation via I2C bus.
*/
void _IIC_read_byte(I2C_Handle hI2C,
Uint8 devAddress,
Uint32 subAddress,
Uint8 *data
);
void _IIC_write(I2C_Handle hI2C,
Uint8 devAddress,
Uint32 subAddress,
Uint8 *data,
Uint16 numBytes
);
void _IIC_read(I2C_Handle hI2C,
Uint8 devAddress,
Uint32 subAddress,
Uint8 *data,
Uint16 numBytes
);
#ifdef __cplusplus
}
#endif
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?