VSF Documented
i2c-dev.h
Go to the documentation of this file.
1#ifndef __VSF_LINUX_I2C_DEV_H__
2#define __VSF_LINUX_I2C_DEV_H__
3
4#include <linux/types.h>
5
6#ifdef __cplusplus
7extern "C" {
8#endif
9
10// for ioctrl
11#define I2C_SLAVE (('i' << 8) | 0)
12#define I2C_SLAVE_FORCE I2C_SLAVE
13#define I2C_TENBIT (('i' << 8) | 1)
14#define I2C_FUNCS (('i' << 8) | 2)
15#define I2C_RDWR (('i' << 8) | 3)
16#define I2C_SMBUS (('i' << 8) | 4)
17#define I2C_PEC (('i' << 8) | 5)
18
24};
25
27 struct i2c_msg *msgs;
29};
30
31#define I2C_RDWR_IOCTL_MAX_MSGS 42
32#define I2C_RDRW_IOCTL_MAX_MSGS I2C_RDWR_IOCTL_MAX_MSGS
33
34#ifdef __cplusplus
35}
36#endif
37
38#endif
uint32_t __u32
Definition types.h:55
uint8_t __u8
Definition types.h:51
Definition i2c.h:61
Definition i2c-dev.h:26
struct i2c_msg * msgs
Definition i2c-dev.h:27
__u32 nmsgs
Definition i2c-dev.h:28
Definition i2c-dev.h:19
__u8 read_write
Definition i2c-dev.h:20
__u8 command
Definition i2c-dev.h:21
__u32 size
Definition i2c-dev.h:22
union i2c_smbus_data * data
Definition i2c-dev.h:23
Definition i2c.h:42