Difference between revisions of "NFC:ReadAppData"

From 3dbrew
Jump to navigation Jump to search
 
(One intermediate revision by the same user not shown)
Line 39: Line 39:
  
 
=Description=
 
=Description=
This reads the app-data from [[Amiibo]]. The size must be >=0xD8-bytes, but the actual used size is hard-coded to 0xD8.
+
This reads the app-data from the [[Amiibo]] data already stored in memory. The size must be >=0xD8-bytes, but the actual used size is hard-coded to 0xD8.
  
A certain NFC module state field must be non-zero in order to use this, otherwise an error is returned(separate field from [[NFC:WriteAppData]]).
+
A certain NFC module state field must be non-zero in order to use this, otherwise an error is returned(same field as [[NFC:WriteAppData]]).

Latest revision as of 20:58, 17 April 2015

Request[edit]

Index Word Description
0 Header code [Starting with 9.3.0-X: 0x00150040]
1 Size

The following is located 0x100-bytes after the beginning of the above command buffer:

Index Word Description
0 (Size<<14) | 2
1 Pointer to output buf

Response[edit]

Index Word Description
0 Header code
1 Result code

Description[edit]

This reads the app-data from the Amiibo data already stored in memory. The size must be >=0xD8-bytes, but the actual used size is hard-coded to 0xD8.

A certain NFC module state field must be non-zero in order to use this, otherwise an error is returned(same field as NFC:WriteAppData).