56 #include "rnr/rnrconfig.h" 63 unsigned short cur_addr,
69 unsigned short cur_addr,
75 byte_t wbuf[],
unsigned int wcount,
76 byte_t rbuf[],
unsigned int rcount);
78 int i2ccore_check(
int fd,
unsigned short cur_addr,
unsigned short addr);
int i2ccore_check(int fd, unsigned short cur_addr, unsigned short addr)
Test for the existence of a device with the given address.
int i2ccore_write(int fd, unsigned short cur_addr, unsigned short addr, byte_t buf[], unsigned int len)
Write data to an attached device connected to the open I2C bus.
int i2ccore_transfer(int fd, unsigned short cur_addr, unsigned short addr, byte_t wbuf[], unsigned int wcount, byte_t rbuf[], unsigned int rcount)
Transfer data to an attached device connected to the open I2C bus reead back.
int i2ccore_read(int fd, unsigned short cur_addr, unsigned short addr, byte_t buf[], unsigned int len)
Read data from an attached device connected to the open I2C bus.
int i2ccore_open(const char *device)
Open a I2C bus device.
int i2ccore_close(int fd)
Close an open I2C bus device.