Changes

296 bytes added ,  17:08, 1 September 2020
m
Line 159: Line 159:     
=== Commands ===
 
=== Commands ===
* 0x40 [u8 len] <bytes> - Write bytes to device
+
The commands use the following bits
* 0xC1 [u8 len] - Receive bytes from device
+
{| class=wikitable
 +
! Bit || Name
 +
|-
 +
| 0 || Receive
 +
|-
 +
| 6 || I2cTransactionOption_Start
 +
|-
 +
| 7 || I2cTransactionOption_Sop
 +
|}
 +
* If bit 0 is not set, the command will write bytes to the device and follows this format: [u8 cmd] [u8 len] <bytes>
 +
* If bit 0 is set, the command will receive bytes from the device and follows this format: [u8 cmd] [u8 len]
    
== SetRetryValues ==
 
== SetRetryValues ==