Home | History | Annotate | Download | only in bitbash

Lines Matching defs:byte

137  * Send byte via I2C bus and check for acknowledgement
140 * @v byte Byte to send
143 * Sends a byte via the I2C bus and checks for an acknowledgement from
146 static int i2c_send_byte ( struct bit_basher *basher, uint8_t byte ) {
150 /* Send byte */
151 DBG2 ( "[send %02x]", byte );
153 i2c_send_bit ( basher, byte & 0x80 );
154 byte <<= 1;
165 * Receive byte via I2C bus
168 * @ret byte Received byte
170 * Receives a byte via the I2C bus and sends NACK to the slave device.
173 uint8_t byte = 0;
176 /* Receive byte */
178 byte <<= 1;
179 byte |= ( i2c_recv_bit ( basher ) & 0x1 );
185 DBG2 ( "[rcvd %02x]", byte );
186 return byte;
202 unsigned int byte;
212 /* Send address a byte at a time */
215 byte = ( ( address >> shift ) & 0xff );
216 if ( ( rc = i2c_send_byte ( basher, byte ) ) != 0 )
307 /* Read byte */