RTEMS  5.1
i2c-dev.h
Go to the documentation of this file.
1 
9 /*
10  * Copyright (c) 2014 embedded brains GmbH. All rights reserved.
11  *
12  * embedded brains GmbH
13  * Dornierstr. 4
14  * 82178 Puchheim
15  * Germany
16  * <rtems@embedded-brains.de>
17  *
18  * The license and distribution terms for this file may be
19  * found in the file LICENSE in this distribution or at
20  * http://www.rtems.org/license/LICENSE.
21  */
22 
23 #ifndef _UAPI_LINUX_I2C_DEV_H
24 #define _UAPI_LINUX_I2C_DEV_H
25 
26 #include <stdint.h>
27 
46 #define I2C_RETRIES 0x701
47 
53 #define I2C_TIMEOUT 0x702
54 
62 #define I2C_SLAVE 0x703
63 
69 #define I2C_SLAVE_FORCE 0x706
70 
77 #define I2C_TENBIT 0x704
78 
84 #define I2C_FUNCS 0x705
85 
93 #define I2C_RDWR 0x707
94 
101 #define I2C_PEC 0x708
102 
108 #define I2C_SMBUS 0x720
109 
116  uint8_t read_write;
117  uint8_t command;
118  uint32_t size;
119  union i2c_smbus_data *data;
120 };
121 
126  struct i2c_msg *msgs;
127  uint32_t nmsgs;
128 };
129 
133 #define I2C_RDRW_IOCTL_MAX_MSGS 42
134 
137 #endif /* _UAPI_LINUX_I2C_DEV_H */
Argument type for I2C_SMBUS IO control call.
Definition: i2c-dev.h:115
Argument type for I2C_RDWR IO control call.
Definition: i2c-dev.h:125
SMBus data.
Definition: i2c.h:229
I2C transfer message.
Definition: i2c.h:138