Lines Matching refs:bit
170 //! Send one bit
172 send_bit(const i2c_bus *bus, uint8 bit, int timeout)
176 //TRACE("send_bit(bit = %d)\n", bit & 1);
178 bus->set_signals(bus->cookie, 0, bit & 1);
180 bus->set_signals(bus->cookie, 1, bit & 1);
184 TRACE("%s: Timeout when sending next bit\n", __func__);
189 bus->set_signals(bus->cookie, 0, bit & 1);
269 //! Send slave address, obeying 10-bit addresses and general call addresses
288 // - 1111 0xxx - 10 bit address (second byte contains remaining 8 bits)
299 //! Receive one bit
301 receive_bit(const i2c_bus *bus, bool *bit, int timeout)
312 TRACE("%s: Timeout waiting for bit sent by slave\n", __func__);
323 // pull clock low so slave waits for us before next bit
327 // to make sure slave has finished bit transmission too
329 *bit = data;
348 bool bit;
350 status_t status = receive_bit(bus, &bit,
355 byte = (byte << 1) | bit;
408 // the address is 7-bit