LDN services: Difference between revisions

No edit summary
Line 175: Line 175:
| 404 || [19.0.0+] [[#InitializeWithPriority|InitializeWithPriority]]
| 404 || [19.0.0+] [[#InitializeWithPriority|InitializeWithPriority]]
|-
|-
| 500 || [18.0.0+] EnableActionFrame
| 500 || [18.0.0+] [[#EnableActionFrame|EnableActionFrame]]
|-
|-
| 501 || [18.0.0+] DisableActionFrame
| 501 || [18.0.0+] [[#DisableActionFrame|DisableActionFrame]]
|-
|-
| 502 || [18.0.0+] SendActionFrame
| 502 || [18.0.0+] [[#SendActionFrame|SendActionFrame]]
|-
|-
| 503 || [18.0.0+] RecvActionFrame
| 503 || [18.0.0+] [[#RecvActionFrame|RecvActionFrame]]
|-
|-
| 505 || [18.0.0+] [[#SetHomeChannel|SetHomeChannel]]
| 505 || [18.0.0+] [[#SetHomeChannel|SetHomeChannel]]
|-
|-
| 600 || [18.0.0+] SetTxPower
| 600 || [18.0.0+] [[#SetTxPower|SetTxPower]]
|-
|-
| 601 || [18.0.0+] ResetTxPower
| 601 || [18.0.0+] [[#ResetTxPower|ResetTxPower]]
|}
|}


Line 406: Line 406:


This is similar to [[#InitializeWithVersion|InitializeWithVersion]], with the additional cmd input u32 now being passed directly to the init func which is called here.
This is similar to [[#InitializeWithVersion|InitializeWithVersion]], with the additional cmd input u32 now being passed directly to the init func which is called here.
=== EnableActionFrame ===
Takes an input [[#ActionFrameSettings]]. No output.
=== DisableActionFrame ===
No input/output.
=== SendActionFrame ===
Takes a type-0x21 input buffer, two input [[#MacAddress]], two input s16s ('''Band''' and '''ChannelNumber''') and an input [[#MessageFlagSet]]. No output.
=== RecvActionFrame ===
Takes a type-0x22 output buffer and an input [[#MessageFlagSet]]. Returns an output u32 '''Size''', two output [[#MacAddress]], two output s16s ('''Band''' and '''ChannelNumber''') and an output s32 '''LinkLevel'''.


=== SetHomeChannel ===
=== SetHomeChannel ===
Takes two input s16s '''Band''' and '''ChannelNumber'''. No output.
[20.0.0+] Now takes a total of 2-bytes of input instead of 4-bytes.
[20.0.0+] Now takes a total of 2-bytes of input instead of 4-bytes.
=== SetTxPower ===
Takes an input s16 '''Power'''. No output.
=== ResetTxPower ===
No input/output.


== IClientProcessMonitor ==
== IClientProcessMonitor ==
Line 512: Line 532:
| 403 || [19.0.0+] [[#InitializeWithPriority|InitializeWithPriority]]
| 403 || [19.0.0+] [[#InitializeWithPriority|InitializeWithPriority]]
|-
|-
| 500 || [18.0.0+] EnableActionFrame
| 500 || [18.0.0+] [[#EnableActionFrame|EnableActionFrame]]
|-
|-
| 501 || [18.0.0+] DisableActionFrame
| 501 || [18.0.0+] [[#DisableActionFrame|DisableActionFrame]]
|-
|-
| 502 || [18.0.0+] SendActionFrame
| 502 || [18.0.0+] [[#SendActionFrame|SendActionFrame]]
|-
|-
| 503 || [18.0.0+] RecvActionFrame
| 503 || [18.0.0+] [[#RecvActionFrame|RecvActionFrame]]
|-
|-
| 505 || [18.0.0+] [[#SetHomeChannel|SetHomeChannel]]
| 505 || [18.0.0+] [[#SetHomeChannel|SetHomeChannel]]
|-
|-
| 600 || [18.0.0+] SetTxPower
| 600 || [18.0.0+] [[#SetTxPower|SetTxPower]]
|-
|-
| 601 || [18.0.0+] ResetTxPower
| 601 || [18.0.0+] [[#ResetTxPower|ResetTxPower]]
|}
|}


Line 1,366: Line 1,386:
* Local-game-update with a S2-only Application.
* Local-game-update with a S2-only Application.
* Local-game-update for a S1-game which has a Nintendo Switch 2 Edition available, even without the S2-Edition being installed.
* Local-game-update for a S1-game which has a Nintendo Switch 2 Edition available, even without the S2-Edition being installed.
= ActionFrameSettings =
This is "nn::ldn::ActionFrameSettings". This is a 0x80-byte struct.
{| class="wikitable" border="1"
|-
! Offset
! Size
! Description
|-
| 0x0 || 0x8 || LocalCommunicationId
|-
| 0x8 || 0x34 || Reserved
|-
| 0x3C || 0x2 || SecurityMode
|-
| 0x3E || 0x2 || PassphraseSize
|-
| 0x40 || 0x40 || Passphrase
|}
= MessageFlagSet =
This is "nn::ldn::MessageFlagSet". This is a BitFlagSet object for [[#MessageFlag]].
= MessageFlag =
This is "nn::ldn::MessageFlag".
{| class="wikitable" border="1"
|-
!  Value
!  Description
|-
| 0 ||
|}


= MacAddress =
= MacAddress =