Difference between revisions of "APT:ReceiveParameter"

From 3dbrew
Jump to navigation Jump to search
m
 
Line 15: Line 15:
 
|}
 
|}
  
The following is located 0x100-bytes after the beginning of the above command buffer:
+
The following is located 0x100-bytes after the beginning of the above command buffer, as a static buffer descriptor receiving the static buffer in the response:
 
{| class="wikitable" border="1"
 
{| class="wikitable" border="1"
 
|-
 
|-
Line 35: Line 35:
 
|-
 
|-
 
| 0
 
| 0
| Header code
+
| Header code [0x000D0104]
 
|-
 
|-
 
| 1
 
| 1
Line 50: Line 50:
 
|-
 
|-
 
| 5
 
| 5
| 0x10
+
| 0x10 (Move handle descriptor)
 
|-
 
|-
 
| 6
 
| 6
 
| Handle Parameter
 
| Handle Parameter
 +
|-
 +
| 7
 +
| <nowiki>(Actual Parameter Size << 14) | 2</nowiki> (static buffer descriptor)
 +
|-
 +
| 8
 +
| void*, Parameter to send
 
|}
 
|}
  

Latest revision as of 13:24, 7 August 2016

Request[edit]

Index Word Description
0 Header code [0x000D0080]
1 AppID
2 Parameter Size (max is 0x1000)

The following is located 0x100-bytes after the beginning of the above command buffer, as a static buffer descriptor receiving the static buffer in the response:

Index Word Description
0 (Parameter Size << 14) | 2
1 void*, Parameter Output

Response[edit]

Index Word Description
0 Header code [0x000D0104]
1 Result code
2 Sender AppID
3 Command
4 Actual Parameter Size
5 0x10 (Move handle descriptor)
6 Handle Parameter
7 (Actual Parameter Size << 14) | 2 (static buffer descriptor)
8 void*, Parameter to send

Description[edit]

This returns the current parameter data from NS state, from the source process which set the parameters. Once finished, NS will clear a flag in the NS state so that this command will return an error if this command is used again if parameters were not set again. This is called when the second APT:Initialize event is triggered. It returns a signal type indicating why it was triggered.