Lines Matching +full:i2c +full:- +full:slave +full:- +full:addr
1 /* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */
3 * i2c.h - definitions for the I2C bus interface
5 * Copyright (C) 1995-2000 Simon G. Vogl
16 * struct i2c_msg - an I2C transaction segment beginning with START
18 * @addr: Slave address, either 7 or 10 bits. When this is a 10 bit address,
24 * %I2C_M_RD: read data (from slave to master). Guaranteed to be 0x0001!
45 * @len: Number of data bytes in @buf being read from or written to the I2C
46 * slave address. For read transactions where %I2C_M_RECV_LEN is set, the
48 * bytes in addition to the initial length byte sent by the slave (plus,
54 * An i2c_msg is the low level representation of one segment of an I2C
56 * to userspace from i2c-dev, and to I2C adapter drivers through the
59 * Except when I2C "protocol mangling" is used, all I2C adapters implement
60 * the standard rules for I2C transactions. Each transaction begins with a
61 * START. That is followed by the slave address, and a bit encoding read
74 __u16 addr; member
108 #define I2C_FUNC_SMBUS_READ_I2C_BLOCK 0x04000000 /* I2C-like block xfer */
109 #define I2C_FUNC_SMBUS_WRITE_I2C_BLOCK 0x08000000 /* w/ 1-byte reg. addr. */
145 /* and one more for user-space compatibility */