nn::applet::CTR Namespace

Description

The CTR applet namespace.
(This can also be written without the ::CTR portion.)

Classes

nn::applet::CTR::ResultNotFound Indicates an attempt to get something that did not exist.
nn::applet::CTR::ResultAlreadyExist Indicates an attempt to create or register something that already exists.
nn::applet::CTR::ResultNoArea Indicates a lack of free space during an attempt to run a process that required a region or resource.
nn::applet::CTR::ResultNotEmpty Indicates that during an attempt to run a process, a required buffer was in use and not empty.
nn::applet::CTR::ResultNoData Indicates that there was no data.
nn::applet::CTR::ResultNoCaller Indicates that the caller or sender does not exist.
nn::applet::CTR::ResultNotAllowed Indicates that processing was attempted from a state in which it was not allowed.
nn::applet::CTR::ResultBusy Indicates an attempt to run a process that was busy because of a mutex or for some other reason. In this case, you can retry the process.
nn::applet::CTR::ResultAlreadyInit Indicates that initialization has already been done.
nn::applet::CTR::ResultDifferentMode Indicates differing modes.
nn::applet::CTR::ResultDifferentVersion Indicates differing versions.
nn::applet::CTR::ResultTransitionBusy Indicates that another transition is in progress.
nn::applet::CTR::ResultShutdownProcessing Indicates that a shutdown is in process.

Enumerated Types

HomeButtonState Enumerated type indicating the state of the HOME Button.
WakeupState Enumerated type indicating wakeup requests.
QueryReply Enumerated type indicating a response to a sleep query.
ResultDescription Module-dependent Description values for nn::Result.

typedef Definitions

AppletId Applet ID.
AppletAttr The Applet attributes.
AppletHomeButtonCallback The type of the callback function invoked when HOME is pressed.
AppletSleepQueryCallback The type of the callback function invoked by a sleep query.
AppletSleepCanceledCallback Function type representing a sleep cancel callback.
AppletAwakeCallback The type of the callback function invoked upon awaking from sleep states.
AppletPowerButtonCallback The type of the callback function invoked when POWER is pressed.

Constants

WAIT_INFINITE const nn::fnd::TimeSpan The function continues running until a result is obtained. (Used by applet library functions that specify a time.)
NO_WAIT const nn::fnd::TimeSpan The function only runs once and does not repeat even if no results are obtained. (Used by applet library functions that specify a time.)

Functions

Initialization
Enable Enables features specific to the applet library.
Getting Information
ReceiveDeliverArg Gets DeliverArg and HMAC information as well as the UniqueId for transmissions.
GetInitialWakeupState Gets "wakeup" information when an application is launched.
IsActive Determines whether an Applet is currently running.
Controlling Operations
WaitForRegister Waits the allotted time for the Applet with the specified ID to be registered.
WaitForStarting Waits for this object's start event.
Power Button
IsExpectedToProcessPowerButton Finds the state of the POWER Button.
ProcessPowerButton Processes POWER Button transitions.
ProcessPowerButtonAndWait Processes power button transition, and goes into standby until activated.
Exiting Programs
IsExpectedToCloseApplication Determines whether an application should be closed.
PrepareToCloseApplication Prepares to exit a program.
CloseApplication Exits the program.
HOME Menu
GetHomeButtonState Gets the state of the HOME Button.
ClearHomeButtonState Clears the HOME Button state.
IsExpectedToProcessHomeButton Determines whether there has been a request to process the HOME Button.
ProcessHomeButton Processes transitions to the HOME Menu.
ProcessHomeButtonAndWait Processes HOME Menu transition, and goes into standby until activated.
Sleep
IsExpectedToReplySleepQuery Checks whether the sleep notification state is waiting for a reply.
ReplySleepQuery Replies to a sleep query.
EnableSleep Enables Sleep Mode.
DisableSleep Prohibits Sleep Mode.
Callback Settings
SetHomeButtonCallback Sets the callback invoked when HOME is pressed.
SetPowerButtonCallback Sets the callback invoked when POWER is pressed.
SetSleepQueryCallback Sets the sleep query callback.
SetSleepCanceledCallback Sets the sleep cancel callback.
SetAwakeCallback Sets a sleep recovery callback.

Revision History

2010/11/10
Initial version.

CONFIDENTIAL