|
InPlay API
|
HAL_POWER. More...
Functions | |
| int | hal_pm_init (int slp_wup, int ble_wup, int bod_wup, int mix_wup, int trig_retn, uint32_t dm_retn, uint32_t em_retn) |
| Power Management initialization function. More... | |
| int | hal_pm_reg_mod (struct pm_module *module) |
| Register power module function. More... | |
| int | hal_pm_unreg_mod (struct pm_module *module) |
| Unregister power module function. More... | |
| uint32_t | hal_pm_suspend_and_resume (uint32_t os_sleep) |
| System shutdown and resume function. More... | |
| int | hal_pm_reg_ble_mod (struct pm_module *module) |
| Register BLE power module function. More... | |
| int | hal_pm_unreg_ble_mod (struct pm_module *module) |
| Unregister BLE power module function. More... | |
| uint32_t | hal_pm_get_wup_src (void) |
| Read the wake up source. More... | |
| void | hal_pm_mix_sig_wup_enable (void) |
| Enable/Disable mix signal (GPIO PORT 2) wake up. More... | |
HAL_POWER.
| uint32_t hal_pm_get_wup_src | ( | void | ) |
Read the wake up source.
| int hal_pm_init | ( | int | slp_wup, |
| int | ble_wup, | ||
| int | bod_wup, | ||
| int | mix_wup, | ||
| int | trig_retn, | ||
| uint32_t | dm_retn, | ||
| uint32_t | em_retn | ||
| ) |
Power Management initialization function.
| [in] | slp_wup | Sleep timer can wake up system from deep sleep; 1: yes, 0: no. |
| [in] | ble_wup | BLE can wake up system from deep slee; 1: yes, 0: no. |
| [in] | bod_wup | Brown out can wake up system from deep slee; 1: yes, 0: no. |
| [in] | mix_wup | Mixed signal IO can wake up system from deep slee; 1: yes, 0: no. |
| [in] | trig_retn | Trigger memory retention flag; 1: yes, 0: no |
| [in] | dm_retn | Data memory retention flag; |
| [in] | em_retn | BLE memory retention flag; |
| void hal_pm_mix_sig_wup_enable | ( | void | ) |
Enable/Disable mix signal (GPIO PORT 2) wake up.
| int hal_pm_reg_ble_mod | ( | struct pm_module * | module | ) |
Register BLE power module function.
| [in] | module | A pointer to the PM module structure, |
| int hal_pm_reg_mod | ( | struct pm_module * | module | ) |
Register power module function.
| [in] | module | A pointer to the PM module structure, |
| uint32_t hal_pm_suspend_and_resume | ( | uint32_t | os_sleep | ) |
System shutdown and resume function.
| [in] | os_sleep | Time in millisecond that Os is idle |
| int hal_pm_unreg_ble_mod | ( | struct pm_module * | module | ) |
Unregister BLE power module function.
| [in] | module | A pointer to the PM module structure, |
| int hal_pm_unreg_mod | ( | struct pm_module * | module | ) |
Unregister power module function.
| [in] | module | A pointer to the PM module structure, |