NFC:SendTagCommand: Difference between revisions

 
(2 intermediate revisions by the same user not shown)
Line 5: Line 5:
{{IPC/RequestEntry|u32 inputsize}}
{{IPC/RequestEntry|u32 inputsize}}
{{IPC/RequestEntry|u32 outputsize}}
{{IPC/RequestEntry|u32 outputsize}}
{{IPC/RequestEntryRange|2|u64 microseconds value, timing related. The value passed to the internal send-cmd func is basically: "in64 / 1000000".}}
{{IPC/RequestEntryRange|2|u64 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.}}
{{IPC/TranslateStaticBuffer|<nowiki>Input buffer address with static_buf_id=0</nowiki>|0}}
{{IPC/TranslateStaticBuffer|<nowiki>Input buffer address with static_buf_id=0</nowiki>|0}}
{{IPC/RequestEnd}}
{{IPC/RequestEnd}}
Line 24: Line 24:


=Description=
=Description=
This sends a raw NFC command to the tag. First byte in the inbuf is the command, followed by any parameters for the command if required. The outbuf contains the command response.
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 the [[NFC:GetTagState|TagState]] is 3.
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 [[NFC:Initialize|initialized]] with type3, and when the [[NFC:GetTagState|TagState]] is 3.