Update 'USB config & command protocol'
parent
280adacf00
commit
39fbb8f70e
|
@ -103,8 +103,8 @@ The I2C command format used here is based heavily on the one of [I2C-Tiny-USB](h
|
||||||
* If the lowest bit (bit 0) of the command byte is set, a "start condition" is performed at the start of the I2C transfer. Otherwise, a "repstart" is done.
|
* If the lowest bit (bit 0) of the command byte is set, a "start condition" is performed at the start of the I2C transfer. Otherwise, a "repstart" is done.
|
||||||
* If bit 1 of the command byte is set, a "stop condition" is performed at the end of the transfer, causing the target device to stop listening to further commands, and go back to listening for its address on the bus.
|
* If bit 1 of the command byte is set, a "stop condition" is performed at the end of the transfer, causing the target device to stop listening to further commands, and go back to listening for its address on the bus.
|
||||||
* If `flags & I2C_M_RD`, this is a read operation. The amount of bytes read (max. the number of bytes specified in the arguments) is returned as data payload.
|
* If `flags & I2C_M_RD`, this is a read operation. The amount of bytes read (max. the number of bytes specified in the arguments) is returned as data payload.
|
||||||
* If the transfer length is 0, this is an address probe. The response payload is a single byte with the current status (cf. cmd. `0x03`).
|
* If the transfer length is 0, this is an address probe. Response contains no payload, but a status byte (together with a 0-length byte) is still sent out.
|
||||||
* Otherwise, this is a write transfer. The number of bytes specified in the arguments is read from the USB host, and sent over the I2C bus.
|
* Otherwise, this is a write transfer. The number of bytes specified in the arguments is read from the USB host, and sent over the I2C bus. Response contains no payload, but a status byte (together with a 0-length byte) is still sent out.
|
||||||
|
|
||||||
#### Temperature sensor commands
|
#### Temperature sensor commands
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue