nn::ptm::CTR NamespaceThe namespace of the CTR power supply and clock library.
(This namespace can also be written without the ::CTR portion.)
| Hardware States | ||
|---|---|---|
| AdapterState | Indicates the state of the power adapter. | |
| BatteryChargeState | Indicates the battery's charging state. | |
| BatteryLevel | Indicates the remaining battery charge level. | |
| 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