Joybus Protocol: Difference between revisions

Added data crc info
(Added RX/TX values for GC polling.)
(Added data crc info)
Line 97:
=== 0x03 - Write Controller Accessory ===
 
===Data Cyclic Redundancy Check (CRC)===
== References ==
Controller accessory read and write data packets implement a CRC to ensure integrity. The CRC uses an 8 bit polynomial in the form <math>x^7 + x^2 + x^0</math>. This can be represented in the hex form 0x85.
 
The initial value of the CRC is 0x00.
 
For peripheral writes, the controller will calculate the CRC of the received packet and return the value to the console.
 
For peripheral reads, the controller will calculate the CRC and append it to the end of the packet and form part of the response.
 
=== Address CRC ===
 
== References ==
{{reflist}}
2

edits