NTAGInit

Syntax

#include <cafe/ntag.h>

NTAGError NTAGInit( s32 chan );

Parameters

chan Controller number 0.

Return Values

NTAG_ERR_NONEThe command was issued normally.
NTAG_ERR_INITThe initialization command failed.

Description

Initializes the NTAG feature. When using NTAG features, make sure that you first confirm that this function has been called and the initialization has finalized. Initialization takes approximately one second. To check whether initialization has finalized, use the NTAGIsInit function.

During initialization or after initialization has been finalized, an error (NTAG_ERR_INIT) occurs. In general, do not call this function when the NTAGIsInit return value is TRUE, or immediately after this function has been called once.

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.

See Also

NTAGIsInit
NTAGShutdown

Revision History

2013/05/08 Automated cleanup pass.
2013/01/31 Added error conditions.
2013/01/24 Corrected a mistake in the error codes.
2012/11/15 Initial version.


CONFIDENTIAL