i2c.h
Go to the documentation of this file.
51 ssize_t i2c_ioctl_write(const I2CDevice *device, unsigned int iaddr, const void *buf, size_t len);
54 ssize_t i2c_smbus_read(const I2CDevice *device, unsigned int iaddr, unsigned char *buf, size_t len);
55 ssize_t i2c_smbus_write(const I2CDevice *device, unsigned int iaddr, const unsigned char *buf, size_t len);
64 typedef ssize_t (*I2C_READ_HANDLE)(const I2CDevice *dev, unsigned int iaddr, void *buf, size_t len);
68 typedef ssize_t (*I2C_WRITE_HANDLE)(const I2CDevice *dev, unsigned int iaddr, const void *buf, size_t len);
ssize_t(* I2C_WRITE_HANDLE)(const I2CDevice *dev, unsigned int iaddr, const void *buf, size_t len)
I2C write handle function.
Definition: i2c.h:68
unsigned int page_bytes
I2C max number of bytes per page, 1K/2K 8, 4K/8K/16K 16, 32K/64K 32 etc.
Definition: i2c.h:23
unsigned int iaddr_bytes
I2C device internal(word) address bytes, such as: 24C04 1 byte, 24C64 2 bytes.
Definition: i2c.h:24
unsigned char delay
I2C internal operation delay, unit millisecond.
Definition: i2c.h:21
ssize_t(* I2C_READ_HANDLE)(const I2CDevice *dev, unsigned int iaddr, void *buf, size_t len)
I2C read handle function.
Definition: i2c.h:64