HID services: Difference between revisions

No edit summary
Line 738: Line 738:


== GetPalmaOperationInfo ==
== GetPalmaOperationInfo ==
Takes a [[#PalmaConnectionHandle]], a type-0x6 output buffer, returns an output u64.
Takes a [[#PalmaConnectionHandle]], a type-0x6 output buffer, returns an output u64 [[#PalmaOperationType]].


sdknso passes [[#PalmaOperationInfo]]+0x8 size 0x140 for the output buffer. [5.1.0+] After using the cmd successfully, [[#GetPalmaOperationResult]] is used.
sdknso passes [[#PalmaOperationInfo]]+0x8 size 0x140 for the output buffer. [5.1.0+] After using the cmd successfully, [[#GetPalmaOperationResult]] is used.
Line 747: Line 747:
Takes an input [[#PalmaConnectionHandle]], an u64 (exposed by sdknso as an u16), no output.
Takes an input [[#PalmaConnectionHandle]], an u64 (exposed by sdknso as an u16), no output.


See [[#hidGetPalmaOperationInfo]].
See [[#GetPalmaOperationInfo]].


== SetPalmaFrModeType ==
== SetPalmaFrModeType ==
Takes an input [[#PalmaConnectionHandle]], an u64 [[#PalmaFrModeType]], no output.
Takes an input [[#PalmaConnectionHandle]], an u64 [[#PalmaFrModeType]], no output.


See [[#hidGetPalmaOperationInfo]].
See [[#GetPalmaOperationInfo]].


== ReadPalmaStep ==
== ReadPalmaStep ==
Takes an input [[#PalmaConnectionHandle]], no output.
Takes an input [[#PalmaConnectionHandle]], no output.


See [[#hidGetPalmaOperationInfo]].
See [[#GetPalmaOperationInfo]].


[[#EnablePalmaStep]] should be used before this.
[[#EnablePalmaStep]] should be used before this.
Line 764: Line 764:
Takes an input bool, a [[#PalmaConnectionHandle]], no output.
Takes an input bool, a [[#PalmaConnectionHandle]], no output.


See [[#hidGetPalmaOperationInfo]].
See [[#GetPalmaOperationInfo]].


== ResetPalmaStep ==
== ResetPalmaStep ==
Takes an input [[#PalmaConnectionHandle]], no output.
Takes an input [[#PalmaConnectionHandle]], no output.


See [[#hidGetPalmaOperationInfo]].
See [[#GetPalmaOperationInfo]].


== ReadPalmaApplicationSection ==
== ReadPalmaApplicationSection ==
Line 776: Line 776:
sdknso exposes the first u64 as a s32. sdknso will Abort if the input value for the second u64 is >0x100.
sdknso exposes the first u64 as a s32. sdknso will Abort if the input value for the second u64 is >0x100.


See [[#hidGetPalmaOperationInfo]].
See [[#GetPalmaOperationInfo]].


== WritePalmaApplicationSection ==
== WritePalmaApplicationSection ==
Line 783: Line 783:
sdknso exposes the first u64 as a s32. Data is copied from the input [[#PalmaApplicationSectionAccessBuffer]] with the specified size.
sdknso exposes the first u64 as a s32. Data is copied from the input [[#PalmaApplicationSectionAccessBuffer]] with the specified size.


See [[#hidGetPalmaOperationInfo]].
See [[#GetPalmaOperationInfo]].


== ReadPalmaUniqueCode ==
== ReadPalmaUniqueCode ==
Takes an input [[#PalmaConnectionHandle]], no output.
Takes an input [[#PalmaConnectionHandle]], no output.


See [[#hidGetPalmaOperationInfo]].
See [[#GetPalmaOperationInfo]].


== SetPalmaUniqueCodeInvalid ==
== SetPalmaUniqueCodeInvalid ==
Takes an input [[#PalmaConnectionHandle]], no output.
Takes an input [[#PalmaConnectionHandle]], no output.


See [[#hidGetPalmaOperationInfo]].
See [[#GetPalmaOperationInfo]].


== WritePalmaActivityEntry ==
== WritePalmaActivityEntry ==
Line 800: Line 800:
sdknso exposes the first u64 as an u16, while the rest are exposed as [[#PalmaActivityEntry]].
sdknso exposes the first u64 as an u16, while the rest are exposed as [[#PalmaActivityEntry]].


See [[#hidGetPalmaOperationInfo]].
See [[#GetPalmaOperationInfo]].


== WritePalmaRgbLedPatternEntry ==
== WritePalmaRgbLedPatternEntry ==
Line 807: Line 807:
sdknso exposes the u64 as an u16.
sdknso exposes the u64 as an u16.


See [[#hidGetPalmaOperationInfo]].
See [[#GetPalmaOperationInfo]].


== WritePalmaWaveEntry ==
== WritePalmaWaveEntry ==
Line 816: Line 816:
Note that the sysmodule will not properly close the TransferMemory handle if the [[#PalmaConnectionHandle]] is invalid.
Note that the sysmodule will not properly close the TransferMemory handle if the [[#PalmaConnectionHandle]] is invalid.


See [[#hidGetPalmaOperationInfo]].
See [[#GetPalmaOperationInfo]].


== SetPalmaDataBaseIdentificationVersion ==
== SetPalmaDataBaseIdentificationVersion ==
Takes an input s32, a [[#PalmaConnectionHandle]], no output.
Takes an input s32, a [[#PalmaConnectionHandle]], no output.


See [[#hidGetPalmaOperationInfo]].
See [[#GetPalmaOperationInfo]].


== GetPalmaDataBaseIdentificationVersion ==
== GetPalmaDataBaseIdentificationVersion ==
Takes an input [[#PalmaConnectionHandle]], no output.
Takes an input [[#PalmaConnectionHandle]], no output.


See [[#hidGetPalmaOperationInfo]].
See [[#GetPalmaOperationInfo]].


== SuspendPalmaFeature ==
== SuspendPalmaFeature ==
Takes an input "nn::util::BitFlagSet<32, [[#PalmaFeature]]>", a [[#PalmaConnectionHandle]], no output.
Takes an input "nn::util::BitFlagSet<32, [[#PalmaFeature]]>", a [[#PalmaConnectionHandle]], no output.


See [[#hidGetPalmaOperationInfo]].
See [[#GetPalmaOperationInfo]].


== GetPalmaOperationResult ==
== GetPalmaOperationResult ==
Line 841: Line 841:
Takes an input u16, a [[#PalmaConnectionHandle]], no output.
Takes an input u16, a [[#PalmaConnectionHandle]], no output.


See [[#hidGetPalmaOperationInfo]].
See [[#GetPalmaOperationInfo]].


== ResetPalmaPlayLog ==
== ResetPalmaPlayLog ==
Takes an input u16, a [[#PalmaConnectionHandle]], no output.
Takes an input u16, a [[#PalmaConnectionHandle]], no output.


See [[#hidGetPalmaOperationInfo]].
See [[#GetPalmaOperationInfo]].


== SetIsPalmaAllConnectable ==
== SetIsPalmaAllConnectable ==