i2c_device Struct Reference

I2c device structure.

#include <i2c.h>

Public Attributes

int bus
 I2C Bus fd, return from i2c_open.
 
unsigned short addr
 I2C device(slave) address.
 
unsigned char tenbit
 I2C is 10 bit device address.
 
unsigned char delay
 I2C internal operation delay, unit millisecond.
 
unsigned short flags
 I2C i2c_ioctl_read/write flags.
 
unsigned int page_bytes
 I2C max number of bytes per page, 1K/2K 8, 4K/8K/16K 16, 32K/64K 32 etc.
 
unsigned int iaddr_bytes
 I2C device internal(word) address bytes, such as: 24C04 1 byte, 24C64 2 bytes.