Lowpower Interface.
More...
|
__STATIC_INLINE void | LP_EnableInt (ANA_T *ana, uint32_t u32Mask) |
| This function enable lowpower intterrupt. More...
|
|
__STATIC_INLINE void | LP_ClearWakeFlag (ANA_T *ana, uint32_t u32Mask) |
| This function wait to clear wake up flag. More...
|
|
__STATIC_INLINE void | LP_RequestDeepSleep (ANA_T *ana) |
| This function request to enter deepsleep. More...
|
|
__STATIC_INLINE void | LP_ResetDigital (ANA_T *ana, FunctionalState NewState) |
| This function request to reset digital. More...
|
|
void | LP_SetExternalWake (ANA_T *ana, FunctionalState NewState, uint8_t WkEdge) |
| This function enable gpio p56 wake up. More...
|
|
void | LP_SetSleepTime (ANA_T *ana, uint32_t u32ClkCnt) |
| This function set sleep time. More...
|
|
void | LP_SetDigitalDelay (ANA_T *ana, uint16_t u16Clk32Cnt) |
| This function used to set digital reset time. More...
|
|
void | LP_SetSleepModeConfig (ANA_T *ana, uint32_t wkMode, bool enterCyclically) |
| This function set sleep mode config. More...
|
|
void | LP_SetDeepSleepConfig (ANA_T *ana, uint32_t wkMode, bool enterCyclically) |
| This function set deep sleep mode config. More...
|
|
void | LP_SetStandbyConfig (ANA_T *ana, uint32_t wkMode, uint8_t PowerCtrl) |
| This function set standby mode config. More...
|
|
void | LP_SetStandbyMode0Config (ANA_T *ana, uint32_t wkMode) |
| This function set standby mode0 config. More...
|
|
void | LP_SetStandbyMode1Config (ANA_T *ana, uint32_t wkMode) |
| This function set standby mode1 config. More...
|
|
Lowpower Interface.
◆ LP_EXT_P56_WK_DISABLE
#define LP_EXT_P56_WK_DISABLE (0) |
◆ LP_EXT_P56_WK_EN
#define LP_EXT_P56_WK_EN (1) |
◆ LP_ClearWakeFlag()
__STATIC_INLINE void LP_ClearWakeFlag |
( |
ANA_T * |
ana, |
|
|
uint32_t |
u32Mask |
|
) |
| |
This function wait to clear wake up flag.
- Parameters
-
[in] | ana | where ana is analog module base address |
[in] | u32Mask | bit need to be cleared |
- Returns
- none
◆ LP_EnableInt()
__STATIC_INLINE void LP_EnableInt |
( |
ANA_T * |
ana, |
|
|
uint32_t |
u32Mask |
|
) |
| |
This function enable lowpower intterrupt.
- Parameters
-
[in] | ana | where anac is anac module base address |
[in] | u32Mask | intterrupt bit need to be enabled ANAC_INT_STANDBY_INT_EN_Msk ANAC_INT_SLEEP_INT_EN_Msk |
- Returns
- none
◆ LP_RequestDeepSleep()
__STATIC_INLINE void LP_RequestDeepSleep |
( |
ANA_T * |
ana | ) |
|
This function request to enter deepsleep.
- Parameters
-
[in] | ana | where anac is anac module base address |
- Returns
- none
◆ LP_ResetDigital()
__STATIC_INLINE void LP_ResetDigital |
( |
ANA_T * |
ana, |
|
|
FunctionalState |
NewState |
|
) |
| |
This function request to reset digital.
- Parameters
-
[in] | ana | where anac is anac module base address |
| NewState | new state of enabling state |
- Returns
- none
◆ LP_SetDeepSleepConfig()
void LP_SetDeepSleepConfig |
( |
ANA_T * |
ana, |
|
|
uint32_t |
wkMode, |
|
|
bool |
enterCyclically |
|
) |
| |
This function set deep sleep mode config.
- Parameters
-
[in] | ana | where ana is analog module base address |
[in] | wkMode | where wkMode determine which wakeup mode to choose |
[in] | enterCyclically | where enterCyclically determine whether to cycle into low power |
- Returns
- none
◆ LP_SetDigitalDelay()
void LP_SetDigitalDelay |
( |
ANA_T * |
ana, |
|
|
uint16_t |
u16Clk32Cnt |
|
) |
| |
This function used to set digital reset time.
- Parameters
-
[in] | ana | where ana is analog module base address |
[in] | u8Clk32Cnt | where u8Clk32Cnt is 32k clock period cnt |
- Returns
- none
◆ LP_SetExternalWake()
void LP_SetExternalWake |
( |
ANA_T * |
ana, |
|
|
FunctionalState |
NewState, |
|
|
uint8_t |
WkEdge |
|
) |
| |
This function enable gpio p56 wake up.
- Parameters
-
[in] | ana | where ana is analog module base address |
[in] | NewState | enable or disable |
[in] | WkEdge | p56 wake up edge select,0-->low,1-->high |
- Returns
- none
◆ LP_SetSleepModeConfig()
void LP_SetSleepModeConfig |
( |
ANA_T * |
ana, |
|
|
uint32_t |
wkMode, |
|
|
bool |
enterCyclically |
|
) |
| |
This function set sleep mode config.
- Parameters
-
[in] | ana | where ana is analog module base address |
[in] | wkMode | where wkMode determine which wakeup mode to choose |
[in] | enterCyclically | where enterCyclically determine whether to cycle into low power
|
- Returns
- none
◆ LP_SetSleepTime()
void LP_SetSleepTime |
( |
ANA_T * |
ana, |
|
|
uint32_t |
u32ClkCnt |
|
) |
| |
This function set sleep time.
- Parameters
-
[in] | ana | where ana is analog module base address |
[in] | u32ClkCnt | where u32ClkCnt is 32k clock cnt num |
- Returns
- none
◆ LP_SetStandbyConfig()
void LP_SetStandbyConfig |
( |
ANA_T * |
ana, |
|
|
uint32_t |
wkMode, |
|
|
uint8_t |
PowerCtrl |
|
) |
| |
This function set standby mode config.
- Parameters
-
[in] | ana | where ana is analog module base address |
[in] | wkMode | where wkMode determine which wake source selected |
[in] | PowerCtrl | where PowerCtrl determine which module should be powered |
- Returns
- none
◆ LP_SetStandbyMode0Config()
void LP_SetStandbyMode0Config |
( |
ANA_T * |
ana, |
|
|
uint32_t |
wkMode |
|
) |
| |
This function set standby mode0 config.
- Parameters
-
[in] | ana | where ana is analog module base address |
[in] | wkMode | where wkMode determine which wake source selected |
- Returns
- none
◆ LP_SetStandbyMode1Config()
void LP_SetStandbyMode1Config |
( |
ANA_T * |
ana, |
|
|
uint32_t |
wkMode |
|
) |
| |
This function set standby mode1 config.
- Parameters
-
[in] | ana | where ana is analog module base address |
[in] | wkMode | where wkMode determine which wake source selected |
- Returns
- none