Difference between revisions of "NFC:GetRegisterInfo"

From 3dbrew
Jump to navigation Jump to search
(2 intermediate revisions by the same user not shown)
Line 37: Line 37:
 
|-
 
|-
 
| 0x60
 
| 0x60
| 0x14(10*2)
+
| 0x16(11*2)
| UTF-16BE [[Amiibo]] nickname.
+
| UTF-16BE [[Amiibo]] nickname, the last u16 is always left at value 0x0.
|-
 
| 0x74
 
| 0x2
 
| Always zero.
 
 
|-
 
|-
 
| 0x76
 
| 0x76
Line 50: Line 46:
 
| 0x77
 
| 0x77
 
| 0x1
 
| 0x1
| This is [[Amiibo|plaintext_amiibosettingsdata]][1] & 0xF.
+
| This is [[Amiibo|plaintext_amiibosettingsdata]][1].
 
|-
 
|-
 
| 0x78
 
| 0x78
Line 66: Line 62:
 
This returns the NFC Amiibo settings, from data already stored in memory.
 
This returns the NFC Amiibo settings, from data already stored in memory.
  
When [[Amiibo|plaintext_amiibosettingsdata]][0] bit4 is clear, this will just return an all-zero output structure with result-code=0.
+
When [[Amiibo|plaintext_amiibosettingsdata]][0] bit4 is clear, this will just return an all-zero output structure with result-code=0xC8A17628.

Revision as of 18:13, 30 April 2016

Request

Index Word Description
0 Header code [Starting with 9.3.0-X: 0x00170000]

Response

Index Word Description
0 Header code
1 Result code
2-43 0xA8-byte Amiibo settings.

Amiibo Settings Structure

Offset Size Description
0x0 0x60 Owner Mii.
0x60 0x16(11*2) UTF-16BE Amiibo nickname, the last u16 is always left at value 0x0.
0x76 0x1 This is plaintext_amiibosettingsdata[0] & 0xF.
0x77 0x1 This is plaintext_amiibosettingsdata[1].
0x78 0x4 This is the Amiibo setup date converted to little-endian, from the NFC data. +0 u16 = year(the actual year not relative), +2 u8 = month, +3 u8 = day.
0x7C 0x2C ?

This data originates from the Amiibo settings data stored under the encrypted NFC data.

Description

This returns the NFC Amiibo settings, from data already stored in memory.

When plaintext_amiibosettingsdata[0] bit4 is clear, this will just return an all-zero output structure with result-code=0xC8A17628.