NTAGAbort

Syntax

#include <cafe/ntag.h>

typedef void (*NTAGResultCheckCallback)(s32 chan, NTAGError error_code, void* userData); 

NTAGError NTAGAbort( s32 chan, NTAGResultCheckCallback callback, void* userData );

Parameters

chan Controller number 0.
callback Callback that is called when NTAGAbort processes have finished.
userData Data to pass to the callback function.

Return Values

NTAG_ERR_NONEThe command was issued normally.
NTAG_ERR_NOT_INITThe initialization of the NFC module is not finished.
NTAG_ERR_INVALID_COMMANDInvalid command.

Callback Notification Details

When tags are detected, the following registered callbacks send notifications with the following details.

chanController number.
error_code Error code:
  • NTAG_ERR_NONE : The process finished normally.
  • NTAG_ERR_ABORT : Failed to end the process.
userDataUser data.

Description

Function for ending writing to or reading from tags. You can tell whether the NTAGAbort process has finished by the callback that was set.

NOTE:
When this function succeeds at ending a process, the callback that was registered for the ended function (for example, NTAGRead) is not called.

Do Not Call From

Background Do not call this function from the background.
Multiple threads This function is not thread-safe.
Multiple Cores Do not call this function from more than one Core.

Revision History

2015/02/20 Added NOTE format.
2013/05/08 Automated cleanup pass.
2013/01/31 Added note about callbacks for ended functions.
2012/12/11 Initial version.


CONFIDENTIAL