Lines Matching defs:byte
37 static status_t i2c_writebyte(i2c_bus *bus, uint8 byte, int *ack);
188 /* write one byte and the ack/nack
190 * B_OK => byte transmitted
195 i2c_writebyte(i2c_bus *bus, uint8 byte, int *ack)
202 int bit = (byte >> i) & 1;
234 /* read one byte, don't generate ack
240 uint8 byte;
243 byte = 0;
249 byte = (byte << 1) | bus->get_sda(bus->cookie);
252 *pbyte = byte;
275 TRACE("i2c_read: timeout error on byte %ld\n", bytes - (uint8 *)data);
321 TRACE("i2c_write: timeout error on byte %ld\n", bytes - (uint8 *)data);
325 TRACE("i2c_write: arbitration lost on byte %ld\n", bytes - (uint8 *)data);
329 TRACE("i2c_write: error, got NACK on byte %ld\n", bytes - (uint8 *)data);