PAN1080 Peripheral API
Modules | Macros | Functions
Lowpower Interface

Lowpower Interface. More...

Collaboration diagram for Lowpower Interface:

Modules

 Lowpower gpio wake up edge
 Lowpower gpio wake up edge select definitions.
 
 Lowpower wakeup source select
 Lowpower wakeup source select definitions.
 

Macros

#define LP_EXT_P56_WK_EN   (1)
 
#define LP_EXT_P56_WK_DISABLE   (0)
 

Functions

__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...
 

Detailed Description

Lowpower Interface.

Macro Definition Documentation

◆ LP_EXT_P56_WK_DISABLE

#define LP_EXT_P56_WK_DISABLE   (0)

Gpio p56 wake up disable

◆ LP_EXT_P56_WK_EN

#define LP_EXT_P56_WK_EN   (1)

Gpio p56 wake up enable

Function Documentation

◆ LP_ClearWakeFlag()

__STATIC_INLINE void LP_ClearWakeFlag ( ANA_T *  ana,
uint32_t  u32Mask 
)

This function wait to clear wake up flag.

Parameters
[in]anawhere ana is analog module base address
[in]u32Maskbit 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]anawhere anac is anac module base address
[in]u32Maskintterrupt 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]anawhere 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]anawhere anac is anac module base address
NewStatenew 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]anawhere ana is analog module base address
[in]wkModewhere wkMode determine which wakeup mode to choose
[in]enterCyclicallywhere 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]anawhere ana is analog module base address
[in]u8Clk32Cntwhere 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]anawhere ana is analog module base address
[in]NewStateenable or disable
[in]WkEdgep56 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]anawhere ana is analog module base address
[in]wkModewhere wkMode determine which wakeup mode to choose
[in]enterCyclicallywhere 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]anawhere ana is analog module base address
[in]u32ClkCntwhere 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]anawhere ana is analog module base address
[in]wkModewhere wkMode determine which wake source selected
[in]PowerCtrlwhere 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]anawhere ana is analog module base address
[in]wkModewhere 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]anawhere ana is analog module base address
[in]wkModewhere wkMode determine which wake source selected
Returns
none