wut  v1.7.0
Wii U Toolchain
Data Structures | Typedefs | Enumerations | Functions
nn::nfp Namespace Reference

Data Structures

struct  AmiiboSettingsArgsIn
 
struct  AmiiboSettingsArgs
 
struct  AmiiboSettingsResult
 
struct  Date
 
struct  ApplicationAreaCreateInfo
 
struct  TagId
 
struct  TagInfo
 
struct  CommonInfo
 
struct  RegisterInfo
 
struct  ReadOnlyInfo
 
struct  RegisterInfoSet
 
struct  AdminInfo
 

Typedefs

using RomInfo = ReadOnlyInfo
 

Enumerations

enum class  AmiiboSettingsMode : uint32_t {
  Register = 0 ,
  DeleteGameData = 1 ,
  Restore = 2
}
 
enum  ResultDescription {
  RESULT_OUT_OF_RANGE = 0x03700 ,
  RESULT_INVALID_PARAM = 0x03780 ,
  RESULT_INVALID_ALIGNMENT = 0x03800 ,
  RESULT_INVALID_STATE = 0x06400 ,
  RESULT_INVALID_TAG = 0x0c800 ,
  RESULT_INVALID_TAG_INFO = 0x0ca80 ,
  RESULT_NO_BACKUPENTRY = 0x0e580 ,
  RESULT_NO_REGISTER_INFO = 0x10900 ,
  RESULT_APP_AREA_MISSING = 0x10400 ,
  RESULT_APP_AREA_TAGID_MISMATCH = 0x11d00 ,
  RESULT_APP_AREA_ALREADY_EXISTS = 0x10e00 ,
  RESULT_APP_AREA_ACCESS_ID_MISMATCH = 0x11300 ,
  RESULT_NO_BACKUP_SAVEDATA = 0x38880 ,
  RESULT_SYSTEM_ERROR = 0x3e880 ,
  RESULT_FATAL = 0x5db00
}
 NN_NFP result descriptions for nn::Result::GetDescription. More...
 
enum class  NfpState : uint32_t {
  Uninitialized = 0 ,
  Initialized = 1 ,
  Searching = 2 ,
  Found = 3 ,
  Removed = 4 ,
  Mounted = 5 ,
  Unknown6 = 6 ,
  MountedROM = 7
}
 
enum class  AdminFlags : uint8_t {
  IsRegistered = 1 << 0 ,
  HasApplicationData = 1 << 1
}
 
enum class  TagType : uint8_t {
  Unknown = 0 ,
  Type1Tag = 1 << 0 ,
  Type2Tag = 1 << 1 ,
  Type3Tag = 1 << 2 ,
  Iso15693 = 1 << 5
}
 

Functions

nn::Result InitializeAmiiboSettingsArgsIn (AmiiboSettingsArgsIn *args) asm("InitializeAmiiboSettingsArgsIn__Q2_2nn3nfpFPQ3_2nn3nfp20AmiiboSettingsArgsIn")
 Initializes a AmiiboSettingsArgsIn struct. More...
 
nn::Result SwitchToAmiiboSettings (const AmiiboSettingsArgsIn &args, const char *standardArg, uint32_t standardArgSize) asm("SwitchToAmiiboSettings__Q2_2nn3nfpFRCQ3_2nn3nfp20AmiiboSettingsArgsInPCcUi")
 Switches to the amiibo settings applet. More...
 
nn::Result SwitchToAmiiboSettings (const AmiiboSettingsArgsIn &args) asm("SwitchToAmiiboSettings__Q2_2nn3nfpFRCQ3_2nn3nfp20AmiiboSettingsArgsIn")
 Switches to the amiibo settings applet. More...
 
nn::Result GetAmiiboSettingsResult (AmiiboSettingsResult *outResult, const SYSArgDataBlock &block) asm("GetAmiiboSettingsResult__Q2_2nn3nfpFPQ3_2nn3nfp20AmiiboSettingsResultRC15SysArgDataBlock")
 Gets the amiibo settings result from a SYSArgs data block. More...
 
nn::Result ReturnToCallerWithAmiiboSettingsResult (const AmiiboSettingsResult &result) asm("ReturnToCallerWithAmiiboSettingsResult__Q2_2nn3nfpFRCQ3_2nn3nfp20AmiiboSettingsResult")
 Used by Amiibo Settings internally to return to the caller. More...
 
nn::Result GetAmiiboSettingsArgs (AmiiboSettingsArgs *outArgs) asm("GetAmiiboSettingsArgs__Q2_2nn3nfpFPQ3_2nn3nfp18AmiiboSettingsArgs")
 Used by Amiibo Settings internally to get the arguments of the caller. More...
 
NfpState GetNfpState () asm("GetNfpState__Q2_2nn3nfpFv")
 Gets the state nfp is currently in. More...
 
nn::Result Initialize () asm("Initialize__Q2_2nn3nfpFv")
 Initializes NFP. More...
 
nn::Result Finalize () asm("Finalize__Q2_2nn3nfpFv")
 Finalizes NFP. More...
 
nn::Result AntennaCheck () asm("AntennaCheck__Q2_2nn3nfpFv")
 Checks if the NFC Antenna can be used. More...
 
nn::Result SetActivateEvent (OSEvent *event) asm("SetActivateEvent__Q2_2nn3nfpFP7OSEvent")
 Sets an event which will be signalled once a tag has been found. More...
 
nn::Result SetDeactivateEvent (OSEvent *event) asm("SetDeactivateEvent__Q2_2nn3nfpFP7OSEvent")
 Sets an event which will be signalled once a tag has been lost. More...
 
nn::Result StartDetection () asm("StartDetection__Q2_2nn3nfpFv")
 Starts searching for tags. More...
 
nn::Result StopDetection () asm("StopDetection__Q2_2nn3nfpFv")
 Stops searching for tags. More...
 
nn::Result Mount () asm("Mount__Q2_2nn3nfpFv")
 Mounts a found tag. More...
 
nn::Result MountReadOnly () asm("MountReadOnly__Q2_2nn3nfpFv")
 Mounts a found tag as read-only. More...
 
nn::Result MountRom () asm("MountRom__Q2_2nn3nfpFv")
 Mounts a found tag in ROM mode. More...
 
nn::Result Flush () asm("Flush__Q2_2nn3nfpFv")
 Writes any changes done while mounted to the tag. More...
 
nn::Result Unmount () asm("Unmount__Q2_2nn3nfpFv")
 Unmounts a currently mounted tag. More...
 
bool IsExistApplicationArea () asm("IsExistApplicationArea__Q2_2nn3nfpFv")
 Checks if the tag contains application data. More...
 
nn::Result InitializeCreateInfo (ApplicationAreaCreateInfo *info) asm("InitializeCreateInfo__Q2_2nn3nfpFPQ3_2nn3nfp25ApplicationAreaCreateInfo")
 Initializes a ApplicationAreaCreateInfo struct. More...
 
nn::Result CreateApplicationArea (const ApplicationAreaCreateInfo &createInfo) asm("CreateApplicationArea__Q2_2nn3nfpFRCQ3_2nn3nfp25ApplicationAreaCreateInfo")
 Initializes the application area of the tag. More...
 
nn::Result OpenApplicationArea (uint32_t accessID) asm("OpenApplicationArea__Q2_2nn3nfpFUi")
 Opens the application area for reading and writing. More...
 
nn::Result DeleteApplicationArea () asm("DeleteApplicationArea__Q2_2nn3nfpFv")
 Deletes the application area. More...
 
nn::Result WriteApplicationArea (const void *data, uint32_t size, const TagId &id) asm("WriteApplicationArea__Q2_2nn3nfpFPCvUiRCQ3_2nn3nfp5TagId")
 Writes data to the opened application area. More...
 
nn::Result ReadApplicationArea (void *outData, uint32_t size) asm("ReadApplicationArea__Q2_2nn3nfpFPvUi")
 Reads data from the opened application area. More...
 
nn::Result InitializeRegisterInfoSet (RegisterInfoSet *infoSet) asm("InitializeRegisterInfoSet__Q2_2nn3nfpFPQ3_2nn3nfp15RegisterInfoSet")
 Initializes a RegisterInfoSet struct. More...
 
nn::Result SetNfpRegisterInfo (const RegisterInfoSet &info) asm("SetNfpRegisterInfo__Q2_2nn3nfpFRCQ3_2nn3nfp15RegisterInfoSet")
 Sets the register info of the mounted tag. More...
 
nn::Result GetNfpRegisterInfo (RegisterInfo *outInfo) asm("GetNfpRegisterInfo__Q2_2nn3nfpFPQ3_2nn3nfp12RegisterInfo")
 Gets the register info of the mounted tag. More...
 
nn::Result DeleteNfpRegisterInfo () asm("DeleteNfpRegisterInfo__Q2_2nn3nfpFv")
 Deletes the register info of the mounted tag. More...
 
nn::Result GetNfpCommonInfo (CommonInfo *outInfo) asm("GetNfpCommonInfo__Q2_2nn3nfpFPQ3_2nn3nfp10CommonInfo")
 Gets the common info of the mounted tag. More...
 
nn::Result GetNfpReadOnlyInfo (ReadOnlyInfo *outInfo) asm("GetNfpReadOnlyInfo__Q2_2nn3nfpFPQ3_2nn3nfp12ReadOnlyInfo")
 Gets the read only info of the mounted tag. More...
 
nn::Result GetNfpAdminInfo (AdminInfo *outInfo) asm("GetNfpAdminInfo__Q2_2nn3nfpFPQ3_2nn3nfp9AdminInfo")
 Gets the admin info of the mounted tag. More...
 
nn::Result GetNfpRomInfo (RomInfo *outInfo) asm("GetNfpRomInfo__Q2_2nn3nfpFPQ3_2nn3nfp7RomInfo")
 Gets the rom info of the mounted tag. More...
 
nn::Result GetTagInfo (TagInfo *outInfo) asm("GetTagInfo__Q2_2nn3nfpFPQ3_2nn3nfp7TagInfo")
 Gets the tag info. More...
 
nn::Result Format (const uint8_t *data, int32_t size) asm("Format__Q2_2nn3nfpFPCUci")
 Formats a found tag. More...
 
nn::Result Restore () asm("Restore__Q2_2nn3nfpFv")
 
uint32_t GetErrorCode (const nn::Result &res) asm("GetErrorCode__Q2_2nn3nfpFRCQ2_2nn6Result")
 Converts a nn::Result to an error code. More...
 

Data Structure Documentation

◆ nn::nfp::AmiiboSettingsArgsIn

struct nn::nfp::AmiiboSettingsArgsIn

Definition at line 30 of file amiibo_settings_cpp.h.

Data Fields
AmiiboSettingsMode mode The mode in which the amiibo settings should be opened.
TagInfo tag_info
bool is_registered Set to true if the tag is already registered.
uint8_t padding[3] padding bytes, must be set to 0
RegisterInfo register_info
CommonInfo common_info
uint8_t reserved[0x20] reserved bytes, must be set to 0

◆ nn::nfp::AmiiboSettingsArgs

struct nn::nfp::AmiiboSettingsArgs

Definition at line 53 of file amiibo_settings_cpp.h.

Data Fields
SYSStandardArgs standardArgs
AmiiboSettingsArgsIn argsIn

◆ nn::nfp::AmiiboSettingsResult

struct nn::nfp::AmiiboSettingsResult

Definition at line 62 of file amiibo_settings_cpp.h.

Data Fields
int32_t result Result (0 on success)
TagInfo tag_info
RegisterInfo register_info
CommonInfo common_info
uint8_t reserved[0x20] reserved bytes

◆ nn::nfp::Date

struct nn::nfp::Date

Definition at line 85 of file nfp_cpp.h.

Data Fields
uint16_t year Year (Starting at 0)
uint8_t month Month (0 - 11)
uint8_t day Day (0 - 30)

◆ nn::nfp::ApplicationAreaCreateInfo

struct nn::nfp::ApplicationAreaCreateInfo

Definition at line 99 of file nfp_cpp.h.

Data Fields
uint32_t accessID The access ID with which the area should be created.
void * data The initial data to write to the area.
uint32_t size The size of the data.
uint8_t reserved[0x30] reserved bytes, must be set to 0

◆ nn::nfp::TagId

struct nn::nfp::TagId

Definition at line 116 of file nfp_cpp.h.

Data Fields
uint8_t size The size of the id.
uint8_t uid[10] The uid of the tag.

◆ nn::nfp::TagInfo

struct nn::nfp::TagInfo

Definition at line 127 of file nfp_cpp.h.

Data Fields
TagId id The id of the tag.
uint8_t reserved0[0x15] reserved bytes
NFCTechnology technology Technology (always NFC_TECHNOLOGY_A)
TagType tag_type Tag type (always TagType::Type2Tag)
uint8_t reserved1[0x32] reserved bytes

◆ nn::nfp::CommonInfo

struct nn::nfp::CommonInfo

Definition at line 147 of file nfp_cpp.h.

Data Fields
Date lastWriteDate The date when the tag was last written to.
uint16_t writes The amount of times this tag was written to.
uint8_t characterID[3] The character id of the amiibo.
uint8_t seriesID The series this amiibo is from.
uint16_t numberingID Numbering ID of the amiibo.
uint8_t figureType The type of this figure.
uint8_t figureVersion The version of this figure (always 0x00)
uint16_t applicationAreaSize The size of the application area.
uint8_t reserved[0x30] reserved bytes

◆ nn::nfp::RegisterInfo

struct nn::nfp::RegisterInfo

Definition at line 179 of file nfp_cpp.h.

Data Fields
FFLStoreData mii The mii this figure was registered with.
uint16_t name[11] The name of this amiibo.
uint8_t fontRegion Font region.
uint8_t country Country code.
Date registerDate The date when the amiibo was registered.
uint8_t reserved[0x2c] reserved bytes

◆ nn::nfp::ReadOnlyInfo

struct nn::nfp::ReadOnlyInfo

Definition at line 202 of file nfp_cpp.h.

Data Fields
uint8_t characterID[3] The character id of the amiibo.
uint8_t seriesID The series this amiibo is from.
uint16_t numberingID Numbering ID of the amiibo.
uint8_t figureType The type of this figure.
uint8_t reserved[0x2f] reserved bytes

◆ nn::nfp::RegisterInfoSet

struct nn::nfp::RegisterInfoSet

Definition at line 227 of file nfp_cpp.h.

Data Fields
FFLStoreData mii The mii this figure will be registered to.
uint16_t name[11] The name of this amiibo.
uint8_t fontRegion Font region.
uint8_t reserved[0x2d] reserved bytes, must be 0

◆ nn::nfp::AdminInfo

struct nn::nfp::AdminInfo

Definition at line 244 of file nfp_cpp.h.

Data Fields
uint64_t titleID The titleID of the application which wrote to the application data.
uint32_t accessID The accessID of the current application area.
uint16_t applicationAreaWrites The amount of times the application area was written to.
AdminFlags flags Flags.
uint8_t formatVersion The version of the amiibo format (always 0x02)
uint8_t platform The platform which wrote to the amiibo (0x01 if Wii U)
uint8_t reserved[0x2f] reserved bytes

Typedef Documentation

◆ RomInfo

Definition at line 224 of file nfp_cpp.h.

Enumeration Type Documentation

◆ AmiiboSettingsMode

enum AmiiboSettingsMode : uint32_t
strong
Enumerator
Register 

Open the Mii and Name register menu.

DeleteGameData 

Open the "Delete Game Data" menu.

Restore 

Open the "Restore" menu.

Definition at line 19 of file amiibo_settings_cpp.h.

◆ ResultDescription

NN_NFP result descriptions for nn::Result::GetDescription.

Enumerator
RESULT_OUT_OF_RANGE 
RESULT_INVALID_PARAM 
RESULT_INVALID_ALIGNMENT 
RESULT_INVALID_STATE 
RESULT_INVALID_TAG 
RESULT_INVALID_TAG_INFO 
RESULT_NO_BACKUPENTRY 
RESULT_NO_REGISTER_INFO 
RESULT_APP_AREA_MISSING 
RESULT_APP_AREA_TAGID_MISMATCH 
RESULT_APP_AREA_ALREADY_EXISTS 
RESULT_APP_AREA_ACCESS_ID_MISMATCH 
RESULT_NO_BACKUP_SAVEDATA 
RESULT_SYSTEM_ERROR 
RESULT_FATAL 

Definition at line 22 of file nfp_cpp.h.

◆ NfpState

enum NfpState : uint32_t
strong
Enumerator
Uninitialized 

nn_nfp is uninitialized

Initialized 

nn_nfp has been initialized

Searching 

Searching for a tag.

Found 

A tag has been found.

Removed 

Tag was removed.

Mounted 

The tag is mounted.

Unknown6 
MountedROM 

The tag was mounted in ROM mode.

Definition at line 46 of file nfp_cpp.h.

◆ AdminFlags

enum AdminFlags : uint8_t
strong
Enumerator
IsRegistered 

The tag was registered and contains register info.

HasApplicationData 

The tag contains an application area.

Definition at line 66 of file nfp_cpp.h.

◆ TagType

enum TagType : uint8_t
strong
Enumerator
Unknown 
Type1Tag 
Type2Tag 
Type3Tag 
Iso15693 

Definition at line 75 of file nfp_cpp.h.

Function Documentation

◆ InitializeAmiiboSettingsArgsIn()

nn::Result nn::nfp::InitializeAmiiboSettingsArgsIn ( AmiiboSettingsArgsIn args)

Initializes a AmiiboSettingsArgsIn struct.

Parameters
argsThe args which should be initialized.

◆ SwitchToAmiiboSettings() [1/2]

nn::Result nn::nfp::SwitchToAmiiboSettings ( const AmiiboSettingsArgsIn args,
const char *  standardArg,
uint32_t  standardArgSize 
)

Switches to the amiibo settings applet.

Parameters
argsThe args passed to the amiibo settings.
standardArgOptional standard args which will be serialized.
standardArgSizeThe size of the standard args.

◆ SwitchToAmiiboSettings() [2/2]

nn::Result nn::nfp::SwitchToAmiiboSettings ( const AmiiboSettingsArgsIn args)

Switches to the amiibo settings applet.

Parameters
argsThe args passed to the amiibo settings.

◆ GetAmiiboSettingsResult()

nn::Result nn::nfp::GetAmiiboSettingsResult ( AmiiboSettingsResult outResult,
const SYSArgDataBlock block 
)

Gets the amiibo settings result from a SYSArgs data block.

Parameters
outResultA pointer to which the result should be written to.
blockAn argument data block read from SYSGetArguments with SYS_ARG_ID_RESULT.

◆ ReturnToCallerWithAmiiboSettingsResult()

nn::Result nn::nfp::ReturnToCallerWithAmiiboSettingsResult ( const AmiiboSettingsResult result)

Used by Amiibo Settings internally to return to the caller.

Parameters
resultThe result which will be passed to the arguments.

◆ GetAmiiboSettingsArgs()

nn::Result nn::nfp::GetAmiiboSettingsArgs ( AmiiboSettingsArgs outArgs)

Used by Amiibo Settings internally to get the arguments of the caller.

Parameters
outArgsA pointer to which the arguments will be written to.

◆ GetNfpState()

NfpState nn::nfp::GetNfpState ( )

Gets the state nfp is currently in.

Returns
The current NfpState.

◆ Initialize()

nn::Result nn::nfp::Initialize ( )

Initializes NFP.

◆ Finalize()

nn::Result nn::nfp::Finalize ( )

Finalizes NFP.

◆ AntennaCheck()

nn::Result nn::nfp::AntennaCheck ( )

Checks if the NFC Antenna can be used.

Note: This will re-initialize the library.

Returns
Successful result if available.

◆ SetActivateEvent()

nn::Result nn::nfp::SetActivateEvent ( OSEvent event)

Sets an event which will be signalled once a tag has been found.

Setting an event is not necessary and polling the NfpState can be done instead.

Parameters
eventA pointer to an event which will be initialized by the library.

◆ SetDeactivateEvent()

nn::Result nn::nfp::SetDeactivateEvent ( OSEvent event)

Sets an event which will be signalled once a tag has been lost.

Setting an event is not necessary and polling the NfpState can be done instead.

Parameters
eventA pointer to an event which will be initialized by the library.

◆ StartDetection()

nn::Result nn::nfp::StartDetection ( )

Starts searching for tags.

Once a tag has been found the ActivateEvent will be signalled and the NfpState changes to Found .

◆ StopDetection()

nn::Result nn::nfp::StopDetection ( )

Stops searching for tags.

Any currently mounted tag will be unmounted and the DeactivateEvent will be signaled.

◆ Mount()

nn::Result nn::nfp::Mount ( )

Mounts a found tag.

The current NfpState must be Found before calling this function.

◆ MountReadOnly()

nn::Result nn::nfp::MountReadOnly ( )

Mounts a found tag as read-only.

The current NfpState must be Found before calling this function.

◆ MountRom()

nn::Result nn::nfp::MountRom ( )

Mounts a found tag in ROM mode.

The current NfpState must be Found before calling this function.

◆ Flush()

nn::Result nn::nfp::Flush ( )

Writes any changes done while mounted to the tag.

The current state must be Mounted and not read-only.

◆ Unmount()

nn::Result nn::nfp::Unmount ( )

Unmounts a currently mounted tag.

The current state must be Mounted or MountedROM . If the tag was not removed the state changes to Found .

Note: This does not write any changes to the tag, call Flush before unmounting to write changes.

◆ IsExistApplicationArea()

bool nn::nfp::IsExistApplicationArea ( )

Checks if the tag contains application data.

The current state must be Mounted.

Returns
true if the tag contains an application area.

◆ InitializeCreateInfo()

nn::Result nn::nfp::InitializeCreateInfo ( ApplicationAreaCreateInfo info)

Initializes a ApplicationAreaCreateInfo struct.

Parameters
infoThe struct which should be initialized.

◆ CreateApplicationArea()

nn::Result nn::nfp::CreateApplicationArea ( const ApplicationAreaCreateInfo createInfo)

Initializes the application area of the tag.

The tag can not be read-only and the application area can not already exist. The current state must be Mounted.

Parameters
createInfoThe info with which the application area will be created.

◆ OpenApplicationArea()

nn::Result nn::nfp::OpenApplicationArea ( uint32_t  accessID)

Opens the application area for reading and writing.

The application area must exist. The current state must be Mounted.

Parameters
accessIDThe accessID with which the application area was created.

◆ DeleteApplicationArea()

nn::Result nn::nfp::DeleteApplicationArea ( )

Deletes the application area.

The application area must exist and the tag must not be read-only. The current state must be Mounted.

◆ WriteApplicationArea()

nn::Result nn::nfp::WriteApplicationArea ( const void *  data,
uint32_t  size,
const TagId id 
)

Writes data to the opened application area.

The application area must be opened and the tag must not be read-only. The current state must be Mounted.

Parameters
dataA pointer to the data which will be written to the application area.
sizeThe size of the data which should be written
idThe tag id of the tag which the data should be written to.

◆ ReadApplicationArea()

nn::Result nn::nfp::ReadApplicationArea ( void *  outData,
uint32_t  size 
)

Reads data from the opened application area.

The application area must be opened. The current state must be Mounted.

Parameters
dataA pointer to store the read data.
sizeThe size of the data which should be read.

◆ InitializeRegisterInfoSet()

nn::Result nn::nfp::InitializeRegisterInfoSet ( RegisterInfoSet infoSet)

Initializes a RegisterInfoSet struct.

Parameters
infoSetThe set which should be initialized.

◆ SetNfpRegisterInfo()

nn::Result nn::nfp::SetNfpRegisterInfo ( const RegisterInfoSet info)

Sets the register info of the mounted tag.

The current state must be Mounted and not read-only.

Parameters
infoThe register info which should be set.

◆ GetNfpRegisterInfo()

nn::Result nn::nfp::GetNfpRegisterInfo ( RegisterInfo outInfo)

Gets the register info of the mounted tag.

The current state must be Mounted.

Parameters
outInfoA pointer to write the info to.

◆ DeleteNfpRegisterInfo()

nn::Result nn::nfp::DeleteNfpRegisterInfo ( )

Deletes the register info of the mounted tag.

The current state must be Mounted and not read-only.

◆ GetNfpCommonInfo()

nn::Result nn::nfp::GetNfpCommonInfo ( CommonInfo outInfo)

Gets the common info of the mounted tag.

The current state must be Mounted.

Parameters
outInfoA pointer to write the info to.

◆ GetNfpReadOnlyInfo()

nn::Result nn::nfp::GetNfpReadOnlyInfo ( ReadOnlyInfo outInfo)

Gets the read only info of the mounted tag.

The current state must be Mounted.

Parameters
outInfoA pointer to write the info to.

◆ GetNfpAdminInfo()

nn::Result nn::nfp::GetNfpAdminInfo ( AdminInfo outInfo)

Gets the admin info of the mounted tag.

The current state must be Mounted.

Parameters
outInfoA pointer to write the info to.

◆ GetNfpRomInfo()

nn::Result nn::nfp::GetNfpRomInfo ( RomInfo outInfo)

Gets the rom info of the mounted tag.

The current state must be Mounted or MountedROM.

Parameters
outInfoA pointer to write the info to.

◆ GetTagInfo()

nn::Result nn::nfp::GetTagInfo ( TagInfo outInfo)

Gets the tag info.

The current state must be Found, Mounted or MountedROM.

Parameters
outInfoA pointer to write the info to.

◆ Format()

nn::Result nn::nfp::Format ( const uint8_t *  data,
int32_t  size 
)

Formats a found tag.

Formatting will wipe the register info and application data.

The current state must be Found.

Parameters
dataA pointer to data which gets written over the application area (can be NULL).
sizeThe size of the data (can be 0).

◆ Restore()

nn::Result nn::nfp::Restore ( )

◆ GetErrorCode()

uint32_t nn::nfp::GetErrorCode ( const nn::Result res)

Converts a nn::Result to an error code.

Returns
The error code.