Lines Matching defs:byte
10 * TODO: i2cdump non-byte modes, -r FIRST-LAST?
11 * TODO: i2cget non-byte modes? default to current read address?
64 Write an i2c register. MODE is b for byte, w for 16-bit word, i for I2C block.
109 static int i2c_read_byte(int fd, int addr, int *byte)
117 *byte = data.byte;
191 int bus, first = 0x03, last = 0x77, fd, row, addr, byte;
222 if ((FLAG(r) ? i2c_read_byte(fd, addr, &byte)
241 int fd, row, addr, byte;
250 if (!i2c_read_byte(fd, addr, &byte)) printf(" %02x", byte);
253 byte = 'X';
255 toybuf[addr-row] = isprint(byte) ? byte : (byte ? '?' : '.');
271 int fd, byte;
276 if (i2c_read_byte(fd, addr, &byte)==-1) perror_exit("i2c_read_byte");
277 printf("0x%02x\n", byte);
299 data.byte = atolx_range(toys.optargs[3], 0, 0xff);