Changes

497 bytes added ,  17:51, 14 April 2015
no edit summary
Line 485: Line 485:     
Since the *Raw commands are used with this, this device has no I2C registers. Instead, raw data is transfered after the I2C device is selected. Hence, WriteDeviceRaw is used for sending commands to the controller, while ReadDeviceRaw is for receiving responses from the controller.
 
Since the *Raw commands are used with this, this device has no I2C registers. Instead, raw data is transfered after the I2C device is selected. Hence, WriteDeviceRaw is used for sending commands to the controller, while ReadDeviceRaw is for receiving responses from the controller.
 +
 +
Command request / response structure:
 +
{| class="wikitable" border="1"
 +
!  Offset
 +
!  Size
 +
!  Description
 +
|-
 +
| 0x0
 +
| 0x1
 +
| Normally 0x10?
 +
|-
 +
| 0x1
 +
| 0x1
 +
| ?
 +
|-
 +
| 0x2
 +
| 0x1
 +
| CmdID
 +
|-
 +
| 0x3
 +
| 0x1
 +
| Payload size.
 +
|}
 +
 +
Following the above header is the payload data(when payload size is non-zero), with the size specified in the header. The command response payload is usually at least 1-byte, where that byte appears to be normally 0x0. For command requests the payload data is the command parameters.