Functions
Functions
Peripheral Driver » APP DRIVER » PWR MGMT

## Functions
void | app_pwr_mgmt_init (void)
| Initialize the app power management module. More...
pwr_id_t | pwr_register_sleep_cb (const app_sleep_callbacks_t *p_cb, wakeup_priority_t wakeup_priority, pwr_id_t id)
| set PWR sleep callback function More...
void | pwr_unregister_sleep_cb (pwr_id_t id)
| Unregister PWR sleep callback function. More...
void | pwr_wake_up_ind (void)
| Things to do after waking up. More...
pwr_mgmt_dev_state_t | pwr_enter_sleep_check (void)
| Check peripheral status before going to sleep. More...

## Detailed Description

## Function Documentation

## ◆ app_pwr_mgmt_init()

void app_pwr_mgmt_init | ( | void |  | ) |

Initialize the app power management module.

## ◆ pwr_enter_sleep_check()

pwr_mgmt_dev_state_t pwr_enter_sleep_check | ( | void |  | ) |

Check peripheral status before going to sleep.

## ◆ pwr_register_sleep_cb()

pwr_id_t pwr_register_sleep_cb | ( | const app_sleep_callbacks_t * | p_cb,
|  | wakeup_priority_t | wakeup_priority,
|  | pwr_id_t | id
| ) |  |

set PWR sleep callback function

Parameters

  p_cb | : Device check callback function
  wakeup_priority | : Device wakeup priority
  id | : which id want to register

Returns
  ID

## ◆ pwr_unregister_sleep_cb()

void pwr_unregister_sleep_cb | ( | pwr_id_t | id | ) |

Unregister PWR sleep callback function.

Parameters

  id | : which id want to unregister

## ◆ pwr_wake_up_ind()

void pwr_wake_up_ind | ( | void |  | ) |

Things to do after waking up.