Macros | Enumerations | Functions
PWR_MGMT
Peripheral Driver » HAL Driver

PWR_MGMT HAL module driver. More...

## Macros
#define | HAL_PM_SUSPEND(_PM_FUNC_) if(HAL_PM_SLEEP != (_PM_FUNC_)){ return HAL_PM_ACTIVE; }
#define | HAL_PM_ASSERT_ENABLE 0
#define | HAL_PM_ASSERT(ignore) ((void)0)

## Enumerations
enum | hal_pm_status_t { HAL_PM_ACTIVE = 0, HAL_PM_SLEEP }

## Functions
void | hal_pm_init (void)
void | hal_pm_deinit (void)
void | hal_pm_resume_system (void)
void | hal_pm_resume_user (void)
hal_pm_status_t | hal_pm_suspend_system (void)
hal_pm_status_t | hal_pm_suspend_user (void)

## Detailed Description

PWR_MGMT HAL module driver.

## Macro Definition Documentation

## ◆ HAL_PM_ASSERT

#define HAL_PM_ASSERT | ( |  | ignore | ) | ((void)0)

Definition at line 78 of file hal_pwr_mgmt.h.

## ◆ HAL_PM_ASSERT_ENABLE

#define HAL_PM_ASSERT_ENABLE 0

Definition at line 73 of file hal_pwr_mgmt.h.

## ◆ HAL_PM_SUSPEND

#define HAL_PM_SUSPEND | ( |  | _PM_FUNC_ | ) | if(HAL_PM_SLEEP != (_PM_FUNC_)){ return HAL_PM_ACTIVE; }

Definition at line 71 of file hal_pwr_mgmt.h.

## Enumeration Type Documentation

## ◆ hal_pm_status_t

enum hal_pm_status_t

Enumerator
HAL_PM_ACTIVE |
HAL_PM_SLEEP |

Definition at line 58 of file hal_pwr_mgmt.h.

## Function Documentation

## ◆ hal_pm_deinit()

void hal_pm_deinit | ( | void |  | ) |

## ◆ hal_pm_init()

void hal_pm_init | ( | void |  | ) |

## ◆ hal_pm_resume_system()

void hal_pm_resume_system | ( | void |  | ) |

## ◆ hal_pm_resume_user()

void hal_pm_resume_user | ( | void |  | ) |

## ◆ hal_pm_suspend_system()

hal_pm_status_t hal_pm_suspend_system | ( | void |  | ) |

## ◆ hal_pm_suspend_user()

hal_pm_status_t hal_pm_suspend_user | ( | void |  | ) |