|
wut v1.9.1
Wii U Toolchain
|
Data Structures | |
| struct | AdminInfo |
| struct | AmiiboSettingsArgs |
| struct | AmiiboSettingsArgsIn |
| struct | AmiiboSettingsResult |
| struct | ApplicationAreaCreateInfo |
| struct | CommonInfo |
| struct | Date |
| struct | ReadOnlyInfo |
| struct | RegisterInfo |
| struct | RegisterInfoSet |
| struct | TagId |
| struct | TagInfo |
Typedefs | |
| using | RomInfo = ReadOnlyInfo |
Functions | |
| nn::Result | InitializeAmiiboSettingsArgsIn (AmiiboSettingsArgsIn *args) asm("InitializeAmiiboSettingsArgsIn__Q2_2nn3nfpFPQ3_2nn3nfp20AmiiboSettingsArgsIn") |
Initializes a AmiiboSettingsArgsIn struct. | |
| nn::Result | SwitchToAmiiboSettings (const AmiiboSettingsArgsIn &args, const char *standardArg, uint32_t standardArgSize) asm("SwitchToAmiiboSettings__Q2_2nn3nfpFRCQ3_2nn3nfp20AmiiboSettingsArgsInPCcUi") |
| Switches to the amiibo settings applet. | |
| nn::Result | SwitchToAmiiboSettings (const AmiiboSettingsArgsIn &args) asm("SwitchToAmiiboSettings__Q2_2nn3nfpFRCQ3_2nn3nfp20AmiiboSettingsArgsIn") |
| Switches to the amiibo settings applet. | |
| nn::Result | GetAmiiboSettingsResult (AmiiboSettingsResult *outResult, const SYSArgDataBlock &block) asm("GetAmiiboSettingsResult__Q2_2nn3nfpFPQ3_2nn3nfp20AmiiboSettingsResultRC15SysArgDataBlock") |
| Gets the amiibo settings result from a SYSArgs data block. | |
| nn::Result | ReturnToCallerWithAmiiboSettingsResult (const AmiiboSettingsResult &result) asm("ReturnToCallerWithAmiiboSettingsResult__Q2_2nn3nfpFRCQ3_2nn3nfp20AmiiboSettingsResult") |
| Used by Amiibo Settings internally to return to the caller. | |
| nn::Result | GetAmiiboSettingsArgs (AmiiboSettingsArgs *outArgs) asm("GetAmiiboSettingsArgs__Q2_2nn3nfpFPQ3_2nn3nfp18AmiiboSettingsArgs") |
| Used by Amiibo Settings internally to get the arguments of the caller. | |
| NfpState | GetNfpState () asm("GetNfpState__Q2_2nn3nfpFv") |
| Gets the state nfp is currently in. | |
| nn::Result | Initialize () asm("Initialize__Q2_2nn3nfpFv") |
| Initializes NFP. | |
| nn::Result | Finalize () asm("Finalize__Q2_2nn3nfpFv") |
| Finalizes NFP. | |
| nn::Result | AntennaCheck () asm("AntennaCheck__Q2_2nn3nfpFv") |
| Checks if the NFC Antenna can be used. | |
| nn::Result | SetActivateEvent (OSEvent *event) asm("SetActivateEvent__Q2_2nn3nfpFP7OSEvent") |
| Sets an event which will be signalled once a tag has been found. | |
| nn::Result | SetDeactivateEvent (OSEvent *event) asm("SetDeactivateEvent__Q2_2nn3nfpFP7OSEvent") |
| Sets an event which will be signalled once a tag has been lost. | |
| nn::Result | StartDetection () asm("StartDetection__Q2_2nn3nfpFv") |
| Starts searching for tags. | |
| nn::Result | StopDetection () asm("StopDetection__Q2_2nn3nfpFv") |
| Stops searching for tags. | |
| nn::Result | Mount () asm("Mount__Q2_2nn3nfpFv") |
| Mounts a found tag. | |
| nn::Result | MountReadOnly () asm("MountReadOnly__Q2_2nn3nfpFv") |
| Mounts a found tag as read-only. | |
| nn::Result | MountRom () asm("MountRom__Q2_2nn3nfpFv") |
| Mounts a found tag in ROM mode. | |
| nn::Result | Flush () asm("Flush__Q2_2nn3nfpFv") |
| Writes any changes done while mounted to the tag. | |
| nn::Result | Unmount () asm("Unmount__Q2_2nn3nfpFv") |
| Unmounts a currently mounted tag. | |
| bool | IsExistApplicationArea () asm("IsExistApplicationArea__Q2_2nn3nfpFv") |
| Checks if the tag contains application data. | |
| nn::Result | InitializeCreateInfo (ApplicationAreaCreateInfo *info) asm("InitializeCreateInfo__Q2_2nn3nfpFPQ3_2nn3nfp25ApplicationAreaCreateInfo") |
Initializes a ApplicationAreaCreateInfo struct. | |
| nn::Result | CreateApplicationArea (const ApplicationAreaCreateInfo &createInfo) asm("CreateApplicationArea__Q2_2nn3nfpFRCQ3_2nn3nfp25ApplicationAreaCreateInfo") |
| Initializes the application area of the tag. | |
| nn::Result | OpenApplicationArea (uint32_t accessID) asm("OpenApplicationArea__Q2_2nn3nfpFUi") |
| Opens the application area for reading and writing. | |
| nn::Result | DeleteApplicationArea () asm("DeleteApplicationArea__Q2_2nn3nfpFv") |
| Deletes the application area. | |
| nn::Result | WriteApplicationArea (const void *data, uint32_t size, const TagId &id) asm("WriteApplicationArea__Q2_2nn3nfpFPCvUiRCQ3_2nn3nfp5TagId") |
| Writes data to the opened application area. | |
| nn::Result | ReadApplicationArea (void *outData, uint32_t size) asm("ReadApplicationArea__Q2_2nn3nfpFPvUi") |
| Reads data from the opened application area. | |
| nn::Result | InitializeRegisterInfoSet (RegisterInfoSet *infoSet) asm("InitializeRegisterInfoSet__Q2_2nn3nfpFPQ3_2nn3nfp15RegisterInfoSet") |
Initializes a RegisterInfoSet struct. | |
| nn::Result | SetNfpRegisterInfo (const RegisterInfoSet &info) asm("SetNfpRegisterInfo__Q2_2nn3nfpFRCQ3_2nn3nfp15RegisterInfoSet") |
| Sets the register info of the mounted tag. | |
| nn::Result | GetNfpRegisterInfo (RegisterInfo *outInfo) asm("GetNfpRegisterInfo__Q2_2nn3nfpFPQ3_2nn3nfp12RegisterInfo") |
| Gets the register info of the mounted tag. | |
| nn::Result | DeleteNfpRegisterInfo () asm("DeleteNfpRegisterInfo__Q2_2nn3nfpFv") |
| Deletes the register info of the mounted tag. | |
| nn::Result | GetNfpCommonInfo (CommonInfo *outInfo) asm("GetNfpCommonInfo__Q2_2nn3nfpFPQ3_2nn3nfp10CommonInfo") |
| Gets the common info of the mounted tag. | |
| nn::Result | GetNfpReadOnlyInfo (ReadOnlyInfo *outInfo) asm("GetNfpReadOnlyInfo__Q2_2nn3nfpFPQ3_2nn3nfp12ReadOnlyInfo") |
| Gets the read only info of the mounted tag. | |
| nn::Result | GetNfpAdminInfo (AdminInfo *outInfo) asm("GetNfpAdminInfo__Q2_2nn3nfpFPQ3_2nn3nfp9AdminInfo") |
| Gets the admin info of the mounted tag. | |
| nn::Result | GetNfpRomInfo (RomInfo *outInfo) asm("GetNfpRomInfo__Q2_2nn3nfpFPQ3_2nn3nfp7RomInfo") |
| Gets the rom info of the mounted tag. | |
| nn::Result | GetTagInfo (TagInfo *outInfo) asm("GetTagInfo__Q2_2nn3nfpFPQ3_2nn3nfp7TagInfo") |
| Gets the tag info. | |
| nn::Result | Format (const uint8_t *data, int32_t size) asm("Format__Q2_2nn3nfpFPCUci") |
| Formats a found tag. | |
| 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. | |
| struct nn::nfp::AdminInfo |
| 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 |
| struct nn::nfp::AmiiboSettingsArgs |
Definition at line 55 of file amiibo_settings_cpp.h.
| Data Fields | ||
|---|---|---|
| SYSStandardArgs | standardArgs | |
| AmiiboSettingsArgsIn | argsIn | |
| struct nn::nfp::AmiiboSettingsArgsIn |
Definition at line 32 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 |
| struct nn::nfp::AmiiboSettingsResult |
Definition at line 64 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 |
| struct nn::nfp::ApplicationAreaCreateInfo |
| struct nn::nfp::CommonInfo |
| 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 |
| struct nn::nfp::Date |
| struct nn::nfp::ReadOnlyInfo |
| struct nn::nfp::RegisterInfo |
| 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 |
| struct nn::nfp::RegisterInfoSet |
| 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 |
| struct nn::nfp::TagId |
| struct nn::nfp::TagInfo |
| 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 |
| using RomInfo = ReadOnlyInfo |
|
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 21 of file amiibo_settings_cpp.h.
| enum ResultDescription |
NN_NFP result descriptions for nn::Result::GetDescription.
|
strong |
|
strong |
|
strong |
| nn::Result InitializeAmiiboSettingsArgsIn | ( | AmiiboSettingsArgsIn * | args | ) |
Initializes a AmiiboSettingsArgsIn struct.
| args | The args which should be initialized. |
| nn::Result SwitchToAmiiboSettings | ( | const AmiiboSettingsArgsIn & | args, |
| const char * | standardArg, | ||
| uint32_t | standardArgSize | ||
| ) |
Switches to the amiibo settings applet.
| args | The args passed to the amiibo settings. |
| standardArg | Optional standard args which will be serialized. |
| standardArgSize | The size of the standard args. |
| nn::Result SwitchToAmiiboSettings | ( | const AmiiboSettingsArgsIn & | args | ) |
Switches to the amiibo settings applet.
| args | The args passed to the amiibo settings. |
| nn::Result GetAmiiboSettingsResult | ( | AmiiboSettingsResult * | outResult, |
| const SYSArgDataBlock & | block | ||
| ) |
Gets the amiibo settings result from a SYSArgs data block.
| outResult | A pointer to which the result should be written to. |
| block | An argument data block read from SYSGetArguments with SYS_ARG_ID_RESULT. |
| nn::Result ReturnToCallerWithAmiiboSettingsResult | ( | const AmiiboSettingsResult & | result | ) |
Used by Amiibo Settings internally to return to the caller.
| result | The result which will be passed to the arguments. |
| nn::Result GetAmiiboSettingsArgs | ( | AmiiboSettingsArgs * | outArgs | ) |
Used by Amiibo Settings internally to get the arguments of the caller.
| outArgs | A pointer to which the arguments will be written to. |
| NfpState GetNfpState | ( | ) |
Gets the state nfp is currently in.
| nn::Result Initialize | ( | ) |
Initializes NFP.
| nn::Result Finalize | ( | ) |
Finalizes NFP.
| nn::Result AntennaCheck | ( | ) |
Checks if the NFC Antenna can be used.
Note: This will re-initialize the library.
| nn::Result 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.
| event | A pointer to an event which will be initialized by the library. |
| nn::Result 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.
| event | A pointer to an event which will be initialized by the library. |
| nn::Result StartDetection | ( | ) |
Starts searching for tags.
Once a tag has been found the ActivateEvent will be signalled and the NfpState changes to Found .
| nn::Result StopDetection | ( | ) |
Stops searching for tags.
Any currently mounted tag will be unmounted and the DeactivateEvent will be signaled.
| nn::Result Mount | ( | ) |
Mounts a found tag.
The current NfpState must be Found before calling this function.
| nn::Result MountReadOnly | ( | ) |
Mounts a found tag as read-only.
The current NfpState must be Found before calling this function.
| nn::Result MountRom | ( | ) |
Mounts a found tag in ROM mode.
The current NfpState must be Found before calling this function.
| nn::Result Flush | ( | ) |
Writes any changes done while mounted to the tag.
The current state must be Mounted and not read-only.
| nn::Result 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.
| bool IsExistApplicationArea | ( | ) |
Checks if the tag contains application data.
The current state must be Mounted.
true if the tag contains an application area. | nn::Result InitializeCreateInfo | ( | ApplicationAreaCreateInfo * | info | ) |
Initializes a ApplicationAreaCreateInfo struct.
| info | The struct which should be initialized. |
| nn::Result 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.
| createInfo | The info with which the application area will be created. |
| nn::Result OpenApplicationArea | ( | uint32_t | accessID | ) |
Opens the application area for reading and writing.
The application area must exist. The current state must be Mounted.
| accessID | The accessID with which the application area was created. |
| nn::Result DeleteApplicationArea | ( | ) |
Deletes the application area.
The application area must exist and the tag must not be read-only. The current state must be Mounted.
| nn::Result 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.
| data | A pointer to the data which will be written to the application area. |
| size | The size of the data which should be written |
| id | The tag id of the tag which the data should be written to. |
| nn::Result 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.
| data | A pointer to store the read data. |
| size | The size of the data which should be read. |
| nn::Result InitializeRegisterInfoSet | ( | RegisterInfoSet * | infoSet | ) |
Initializes a RegisterInfoSet struct.
| infoSet | The set which should be initialized. |
| nn::Result SetNfpRegisterInfo | ( | const RegisterInfoSet & | info | ) |
Sets the register info of the mounted tag.
The current state must be Mounted and not read-only.
| info | The register info which should be set. |
| nn::Result GetNfpRegisterInfo | ( | RegisterInfo * | outInfo | ) |
Gets the register info of the mounted tag.
The current state must be Mounted.
| outInfo | A pointer to write the info to. |
| nn::Result DeleteNfpRegisterInfo | ( | ) |
Deletes the register info of the mounted tag.
The current state must be Mounted and not read-only.
| nn::Result GetNfpCommonInfo | ( | CommonInfo * | outInfo | ) |
Gets the common info of the mounted tag.
The current state must be Mounted.
| outInfo | A pointer to write the info to. |
| nn::Result GetNfpReadOnlyInfo | ( | ReadOnlyInfo * | outInfo | ) |
Gets the read only info of the mounted tag.
The current state must be Mounted.
| outInfo | A pointer to write the info to. |
| nn::Result GetNfpAdminInfo | ( | AdminInfo * | outInfo | ) |
Gets the admin info of the mounted tag.
The current state must be Mounted.
| outInfo | A pointer to write the info to. |
| nn::Result GetNfpRomInfo | ( | RomInfo * | outInfo | ) |
Gets the rom info of the mounted tag.
The current state must be Mounted or MountedROM.
| outInfo | A pointer to write the info to. |
| nn::Result GetTagInfo | ( | TagInfo * | outInfo | ) |
Gets the tag info.
The current state must be Found, Mounted or MountedROM.
| outInfo | A pointer to write the info to. |
| nn::Result 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.
| data | A pointer to data which gets written over the application area (can be NULL). |
| size | The size of the data (can be 0). |
| nn::Result Restore | ( | ) |
| uint32_t GetErrorCode | ( | const nn::Result & | res | ) |
Converts a nn::Result to an error code.