Driver API for PM (plib_pm.h) More...
Functions | |
| void | PM_EnterIdleSleepMode (void) |
| Configures the Power Manager to enter Idle sleep mode and executes the WFI instruction. | |
| void | PM_EnterStandbySleepMode (void) |
| Configures the Power Manager to enter Standby sleep mode and executes the WFI instruction. | |
| void | PM_EnableWriteProtection (void) |
| Enable Write Protection for Power Manager registers. Sets the write protection enable bit in the Power Manager Write Protection Control register. Write protection is enabled on PM registers with the Local Write-Protection property. | |
| void | PM_DisableWriteProtection (void) |
| Disable Write Protection for Power Manager registers. Clears the write protection enable bit in the Power Manager Write Protection Control register. This allows modification of protected PM registers. | |
| void | PM_EnableWriteProtectionLock (void) |
| Sets the WPCTRL register to write protected. Lock bit can only be cleared by a reset. | |
Driver API for PM (plib_pm.h)
The following example demonstrates typical usage of the PM peripheral:
| void PM_DisableWriteProtection | ( | void | ) |
Disable Write Protection for Power Manager registers. Clears the write protection enable bit in the Power Manager Write Protection Control register. This allows modification of protected PM registers.
| void PM_EnableWriteProtection | ( | void | ) |
Enable Write Protection for Power Manager registers. Sets the write protection enable bit in the Power Manager Write Protection Control register. Write protection is enabled on PM registers with the Local Write-Protection property.
| void PM_EnableWriteProtectionLock | ( | void | ) |
Sets the WPCTRL register to write protected. Lock bit can only be cleared by a reset.
| void PM_EnterIdleSleepMode | ( | void | ) |
Configures the Power Manager to enter Idle sleep mode and executes the WFI instruction.
| void PM_EnterStandbySleepMode | ( | void | ) |
Configures the Power Manager to enter Standby sleep mode and executes the WFI instruction.