nn::ptm::CTR Namespace

Description

Namespace for CTR functions relating to power management and clock.

(This can also be written without the "::CTR" portion.))

Classes

nn::ptm::CTR::ResultOverWriteAlarm Indicates that the alarm has already been configured.
nn::ptm::CTR::ResultNoAlarm Indicates that the alarm has not been configured.
nn::ptm::CTR::ResultNotRegistered Indicates that an alarm notification event has not been set.
nn::ptm::CTR::ResultInvalidAlarm Indicates that the date specified for the alarm is out of range.

Enumerated Types

Hardware States
AdapterState Indicates the state of the power adapter.
BatteryChargeState Indicates the battery's charging state.
BatteryLevel Indicates the remaining battery charge level.

Functions

Hardware States
GetAdapterState Gets the state of the power adapter.
GetBatteryLevel Gets the remaining battery charge level.
GetBatteryChargeState Gets the battery's charging state.
Alarm-Related
RegisterAlarmEvent Registers an event for getting an alarm notification.
SetRtcAlarm Sets an alarm.
GetRtcAlarm Gets the time for which the alarm has been set.
CancelRtcAlarm Cancels a configured alarm.
Other
Initialize Initializes the PTM library.
Finalize Finalizes the PTM library.

CONFIDENTIAL