NFC:WriteAppData

NFC:WriteAppData

Request #

Index WordDescription
0Header code [Starting with 9.3.0-X: 0x00160242]
1Size
2-9See below input struct.
10(Size<<14) | 2
11Pointer to input appdata buf

Response #

Index WordDescription
0Header code
1Result code

Input struct #

OffsetSizeDescription
0x00x7NFC tag 7-byte UID, must match the current tag UID stored in NFC module state.
0x80x2Unused
0xA0x1Size of the above UID, must match a NFC module state field(value 0x7).
0xB0x15Unused

Description #

This is used to write to the Amiibo app-data stored in memory, when the app-data was already setup for the user application. When the size is <0xD8-bytes, the remaining app-data in memory has data from a “PRNG” written to it.

Besides the usual NFC module state checks, this command can only be used when a certain state u8 field is non-zero, otherwise an error is returned.