2.87 Low Power Modes (Power)
This Plib implements software abstraction for POWER Peripheral.
Note: Not all APIs maybe implemented. See the specific device
family section for available APIs.
Library Interface
Low Power Modes peripheral library provides the following interfaces:
Functions
| Name | Description |
|---|---|
| POWER_LowPowerModeEnter | Puts the device in selected low power mode |
| POWER_Initialize | Initializes Deep Sleep controller of Power module |
| POWER_WakeupSourceGet | Returns the source of wakeup from deep sleep |
| POWER_ReleaseGPIO | Release GPIO pins |
| POWER_WakeupSourceClear | Clears the wakeup source |
| POWER_DSGPR_Write | Saves critical data in deep sleep state |
| POWER_DSGPR_Read | Reads saved data |
| POWER_DS_ExtendedSemaphoreDisable Function | Disables the general purpose register retention in the Deep Sleep mode |
| POWER_DS_ExtendedSemaphoreEnable Function | Enables the general purpose register retention in the Deep Sleep mode |
| POWER_DS_RTCC_PowerDisable Function | Disables the RTCC module in the Deep Sleep mode. |
| POWER_DS_RTCC_PowerEnable Function | Enables the RTCC module in the Deep Sleep mode |
| POWER_DS_RTCC_WakeupDisable Function | Disables the wake-up from RTCC |
| POWER_DS_RTCC_WakeupEnable Function | Enables the wake-up from RTCC |
| POWER_DS_SoftwareRestore Function | Releases I/O pins and allow their respective TRIS and LAT bits to control their states |
Data types and constants
| Name | Type | Description |
|---|---|---|
| POWER_LOW_POWER_MODE | Enum | Identifies low power mode options |
| POWER_WAKEUP_SOURCE | Enum | Identifies wake up sources from deep sleep mode |
| POWER_DSGPR | Enum | Identifies deep sleep GPRs |
