Difference between revisions of "NFC:GetCommonInfo"

From 3dbrew
Jump to navigation Jump to search
m
Line 22: Line 22:
 
|-
 
|-
 
| 2-17
 
| 2-17
| 0x40-byte config struct.
+
| [[NFC_Services#CommonInfo|CommonInfo]]
 
|}
 
|}
 
=Amiibo Config Structure=
 
{| class="wikitable" border="1"
 
|-
 
!  Offset
 
!  Size
 
!  Description
 
|-
 
| 0x0
 
| 0x4
 
| Same as the date value in the struct for [[NFC:GetAmiiboSettings]], except this is for the last-write date.
 
|-
 
| 0x4
 
| 0x2
 
| This is the u16 write counter field converted to little-endian, from [[Amiibo|amiibosettings]]+0x88.
 
|-
 
| 0xD
 
| 0x1
 
| This is byte[3] from NFC page[0x4].
 
|-
 
| 0xE
 
| 0x1
 
| NFC module writes hard-coded u8 value 0xD8 here. This is the size of the [[Amiibo]] AppData, apps can use this with the AppData R/W commands. This field may have been changed to u16 later?(Newer apps use u16 for accessing this field)
 
|-
 
| 0xF
 
| 0x31
 
| Unused / reserved: this is cleared by NFC module but never written after that.
 
|}
 
 
This data originates from the [[Amiibo]] NFC data.
 
  
 
=Description=
 
=Description=
This returns the NFC Amiibo config, from data already stored in memory.
+
This returns the NFC Amiibo common info, from data already stored in memory.

Revision as of 07:53, 8 March 2023

Request

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

Response

Index Word Description
0 Header code
1 Result code
2-17 CommonInfo

Description

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