HID services: Difference between revisions
No edit summary |
No edit summary |
||
Line 1,348: | Line 1,348: | ||
Takes an input TransferMemory handle and an u64 for the TransferMemory size, no output. | Takes an input TransferMemory handle and an u64 for the TransferMemory size, no output. | ||
[13.0.0+] Now additionally returns an output | [13.0.0+] Now additionally returns an output [[#HdlsSessionId]]. | ||
Official user-processes use TransferMemory size=0x1000 and permissions=RW. | Official user-processes use TransferMemory size=0x1000 and permissions=RW. | ||
Line 1,359: | Line 1,359: | ||
No input/output. | No input/output. | ||
[13.0.0+] Takes an input | [13.0.0+] Takes an input [[#HdlsSessionId]], no output. | ||
== DumpHdlsNpadAssignmentState == | == DumpHdlsNpadAssignmentState == | ||
No input/output. | No input/output. | ||
[13.0.0+] Takes an input | [13.0.0+] Takes an input [[#HdlsSessionId]], no output. | ||
After using this cmd, the output [[#HdlsNpadAssignment]] is located at tmem+0. | After using this cmd, the output [[#HdlsNpadAssignment]] is located at tmem+0. | ||
Line 1,371: | Line 1,371: | ||
No input/output. | No input/output. | ||
[13.0.0+] Takes an input | [13.0.0+] Takes an input [[#HdlsSessionId]], no output. | ||
After using this cmd, the output [[#HdlsStateList]] struct is located at tmem+0. | After using this cmd, the output [[#HdlsStateList]] struct is located at tmem+0. | ||
Line 1,378: | Line 1,378: | ||
Takes an input u8 bool, no output. | Takes an input u8 bool, no output. | ||
[13.0.0+] Takes a | [13.0.0+] Takes an input bool and a [[#HdlsSessionId]], no output. | ||
Prior to using this cmd, the input [[#HdlsNpadAssignment]] is written to tmem+0 by the user-process. | Prior to using this cmd, the input [[#HdlsNpadAssignment]] is written to tmem+0 by the user-process. | ||
Line 1,385: | Line 1,385: | ||
No input/output. | No input/output. | ||
[13.0.0+] Takes an input | [13.0.0+] Takes an input [[#HdlsSessionId]], no output. | ||
Prior to using this cmd, the input [[#HdlsStateList]] is written to tmem+0 by the user-process. | Prior to using this cmd, the input [[#HdlsStateList]] is written to tmem+0 by the user-process. | ||
Line 7,925: | Line 7,925: | ||
= HdlsHandle = | = HdlsHandle = | ||
This is "nn::hid::debug::HdlsHandle". This is a 0x8-byte struct with 8-byte alignment. | This is "nn::hid::debug::HdlsHandle". This is a 0x8-byte struct with 8-byte alignment. | ||
= HdlsSessionId = | |||
This is "nn::hid::debug::detail::HdlsSessionId". This is a 0x8-byte struct with 8-byte alignment. | |||
= HdlsNpadAssignment = | = HdlsNpadAssignment = |