nn::ptm::CTR Namespace

Description

The namespace of the CTR power supply and clock library.
(This namespace can also be written without the ::CTR portion.)

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.

Revision History

2011/10/27
Initial version.

CONFIDENTIAL