55#include <linux/i2c-dev.h>
57int setI2C(
unsigned int index,
long slave_addr);
61int readI2C_asFile(
int i2c_fd,
unsigned char readbuffer[],
unsigned char bytes);
63#define writeI2C_byte(i2c_fd, u8RegAddr, u8Data) \
64 i2c_smbus_write_byte_data(i2c_fd, u8RegAddr, u8Data);
66#define writeI2C_word(i2c_fd, u8RegAddr, u16Data) \
67 i2c_smbus_write_word_data(i2c_fd, u8RegAddr, u16Data);
int setI2C(unsigned int index, long slave_addr)
int writeI2C_asFile(int i2c_fd, unsigned char writebuffer[], unsigned char bytes)
int readI2C_asFile(int i2c_fd, unsigned char readbuffer[], unsigned char bytes)