HID services: Difference between revisions

Line 2,802: Line 2,802:
! Cmd || Name
! Cmd || Name
|-
|-
| 0 || GetDataFormat
| 0 || [[#GetDataFormat]]
|-
|-
| 1 || SetDataFormat
| 1 || [[#SetDataFormat]]
|-
|-
| 2 || GetMcuState
| 2 || [[#GetMcuState]]
|-
|-
| 3 || SetMcuState
| 3 || [[#SetMcuState]]
|-
|-
| 4 || GetMcuVersionForNfc
| 4 || [[#GetMcuVersionForNfc]]
|-
|-
| 5 || CheckNfcDevicePower
| 5 || [[#CheckNfcDevicePower]]
|-
|-
| 6 || [5.0.0+] SetMcuStateImmediate
| 6 || [5.0.0+] [[#SetMcuStateImmediate]]
|-
|-
| 10 || SetNfcEvent
| 10 || [[#SetNfcEvent]]
|-
|-
| 11 || GetNfcInfo
| 11 || [[#GetNfcInfo]]
|-
|-
| 12 || StartNfcDiscovery
| 12 || StartNfcDiscovery
Line 2,849: Line 2,849:
[5.0.0+] SetDataFormat, SetMcuState, and ClearMifareKey: now takes a total of 0xC-bytes of input instead of 0x10.
[5.0.0+] SetDataFormat, SetMcuState, and ClearMifareKey: now takes a total of 0xC-bytes of input instead of 0x10.


[6.0.0+]: The buffer type used by GetNfcInfo is now 0x32 instead of 0x1A.
== GetDataFormat ==
Takes an input 8-byte handle, returns an output u8.
 
== SetDataFormat ==
Takes an input u8 and a 8-byte handle (4-byte alignment), no output.
 
== GetMcuState ==
Takes an input 8-byte handle, returns an output u8.
 
== SetMcuState ==
Takes an input u8 and a 8-byte handle (4-byte alignment), no output.
 
== GetMcuVersionForNfc ==
Takes an input 8-byte handle, returns an output 0x20-byte struct.
 
== CheckNfcDevicePower ==
Takes an input 8-byte handle, no output.
 
== SetMcuStateImmediate ==
Takes an input u8 and a 8-byte handle (4-byte alignment), no output.
 
== SetNfcEvent ==
Takes an input 8-byte handle, returns 2 output Event handles.
 
== GetNfcInfo ==
Takes an input 8-byte handle and a type-0x1A output buffer.
 
[6.0.0+]: The buffer type is now 0x32 instead of 0x1A.
 
This buffer contains a 0x804-byte struct.


= hidbus =
= hidbus =