wut  v1.7.0
Wii U Toolchain
Data Structures | Typedefs | Functions
ntag.h File Reference
#include <wut.h>
#include <nfc/nfc.h>
#include <nn/ffl/miidata.h>
Include dependency graph for ntag.h:

Go to the source code of this file.

Data Structures

struct  NTAGFormatSettings
 
struct  NTAGNoftHeader
 
struct  NTAGInfoHeader
 
struct  NTAGAreaHeader
 
struct  NTAGAreaInfo
 
struct  NTAGData
 
struct  NTAGInfoT2T
 
struct  NTAGApplicationDataT2T
 
struct  NTAGRawDataT2T
 
struct  NTAGRawDataContainerT2T
 
struct  NTAGDataT2T
 
struct  NTAGRawDataT2T.section0
 
struct  NTAGRawDataT2T.section1
 
struct  NTAGRawDataT2T.section2
 

Typedefs

typedef int32_t NTAGError
 
typedef struct NTAGFormatSettings NTAGFormatSettings
 
typedef struct NTAGNoftHeader NTAGNoftHeader
 
typedef struct NTAGInfoHeader NTAGInfoHeader
 
typedef struct NTAGAreaHeader NTAGAreaHeader
 
typedef struct NTAGAreaInfo NTAGAreaInfo
 
typedef struct NTAGData NTAGData
 
typedef struct NTAGInfoT2T NTAGInfoT2T
 
typedef struct NTAGApplicationDataT2T NTAGApplicationDataT2T
 
typedef struct NTAGRawDataT2T NTAGRawDataT2T
 
typedef struct NTAGRawDataContainerT2T NTAGRawDataContainerT2T
 
typedef struct NTAGDataT2T NTAGDataT2T
 
typedef void(* NTAGCallbackFn) (VPADChan chan, NTAGError error, void *userContext)
 Generic callback function. More...
 
typedef void(* NTAGReadCallbackFn) (VPADChan chan, NTAGError error, NTAGData *data, void *userContext)
 Callback function for NTAGRead. More...
 
typedef void(* NTAGReadT2TCallbackFn) (VPADChan chan, NTAGError error, NTAGDataT2T *data, void *userContext)
 Callback function for NTAGReadT2T. More...
 
typedef void(* NTAGReadT2TRawDataCallbackFn) (VPADChan chan, NTAGError error, NFCTagInfo *tagInfo, NTAGRawDataContainerT2T *rawData, void *userContext)
 Callback function for NTAGReadT2TRawData. More...
 

Functions

NTAGError NTAGInit (VPADChan chan)
 Initializes the NTAG library. More...
 
NTAGError NTAGInitEx (VPADChan chan)
 Initializes the NTAG library. More...
 
BOOL NTAGIsInit (VPADChan chan)
 Check if NTAG is initialized. More...
 
void NTAGProc (VPADChan chan)
 Process NTAG. More...
 
NTAGError NTAGShutdown (VPADChan chan)
 Shutdown the NTAG library. More...
 
NTAGError NTAGAbort (VPADChan chan, NTAGCallbackFn callback, void *userContext)
 Abort pending NTAG operations. More...
 
static NFCError NTAGDetect (VPADChan chan, uint32_t timeout, NFCDetectCallbackFn callback, void *userContext)
 Start tag discovery and provide info about the first detected tag. More...
 
NTAGError NTAGFormat (VPADChan chan, uint32_t timeout, NFCUid *uid, uint32_t rwSize, void *rwData, NTAGCallbackFn callback, void *userContext)
 Format a Type 1 Tag. More...
 
NTAGError NTAGSetReadOnly (VPADChan chan, uint32_t timeout, NFCUid *uid, NFCUid *uidMask, BOOL readOnly, NTAGCallbackFn callback, void *userContext)
 Make a Type 1 Tag read only by setting the RWA byte. More...
 
void NTAGSetTagDetectCallback (VPADChan chan, NFCTagDetectCallbackFn callback, void *userContext)
 Set a callback which will be called once a tag is attached / removed. More...
 
void NTAGSetFormatSettings (NTAGFormatSettings *settings)
 Set the format settings which should be checked against while reading from Type 1 tags. More...
 
NTAGError NTAGRead (VPADChan chan, uint32_t timeout, NFCUid *uid, NFCUid *uidMask, NTAGReadCallbackFn callback, void *userContext)
 Read from a Type 1 Tag. More...
 
NTAGError NTAGReadT2T (VPADChan chan, uint32_t timeout, NFCUid *uid, NFCUid *uidMask, NTAGReadT2TCallbackFn callback, void *userContext)
 Read from a Type 2 Tag and decrypt & convert the data. More...
 
NTAGError NTAGReadT2TRawData (VPADChan chan, uint32_t timeout, NFCUid *uid, NFCUid *uidMask, NTAGReadT2TRawDataCallbackFn callback, void *userContext)
 Read raw data from a Type 2 Tag. More...
 
NTAGError NTAGWrite (VPADChan chan, uint32_t timeout, NFCUid *uid, uint32_t rwSize, void *rwData, NTAGCallbackFn callback, void *userContext)
 Write to the RW area of a Type 1 Tag. More...
 
NTAGError NTAGWriteT2T (VPADChan chan, uint32_t timeout, NFCUid *uid, NTAGRawDataContainerT2T *dataContainer, NTAGCallbackFn callback, void *userContext)
 Write to a Type 2 Tag. More...
 
NTAGError NTAGWriteT2TConfigArea (VPADChan chan, uint32_t timeout, NFCUid *uid, uint32_t *cfg0, uint32_t *cfg1, uint32_t *pwd, uint16_t *pack, NTAGCallbackFn callback, void *userContext)
 Write to the configuration fields of a Type 2 Tag. More...
 
NTAGError NTAGWriteT2TLockArea (VPADChan chan, uint32_t timeout, NFCUid *uid, uint32_t *lockBytes, uint32_t *dynamicLock, uint32_t *cc, NTAGCallbackFn callback, void *userContext)
 Write to the lock bytes of a Type 2 Tag. More...
 
NTAGError NTAGWriteT2TRawData (VPADChan chan, uint32_t timeout, NFCUid *uid, NTAGRawDataT2T *data, NTAGCallbackFn callback, void *userContext)
 Write raw data to a Type 2 Tag. More...
 
NTAGError NTAGWriteT2TRawDataEx (VPADChan chan, uint32_t timeout, NFCUid *uid, NTAGRawDataT2T *data, NTAGCallbackFn callback, void *userContext, uint8_t authenticate)
 Write raw data to a Type 2 Tag. More...
 
NTAGError NTAGWriteT2TWithConvert (VPADChan chan, uint32_t timeout, NFCUid *uid, NTAGDataT2T *data, NTAGCallbackFn callback, void *userContext)
 Convert & encrypt data and write it to a Type 2 Tag. More...
 
NTAGError NTAGConvertT2T (NTAGDataT2T *out, NTAGDataT2T *in)
 Convert and encrypt data. More...
 
NTAGError NTAGParseHeader (void *data, NTAGNoftHeader *outNoftHeader, NTAGInfoHeader *outInfoHeader, NTAGAreaHeader *outRwHeader, NTAGAreaHeader *outRoHeader)
 Parse the headers from Type 1 Tag data. More...