A general I2C accessing library. More...
#include <sys/types.h>
#include <linux/i2c.h>
#include <linux/i2c-dev.h>
Include dependency graph for i2c.h:
Go to the source code of this file.
Classes | |
struct | i2c_device |
I2c device structure. More... | |
Typedefs | |
typedef struct i2c_device | I2CDevice |
I2c device structure. | |
typedef ssize_t(* | I2C_READ_HANDLE) (const I2CDevice *dev, unsigned int iaddr, void *buf, size_t len) |
I2C read handle function. | |
typedef ssize_t(* | I2C_WRITE_HANDLE) (const I2CDevice *dev, unsigned int iaddr, const void *buf, size_t len) |
I2C write handle function. | |
Functions | |
int | i2c_open (const char *bus_name) |
void | i2c_close (int bus) |
void | i2c_init_device (I2CDevice *device) |
char * | i2c_get_device_desc (const I2CDevice *device, char *buf, size_t size) |
int | i2c_select (int bus, unsigned long dev_addr, unsigned long tenbit) |
void | i2c_iaddr_convert (unsigned int int_addr, unsigned int iaddr_bytes, unsigned char *addr) |
ssize_t | i2c_read (const I2CDevice *device, unsigned int iaddr, void *buf, size_t len) |
ssize_t | i2c_write (const I2CDevice *device, unsigned int iaddr, const void *buf, size_t len) |
ssize_t | i2c_ioctl_read (const I2CDevice *device, unsigned int iaddr, void *buf, size_t len) |
ssize_t | i2c_ioctl_write (const I2CDevice *device, unsigned int iaddr, const void *buf, size_t len) |
ssize_t | i2c_smbus_read (const I2CDevice *device, unsigned int iaddr, unsigned char *buf, size_t len) |
ssize_t | i2c_smbus_write (const I2CDevice *device, unsigned int iaddr, const unsigned char *buf, size_t len) |
ssize_t | i2c_sbl_read (const I2CDevice *device, void *buf, size_t len) |
ssize_t | i2c_sbl_write (const I2CDevice *device, const void *buf, size_t len) |