NFCError

Syntax

#include <cafe/nfc.h>

#define NFC_ERR_BASE       (-5000)
enum {
    NFC_ERR_NONE = 0,               
    NFC_ERR_INIT = NFC_ERR_BASE,    
    NFC_ERR_NOT_INIT,               
    NFC_ERR_TIMEOUT,                
    NFC_ERR_INVALID_COMMAND,        
    NFC_ERR_INVALID_TAG,            
    NFC_ERR_GET_TAG_INFO,           
    NFC_ERR_ABORT       ,           
    NFC_ERR_OTHER,                  
};

typedef s32    NFCError;

Elements

NFC_ERR_NONE No error.
NFC_ERR_NOT_INIT Error: Commands are called when the NFC module is not initialized.
NFC_ERR_INVALID_COMMAND Error when invalid commands are issued.
(For example, when functions are called when the Wii U GamePad is not connected or when functions are called in an incorrect sequence.)
NFC_ERR_TIMEOUT Error when the specified timeout has occurred.
NFC_ERR_INVALID_TAG Error when unsupported tags are detected.
NFC_ERR_GET_TAG_INFO NFCGetTagInfo error.
NFC_ERR_ABORT Error because of an aborted process.
NFC_ERR_OTHER Other error.

Description

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

Revision History

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


CONFIDENTIAL