NFC:SendTagCommand

NFC:SendTagCommand

Request #

WordDescription
0
0x00200102Cmd0x0020Param4Xlat2
1u32 inputsize
2u32 outputsize
3-4u64 microseconds value, timing related. The u32 value passed to the internal send-cmd func is basically: “in64 / 1000000”. Other Amiibo-tag code calling that func use raw u32 value 200.
5Descriptor for static buffer (id 0)
6Input buffer address with static_buf_id=0

Response #

WordDescription
0
Header (unknown value)
1Result code
2u32 actual_output_size
3Descriptor for static buffer (id 0)
4Output data pointer with static_buf_id=0

Description #

This sends a raw NFC command to the tag. The inbuf/outbuf is the raw data to send/receive to/from the tag. With Amiibo tags the first byte in the inbuf is the command, followed by any parameters for the command if required.

outputsize value 0x800 will be used when it’s >=0x800. An error will be returned if actual_output_size is larger than outputsize. This can only be used when initialized with type3, and when the TagState is 3.