PDGO driver APIs. More...
Functions | |
| static void | pdgo_set_turnoff_counter (PDGO_Type *ptr, uint32_t counter) |
| Set DGO turn-off counter. More... | |
| static void | pdgo_enable_wkup_software_wakeup (PDGO_Type *ptr) |
| Enable wakeup pin or software wakeup. More... | |
| static void | pdgo_disable_wkup_software_wakeup (PDGO_Type *ptr) |
| Disable wakeup pin or software wakeup. More... | |
| static void | pdgo_enable_oneshot_wakeup (PDGO_Type *ptr) |
| Set DGO to one-shot wakeup mode. More... | |
| static void | pdgo_enable_retention_mode (PDGO_Type *ptr) |
| Enable DGO register retention mode. More... | |
| static bool | pdgo_is_retention_mode_enabled (PDGO_Type *ptr) |
| Check whether the DGO retention mode is enabled or not. More... | |
| static void | pdgo_disable_retention_mode (PDGO_Type *ptr) |
| Disable DGO register retention mode. More... | |
| static void | pdgo_enable_auto_wakeup (PDGO_Type *ptr) |
| Set DGO to automatic wakeup mode. More... | |
| static bool | pdgo_is_pin_wakeup (PDGO_Type *ptr) |
| Check whether DGO is waked up by Wake-up/Reset Pin. More... | |
| static bool | pdgo_is_auto_wakeup_enabled (PDGO_Type *ptr) |
| Check whether Auto wake-up is enabled. More... | |
| static void | pdgo_enable_pullup_resistor_for_reset_pin (PDGO_Type *ptr) |
| Enable pull-up resistor for Reset Pin [in] ptr DGO base address. More... | |
| static void | pdgo_disable_pullup_resistor_for_reset_pin (PDGO_Type *ptr) |
| Disable pull-up resistor for Reset Pin [in] ptr DGO base address. More... | |
| static void | pdgo_enable_pulldown_resistor_for_wakeup_pin (PDGO_Type *ptr) |
| static void | pdgo_disable_pulldown_resistor_for_wakeup_pin (PDGO_Type *ptr) |
| static void | pdgo_set_wakeup_counter (PDGO_Type *ptr, uint32_t wakeup_ctr) |
| Set DGO wakeup counter. More... | |
| static uint32_t | pdgo_get_wakeup_counter (PDGO_Type *ptr) |
| Get DGO wakeup counter value. More... | |
| static void | pdgo_write_gpr (PDGO_Type *ptr, uint32_t index, uint32_t content) |
| Write data to DGO GPR register. More... | |
| static uint32_t | pdgo_read_gpr (PDGO_Type *ptr, uint32_t index) |
| Read data from DGO GPR register. More... | |
| static uint32_t | pdgo_get_wakeup_counter_from_us (uint32_t us) |
| Convert the microsecond to DGO Wake-up counter value. More... | |
| static uint32_t | pdgo_get_us_from_wakeup_counter (uint32_t counter) |
| Convert the DGO Wake-up counter to microseconds. More... | |
| static uint32_t | pdgo_get_turnoff_counter_from_us (uint32_t us) |
| Convert the microsecond to DGO Turn-off counter value. More... | |
| static uint32_t | pdgo_get_us_from_turnoff_counter (uint32_t counter) |
| Convert the DGO Turn-off counter to microseconds. More... | |
PDGO driver APIs.
|
inlinestatic |
#include <soc/HPM5300/HPM5301/hpm_pdgo_drv.h>
Disable pull-down resistor for Wakeup pin [in] ptr DGO base address
|
inlinestatic |
#include <soc/HPM5300/HPM5301/hpm_pdgo_drv.h>
Disable pull-up resistor for Reset Pin [in] ptr DGO base address.
|
inlinestatic |
#include <soc/HPM5300/HPM5301/hpm_pdgo_drv.h>
Disable DGO register retention mode.
| [in] | ptr | DGO base address |
|
inlinestatic |
#include <soc/HPM5300/HPM5301/hpm_pdgo_drv.h>
Disable wakeup pin or software wakeup.
| [in] | ptr | DGO base address |
|
inlinestatic |
#include <soc/HPM5300/HPM5301/hpm_pdgo_drv.h>
Set DGO to automatic wakeup mode.
| [in] | ptr | DGO base address |
|
inlinestatic |
#include <soc/HPM5300/HPM5301/hpm_pdgo_drv.h>
Set DGO to one-shot wakeup mode.
| [in] | ptr | DGO base address |
|
inlinestatic |
#include <soc/HPM5300/HPM5301/hpm_pdgo_drv.h>
Enable pull-down resistor for Wakeup pin [in] ptr DGO base address
|
inlinestatic |
#include <soc/HPM5300/HPM5301/hpm_pdgo_drv.h>
Enable pull-up resistor for Reset Pin [in] ptr DGO base address.
|
inlinestatic |
#include <soc/HPM5300/HPM5301/hpm_pdgo_drv.h>
Enable DGO register retention mode.
| [in] | ptr | DGO base address |
|
inlinestatic |
#include <soc/HPM5300/HPM5301/hpm_pdgo_drv.h>
Enable wakeup pin or software wakeup.
| [in] | ptr | DGO base address |
|
inlinestatic |
#include <soc/HPM5300/HPM5301/hpm_pdgo_drv.h>
Convert the microsecond to DGO Turn-off counter value.
| [in] | us | microsecond to be converted |
< DGO Turn-off counter frequency
|
inlinestatic |
#include <soc/HPM5300/HPM5301/hpm_pdgo_drv.h>
Convert the DGO Turn-off counter to microseconds.
| [in] | counter | DGO Turn-off counter |
< DGO Turn-off counter frequency
< DGO Turn-off counter frequency
|
inlinestatic |
#include <soc/HPM5300/HPM5301/hpm_pdgo_drv.h>
Convert the DGO Wake-up counter to microseconds.
| [in] | counter | DGO counter |
< DGO Wakeup Counter frequency
|
inlinestatic |
#include <soc/HPM5300/HPM5301/hpm_pdgo_drv.h>
Get DGO wakeup counter value.
| [in] | ptr | DGO base address |
|
inlinestatic |
#include <soc/HPM5300/HPM5301/hpm_pdgo_drv.h>
Convert the microsecond to DGO Wake-up counter value.
| [in] | us | microsecond to be converted |
< DGO Wakeup Counter frequency
< DGO Wakeup Counter frequency
|
inlinestatic |
#include <soc/HPM5300/HPM5301/hpm_pdgo_drv.h>
Check whether Auto wake-up is enabled.
| [in] | ptr | DGO base address |
| true | - Auto wake-up is enabled |
| false | - Auto wake-up is disabled |
|
inlinestatic |
#include <soc/HPM5300/HPM5301/hpm_pdgo_drv.h>
Check whether DGO is waked up by Wake-up/Reset Pin.
| [in] | ptr | DGO base address |
| true | if DGO is waked up by Wakeup/Reset pin |
|
inlinestatic |
#include <soc/HPM5300/HPM5301/hpm_pdgo_drv.h>
Check whether the DGO retention mode is enabled or not.
| [in] | ptr | DGO base address |
| true | Retention mode is enabled |
| false | Retention mode is disabled |
|
inlinestatic |
#include <soc/HPM5300/HPM5301/hpm_pdgo_drv.h>
Read data from DGO GPR register.
| [in] | ptr | DGO base address |
| [in] | index | GPR register index |
< DGO GPR register count
|
inlinestatic |
#include <soc/HPM5300/HPM5301/hpm_pdgo_drv.h>
Set DGO turn-off counter.
| [in] | ptr | DGO base address |
| [in] | counter | Turn-off counter value. Clock source is 24M |
|
inlinestatic |
#include <soc/HPM5300/HPM5301/hpm_pdgo_drv.h>
Set DGO wakeup counter.
| [in] | ptr | DGO base address |
| [in] | wakeup_ctr | Wakeup counter value. clock source is 32K |
|
inlinestatic |
#include <soc/HPM5300/HPM5301/hpm_pdgo_drv.h>
Write data to DGO GPR register.
| [in] | ptr | DGO base address |
| [in] | index | GPR register index |
| [in] | content | Data to be written to DGO GPR register |
< DGO GPR register count