NTAGError

Syntax

#include <cafe/ntag.h>

#define NTAG_ERR_BASE       (-1000)
enum {
    NTAG_ERR_NONE = 0,               
    NTAG_ERR_INIT = NTAG_ERR_BASE,   
    NTAG_ERR_NOT_INIT,               
    NTAG_ERR_INVALID_COMMAND,        
    NTAG_ERR_TIMEOUT,                
    NTAG_ERR_INVALID_TAG,            
    NTAG_ERR_INVALID_FORMAT,         
    NTAG_ERR_READ,                   
    NTAG_ERR_WRITE,                  
    NTAG_ERR_FORMAT,                 
    NTAG_ERR_DETECT,                 
    NTAG_ERR_WRITE_READ_ONLY,        
    NTAG_ERR_NEED_FORMAT,            
    NTAG_ERR_SET_READ_ONLY,          
    NTAG_ERR_INVALID_UID,            
    NTAG_ERR_ABORT,                  
    NTAG_ERR_SHUTDOWN,               
    NTAG_ERR_OTHER,                  
};

typedef s32    NTAGError;

Elements

NTAG_ERR_NONE No error.
NTAG_ERR_INIT Error occurred during initialization.
NTAG_ERR_NOT_INIT Error: Commands are called when the NFC module is not initialized.
NTAG_ERR_INVALID_COMMAND Error when invalid commands are issued.
(For example, when functions are called when the GamePad is not connected or when functions are called in an incorrect sequence.)
NTAG_ERR_TIMEOUT Error when the specified timeout has occurred.
NTAG_ERR_INVALID_TAG Error when unsupported tags are detected.
NTAG_ERR_INVALID_FORMAT Error when an invalid format (a tag with a format other than NOFT) is detected.
NTAG_ERR_READ Read error.
NTAG_ERR_WRITE Write error.
NTAG_ERR_FORMAT Formatting error.
NTAG_ERR_INVALID_UID UID mismatch error.
NTAG_ERR_FORMAT Formatting failed error.
NTAG_ERR_DETECT Error during tag detection.
NTAG_ERR_READ_ONLY Error when writing failed because of a read-only flag.
NTAG_ERR_NEED_FORMAT Error when reformatting is necessary.
NTAG_ERR_ABORT Error because of an aborted process.
NTAG_ERR_SHUTDOWN Shutdown failed error.
NTAG_ERR_OTHER Other error.

Description

The error codes returned by each of the NTAG library functions. The table above describes the meaning of each error code.

Revision History

2013/05/08 Automated cleanup pass.
2012/11/15 Initial version.


CONFIDENTIAL