void hal_pwr_mgmt_clear_device_handle | ( | periph_device_number_t | dev_num | ) |
Clear the specified peripheral handle.
[in] | dev_num | Peripheral device ID definition. |
void. |
void hal_pwr_mgmt_clear_device_sleep_flag | ( | periph_device_number_t | dev_num | ) |
Store the specified peripheral sleep flag.
[in] | dev_num | Peripheral device ID definition. |
void. |
void hal_pwr_mgmt_device_resume_register | ( | periph_device_number_t | dev_num, |
p_device_resume_func | my_device_resume_function | ||
) |
Set peripheral resume function.
[in] | dev_num | Peripheral device ID definition. |
[in] | my_device_resume_function | Peripheral resume callback function. |
void. |
void hal_pwr_mgmt_device_resume_release | ( | periph_device_number_t | dev_num | ) |
Release peripheral resume function.
[in] | dev_num | Peripheral device ID definition. |
void. |
void hal_pwr_mgmt_device_suspend_register | ( | periph_device_number_t | dev_num, |
p_device_suspend_func | my_device_suspend_function | ||
) |
Set peripheral suspend function.
[in] | dev_num | Peripheral device ID definition. |
[in] | my_device_suspend_function | Peripheral suspend callback function. |
void. |
void hal_pwr_mgmt_device_suspend_release | ( | periph_device_number_t | dev_num | ) |
Release peripheral suspend function.
[in] | dev_num | Peripheral device ID definition. |
void. |
void hal_pwr_mgmt_save_device_handle | ( | periph_device_number_t | dev_num, |
void * | p_dev | ||
) |
Store the specified peripheral handle.
[in] | dev_num | Peripheral device ID definition. |
[in] | p_dev | Pointer to the specified peripheral handle. |
void. |
void hal_pwr_mgmt_set_device_renew_flag | ( | periph_device_number_t | dev_num | ) |
Store the specified peripheral backup flag.
[in] | dev_num | Peripheral device ID definition. |
void. |
void hal_pwr_mgmt_set_device_state | ( | periph_device_number_t | dev_num, |
periph_state_t | state | ||
) |
Store the specified peripheral state.
[in] | dev_num | Peripheral device ID definition. |
[in] | state | the specified peripheral state. |
void. |