34 int i2c_write (
unsigned int fd,
unsigned int addr,
unsigned char *data,
unsigned int len);
35 int i2c_read (
unsigned int fd,
unsigned int addr,
unsigned char *data,
unsigned int len);
int i2c_write(unsigned int fd, unsigned int addr, unsigned char *data, unsigned int len)
Initiates an I2C write operation.
int i2c_select_device(unsigned int fd, unsigned int addr)
Selects a specific I2C slave device.
int i2c_init_name(char *devname)
Initialises the i2c-dev interface for the sysfs entry specified by the devname parameter.
int i2c_init()
Initialises the i2c-dev interface for the I2C peripheral exposed on the P1 header (which is dependent...
int i2c_read(unsigned int fd, unsigned int addr, unsigned char *data, unsigned int len)
Initiates an I2C read operation.