Changes

478 bytes added ,  23:44, 28 April 2019
Line 566: Line 566:  
| 223 || [4.0.0+] DisconnectUsbPadsAsync
 
| 223 || [4.0.0+] DisconnectUsbPadsAsync
 
|-
 
|-
| 224 || [5.0.0+] UpdateDesignInfo
+
| 224 || [5.0.0+] [[#UpdateDesignInfo]]
 
|-
 
|-
 
| 225 || [5.0.0+] GetUniquePadDriverState
 
| 225 || [5.0.0+] GetUniquePadDriverState
Line 637: Line 637:     
Sends the spi-write subcommand to the specified controller, for writing the [[Joy-Con#Colors|color data]]. This writes to offset 0x6050 size 0x6, where the first 3-bytes are from the first u32 and the remaining 3-bytes are from the second u32.
 
Sends the spi-write subcommand to the specified controller, for writing the [[Joy-Con#Colors|color data]]. This writes to offset 0x6050 size 0x6, where the first 3-bytes are from the first u32 and the remaining 3-bytes are from the second u32.
 +
 +
== UpdateDesignInfo ==
 +
Takes 4 input u32s for the colors, an input u8, an input u64 '''UniquePadId''', and no output.
 +
 +
A state flag must be clear (same as [[#UpdateControllerColor]]), otherwise an error is thrown. Afterwards, this flag is set.
 +
 +
Sends the spi-write subcommand to the specified controller, for writing to offset 0x6050 size 0xD. The first 3-bytes from each u32 is used for the spi-write-data, with the u8 being copied immediately afterwards the color data.
    
= hid:sys =
 
= hid:sys =