wut  v1.7.0
Wii U Toolchain
Data Structures | Typedefs | Functions
Ntag_ntag

Nintendo? Tag (NTAG). More...

Collaboration diagram for Ntag_ntag:

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...
 

Detailed Description

Nintendo? Tag (NTAG).

NFC library for Amiibo and Pokemon Rumble U. For a high-level Amiibo library see nn::nfp.


Data Structure Documentation

◆ NTAGFormatSettings

struct NTAGFormatSettings

Definition at line 32 of file ntag.h.

Data Fields
uint8_t version
uint32_t makerCode
uint32_t identifyCode

◆ NTAGNoftHeader

struct NTAGNoftHeader

Definition at line 45 of file ntag.h.

Data Fields
uint32_t magic
uint8_t version
uint16_t writeCount
uint8_t unknown

◆ NTAGInfoHeader

struct NTAGInfoHeader

Definition at line 58 of file ntag.h.

Data Fields
uint16_t rwHeaderOffset
uint16_t rwSize
uint16_t roHeaderOffset
uint16_t roSize
NFCUid uid
uint8_t formatVersion

◆ NTAGAreaHeader

struct NTAGAreaHeader

Definition at line 75 of file ntag.h.

Data Fields
uint16_t magic
uint16_t offset
uint16_t size
uint32_t makerCode
uint32_t identifyCode

◆ NTAGAreaInfo

struct NTAGAreaInfo

Definition at line 91 of file ntag.h.

Data Fields
void * data
uint16_t size
uint32_t makerCode
uint32_t identifyCode

◆ NTAGData

struct NTAGData

Definition at line 106 of file ntag.h.

Data Fields
NFCUid uid
uint8_t readOnly
uint8_t formatVersion
NTAGAreaInfo rwInfo
NTAGAreaInfo roInfo

◆ NTAGInfoT2T

struct NTAGInfoT2T

Definition at line 123 of file ntag.h.

Data Fields
uint8_t magic
uint16_t writes
uint8_t figureVersion
uint8_t flags
uint8_t characterID[3]
uint16_t numberingID
uint8_t figureType
uint8_t seriesID
uint32_t unknown
uint16_t applicationAreaWrites
uint16_t crcCounter
uint32_t crc
uint8_t fontRegion
uint16_t name[10]
FFLStoreData mii
uint8_t country
uint16_t setupDate
uint16_t lastWriteDate
uint32_t accessID
uint64_t titleID
uint8_t reserved[0x1FC] First 0x22 bytes contain NX specific extensions.

◆ NTAGApplicationDataT2T

struct NTAGApplicationDataT2T

Definition at line 171 of file ntag.h.

Data Fields
uint16_t size
uint8_t data[0xD8]

◆ NTAGRawDataT2T

struct NTAGRawDataT2T

Definition at line 180 of file ntag.h.

Data Fields
uint8_t uid[9]
uint8_t internal
uint8_t lockBytes[2]
uint8_t capabilityContainer[4]
struct NTAGRawDataT2T section0
struct NTAGRawDataT2T section1
struct NTAGRawDataT2T section2
uint8_t applicationData[0xD8]
uint8_t dynamicLock[3]
uint8_t reserved0
uint8_t cfg0[4]
uint8_t cfg1[4]
uint8_t pwd[4]
uint8_t pack[2]
uint8_t reserved1[2]

◆ NTAGRawDataContainerT2T

struct NTAGRawDataContainerT2T

Definition at line 263 of file ntag.h.

Data Fields
uint16_t size
NTAGRawDataT2T data

◆ NTAGDataT2T

struct NTAGDataT2T

Definition at line 272 of file ntag.h.

Data Fields
NFCTagInfo tagInfo
uint8_t formatVersion
NTAGInfoT2T info
NTAGApplicationDataT2T appData
NTAGRawDataContainerT2T raw

◆ NTAGRawDataT2T.section0

struct NTAGRawDataT2T.section0

Definition at line 186 of file ntag.h.

Data Fields
uint8_t magic
uint16_t writes
uint8_t figureVersion
uint8_t flags
uint8_t country
uint16_t crcCounter
uint16_t setupDate
uint16_t lastWriteDate
uint32_t crc
uint16_t name[10]

◆ NTAGRawDataT2T.section1

struct NTAGRawDataT2T.section1

Definition at line 198 of file ntag.h.

Data Fields
uint8_t tagHmac[0x20]
uint8_t characterID[3]
uint8_t figureType
uint16_t numberingID
uint8_t seriesID
uint8_t formatVersion
uint32_t unknown
uint8_t keygenSalt[0x20]
uint8_t dataHmac[0x20]

◆ NTAGRawDataT2T.section2

struct NTAGRawDataT2T.section2

Definition at line 209 of file ntag.h.

Data Fields
FFLStoreData mii
uint64_t titleID
uint16_t applicationAreaWrites
uint32_t accessID
uint8_t reserved[0x22]

Typedef Documentation

◆ NTAGError

typedef int32_t NTAGError

Definition at line 19 of file ntag.h.

◆ NTAGFormatSettings

Definition at line 19 of file ntag.h.

◆ NTAGNoftHeader

Definition at line 19 of file ntag.h.

◆ NTAGInfoHeader

Definition at line 19 of file ntag.h.

◆ NTAGAreaHeader

Definition at line 19 of file ntag.h.

◆ NTAGAreaInfo

typedef struct NTAGAreaInfo NTAGAreaInfo

Definition at line 19 of file ntag.h.

◆ NTAGData

typedef struct NTAGData NTAGData

Definition at line 19 of file ntag.h.

◆ NTAGInfoT2T

typedef struct NTAGInfoT2T NTAGInfoT2T

Definition at line 19 of file ntag.h.

◆ NTAGApplicationDataT2T

Definition at line 19 of file ntag.h.

◆ NTAGRawDataT2T

Definition at line 19 of file ntag.h.

◆ NTAGRawDataContainerT2T

Definition at line 19 of file ntag.h.

◆ NTAGDataT2T

typedef struct NTAGDataT2T NTAGDataT2T

Definition at line 19 of file ntag.h.

◆ NTAGCallbackFn

typedef void(* NTAGCallbackFn) (VPADChan chan, NTAGError error, void *userContext)

Generic callback function.

Parameters
chanThe channel this callback is coming from.
error0 on success.
userContextUser provided value.

Definition at line 300 of file ntag.h.

◆ NTAGReadCallbackFn

typedef void(* NTAGReadCallbackFn) (VPADChan chan, NTAGError error, NTAGData *data, void *userContext)

Callback function for NTAGRead.

Parameters
chanThe channel this callback is coming from.
error0 on success.
dataThe result of the data read.
userContextUser provided value.

Definition at line 320 of file ntag.h.

◆ NTAGReadT2TCallbackFn

typedef void(* NTAGReadT2TCallbackFn) (VPADChan chan, NTAGError error, NTAGDataT2T *data, void *userContext)

Callback function for NTAGReadT2T.

Parameters
chanThe channel this callback is coming from.
error0 on success.
dataThe result of the data read.
userContextUser provided value.

Definition at line 341 of file ntag.h.

◆ NTAGReadT2TRawDataCallbackFn

typedef void(* NTAGReadT2TRawDataCallbackFn) (VPADChan chan, NTAGError error, NFCTagInfo *tagInfo, NTAGRawDataContainerT2T *rawData, void *userContext)

Callback function for NTAGReadT2TRawData.

Parameters
chanThe channel this callback is coming from.
error0 on success.
tagInfoThe tag info of the read tag.
dataThe result of the data read.
userContextUser provided value.

Definition at line 365 of file ntag.h.

Function Documentation

◆ NTAGInit()

NTAGError NTAGInit ( VPADChan  chan)

Initializes the NTAG library.

Parameters
chanThe DRC channel to use.
Returns
0 on success.

◆ NTAGInitEx()

NTAGError NTAGInitEx ( VPADChan  chan)

Initializes the NTAG library.

Parameters
chanThe DRC channel to use.
Returns
0 on success.

◆ NTAGIsInit()

BOOL NTAGIsInit ( VPADChan  chan)

Check if NTAG is initialized.

Parameters
chanThe DRC channel to use.
Returns
TRUE if initialized, FALSE otherwise.

◆ NTAGProc()

void NTAGProc ( VPADChan  chan)

Process NTAG.

This needs to be called periodically and will call pending callbacks.

Parameters
chanThe DRC channel to use.

◆ NTAGShutdown()

NTAGError NTAGShutdown ( VPADChan  chan)

Shutdown the NTAG library.

Parameters
chanThe DRC channel to use.
Returns
0 on success.

◆ NTAGAbort()

NTAGError NTAGAbort ( VPADChan  chan,
NTAGCallbackFn  callback,
void *  userContext 
)

Abort pending NTAG operations.

Parameters
chanThe DRC channel to use.
callbackA pointer to the callback function.
userContextUser provided value which will be passed to the callback.
Returns
0 on success.

◆ NTAGDetect()

static NFCError NTAGDetect ( VPADChan  chan,
uint32_t  timeout,
NFCDetectCallbackFn  callback,
void *  userContext 
)
inlinestatic

Start tag discovery and provide info about the first detected tag.

Note
The original function contains an error and calls itself recursively. This inline version uses NFCDetect instead.
Parameters
chanThe DRC channel to use.
timeoutTimeout in ms until tag discovery is cancelled.
callbackA pointer to the callback function.
userContextUser provided value which will be passed to the callback.
Returns
0 on success.

Definition at line 473 of file ntag.h.

◆ NTAGFormat()

NTAGError NTAGFormat ( VPADChan  chan,
uint32_t  timeout,
NFCUid uid,
uint32_t  rwSize,
void *  rwData,
NTAGCallbackFn  callback,
void *  userContext 
)

Format a Type 1 Tag.

Parameters
chanThe DRC channel to use.
timeoutTimeout in ms until tag discovery is cancelled.
uidThe UID of the expected tag.
rwSizeThe size of the data which should be written to initialize the RW area.
rwDataA pointer to the data which should be written to initialize the RW area.
callbackA pointer to the callback function.
userContextUser provided value which will be passed to the callback.
Returns
0 on success.

◆ NTAGSetReadOnly()

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.

Parameters
chanThe DRC channel to use.
timeoutTimeout in ms until tag discovery is cancelled.
uidThe UID of the expected tag (can be NULL).
uidMaskThe UID of the tag will be masked with this mask before compared to the expected UID (can be NULL).
readOnlyTRUE if read only, FALSE otherwise.
callbackA pointer to the callback function.
userContextUser provided value which will be passed to the callback.
Returns
0 on success.

◆ NTAGSetTagDetectCallback()

void NTAGSetTagDetectCallback ( VPADChan  chan,
NFCTagDetectCallbackFn  callback,
void *  userContext 
)

Set a callback which will be called once a tag is attached / removed.

Parameters
chanThe DRC channel to use.
callbackA pointer to the callback function.
userContextUser provided value which will be passed to the callback.

◆ NTAGSetFormatSettings()

void NTAGSetFormatSettings ( NTAGFormatSettings settings)

Set the format settings which should be checked against while reading from Type 1 tags.

Parameters
settingsA pointer from which the settings should be copied from.

◆ NTAGRead()

NTAGError NTAGRead ( VPADChan  chan,
uint32_t  timeout,
NFCUid uid,
NFCUid uidMask,
NTAGReadCallbackFn  callback,
void *  userContext 
)

Read from a Type 1 Tag.

Parameters
chanThe DRC channel to use.
timeoutTimeout in ms until tag discovery is cancelled.
uidThe UID of the expected tag (can be NULL).
uidMaskThe UID of the tag will be masked with this mask before compared to the expected UID (can be NULL).
callbackA pointer to the callback function.
userContextUser provided value which will be passed to the callback.
Returns
0 on success.

◆ NTAGReadT2T()

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.

Parameters
chanThe DRC channel to use.
timeoutTimeout in ms until tag discovery is cancelled.
uidThe UID of the expected tag (can be NULL).
uidMaskThe UID of the tag will be masked with this mask before compared to the expected UID (can be NULL).
callbackA pointer to the callback function.
userContextUser provided value which will be passed to the callback.
Returns
0 on success.

◆ NTAGReadT2TRawData()

NTAGError NTAGReadT2TRawData ( VPADChan  chan,
uint32_t  timeout,
NFCUid uid,
NFCUid uidMask,
NTAGReadT2TRawDataCallbackFn  callback,
void *  userContext 
)

Read raw data from a Type 2 Tag.

Parameters
chanThe DRC channel to use.
timeoutTimeout in ms until tag discovery is cancelled.
uidThe UID of the expected tag (can be NULL).
uidMaskThe UID of the tag will be masked with this mask before compared to the expected UID (can be NULL).
callbackA pointer to the callback function.
userContextUser provided value which will be passed to the callback.
Returns
0 on success.

◆ NTAGWrite()

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.

Parameters
chanThe DRC channel to use.
timeoutTimeout in ms until tag discovery is cancelled.
uidThe UID of the expected tag.
rwSizeThe size of the data which should be written to the RW area.
rwDataA pointer to the data which should be written to the RW area.
callbackA pointer to the callback function.
userContextUser provided value which will be passed to the callback.
Returns
0 on success.

◆ NTAGWriteT2T()

NTAGError NTAGWriteT2T ( VPADChan  chan,
uint32_t  timeout,
NFCUid uid,
NTAGRawDataContainerT2T dataContainer,
NTAGCallbackFn  callback,
void *  userContext 
)

Write to a Type 2 Tag.

Parameters
chanThe DRC channel to use.
timeoutTimeout in ms until tag discovery is cancelled.
uidThe UID of the expected tag.
dataContainerA pointer to the container which contains the data which should be written to the tag.
callbackA pointer to the callback function.
userContextUser provided value which will be passed to the callback.
Returns
0 on success.

◆ NTAGWriteT2TConfigArea()

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.

Parameters
chanThe DRC channel to use.
timeoutTimeout in ms until tag discovery is cancelled.
uidThe UID of the expected tag.
cfg0A pointer to the data which should be written to the CFG0 field.
cfg1A pointer to the data which should be written to the CFG1 field.
pwdA pointer to the data which should be written to the PWD field.
packA pointer to the data which should be written to the PACK field.
callbackA pointer to the callback function.
userContextUser provided value which will be passed to the callback.
Returns
0 on success.

◆ NTAGWriteT2TLockArea()

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.

Parameters
chanThe DRC channel to use.
timeoutTimeout in ms until tag discovery is cancelled.
uidThe UID of the expected tag.
lockBytesA pointer to the data which should be written to the lock bytes.
dynamicLockA pointer to the data which should be written to the dynamic lock bytes.
ccA pointer to the data which should be written to the capability container.
callbackA pointer to the callback function.
userContextUser provided value which will be passed to the callback.
Returns
0 on success.

◆ NTAGWriteT2TRawData()

NTAGError NTAGWriteT2TRawData ( VPADChan  chan,
uint32_t  timeout,
NFCUid uid,
NTAGRawDataT2T data,
NTAGCallbackFn  callback,
void *  userContext 
)

Write raw data to a Type 2 Tag.

Parameters
chanThe DRC channel to use.
timeoutTimeout in ms until tag discovery is cancelled.
uidThe UID of the expected tag.
dataA pointer to the data which should be written to the tag.
callbackA pointer to the callback function.
userContextUser provided value which will be passed to the callback.
Returns
0 on success.

◆ NTAGWriteT2TRawDataEx()

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.

Parameters
chanThe DRC channel to use.
timeoutTimeout in ms until tag discovery is cancelled.
uidThe UID of the expected tag.
dataA pointer to the data which should be written to the tag.
callbackA pointer to the callback function.
userContextUser provided value which will be passed to the callback.
authenticateTRUE if authentification using PWD_AUTH should be done.
Returns
0 on success.

◆ NTAGWriteT2TWithConvert()

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.

Parameters
chanThe DRC channel to use.
timeoutTimeout in ms until tag discovery is cancelled.
uidThe UID of the expected tag.
dataA pointer to the data which should be written to the tag.
callbackA pointer to the callback function.
userContextUser provided value which will be passed to the callback.
Returns
0 on success.

◆ NTAGConvertT2T()

NTAGError NTAGConvertT2T ( NTAGDataT2T out,
NTAGDataT2T in 
)

Convert and encrypt data.

Parameters
outA pointer to write the encrypted data to the raw field. This can be the same as
in.
inA pointer to read the data from. This can be the same as
out.
Returns
0 on success.

◆ NTAGParseHeader()

NTAGError NTAGParseHeader ( void *  data,
NTAGNoftHeader outNoftHeader,
NTAGInfoHeader outInfoHeader,
NTAGAreaHeader outRwHeader,
NTAGAreaHeader outRoHeader 
)

Parse the headers from Type 1 Tag data.

Parameters
dataThe data from which the headers should be parsed from.
outNoftHeaderA pointer to which the NOFT header should be copied to.
outInfoHeaderA pointer to which the info header should be copied to.
outRwHeaderA pointer to which the RW header should be copied to.
outRoHeaderA pointer to which the RO header should be copied to.
Returns
0 on success.