Functions | |
__STATIC_INLINE void | ll_comp_enable (void) |
Enable COMP module. More... | |
__STATIC_INLINE void | ll_comp_disable (void) |
Disable COMP module. More... | |
__STATIC_INLINE void | ll_comp_set_input_src (uint32_t source) |
Set channel of COMP input source. More... | |
__STATIC_INLINE void | ll_comp_set_ref_src (uint32_t source) |
Set channel of COMP reference source. More... | |
__STATIC_INLINE void | ll_comp_set_vbatt_lvl (uint32_t level) |
Set VBATT control level. More... | |
__STATIC_INLINE void | ll_comp_set_vref_lvl (uint32_t level) |
Set VREF control level. More... | |
__STATIC_INLINE void | ll_comp_set_current (uint32_t level) |
set current of comparator. More... | |
__STATIC_INLINE void | ll_comp_cascres_half_high (uint32_t level) |
set power of comparator. More... | |
__STATIC_INLINE void | ll_comp_positive_hysteresis (uint32_t hyst) |
Set hysteresis comparator. More... | |
__STATIC_INLINE void | ll_comp_negative_hysteresis (uint32_t hyst) |
Set hysteresis comparator. More... | |
__STATIC_INLINE void | ll_clocked_comp_enable (void) |
Enable Clocked COMP. More... | |
__STATIC_INLINE void | ll_clocked_comp_disable (void) |
Disable Clocked COMP. More... | |
__STATIC_INLINE void | ll_comp_enable_rising_wakeup (void) |
Enable Wakeup Interrupt for COMP Rising. More... | |
__STATIC_INLINE void | ll_comp_disable_rising_wakeup (void) |
Disable Wakeup Interrupt for COMP Rising. More... | |
__STATIC_INLINE uint32_t | ll_comp_is_enable_rising_wakeup (void) |
Get Wakeup Interrupt for COMP Rising. More... | |
__STATIC_INLINE void | ll_comp_enable_falling_wakeup (void) |
Enable Wakeup Interrupt for COMP Falling. More... | |
__STATIC_INLINE void | ll_comp_disable_falling_wakeup (void) |
Disable Wakeup Interrupt for COMP Falling. More... | |
__STATIC_INLINE uint32_t | ll_comp_is_enable_falling_wakeup (void) |
Get Wakeup Interrupt for COMP Falling. More... | |
SECTION_RAM_CODE __STATIC_INLINE uint32_t | ll_comp_is_rising_triger_flag_it (void) |
Indicate if the COMP rising_triger Flag is set or not. More... | |
SECTION_RAM_CODE __STATIC_INLINE void | ll_comp_clear_rising_triger_flag_it (void) |
Clear rising_triger flag for COMP. More... | |
SECTION_RAM_CODE __STATIC_INLINE uint32_t | ll_comp_is_falling_triger_flag_it (void) |
Indicate if the COMP falling_triger Flag is set or not. More... | |
SECTION_RAM_CODE __STATIC_INLINE void | ll_comp_clear_falling_triger_flag_it (void) |
Clear falling_triger flag for COMP. More... | |
__STATIC_INLINE void | ll_comp_set_remove_cycle (uint32_t cycle) |
Set compator glitch remove cycles. More... | |
__STATIC_INLINE uint32_t | ll_comp_get_remove_cycle (void) |
get the glitch remove_cycle More... | |
__STATIC_INLINE void ll_clocked_comp_disable | ( | void | ) |
Disable Clocked COMP.
Register|BitsName --------|-------- COMP_REG_1 | AON_PMU_COMP_REG_1_CLK_COMP_EN
None |
Definition at line 430 of file gr55xx_ll_comp.h.
__STATIC_INLINE void ll_clocked_comp_enable | ( | void | ) |
Enable Clocked COMP.
Register|BitsName --------|-------- COMP_REG_1 | AON_PMU_COMP_REG_1_CLK_COMP_EN
None |
Definition at line 416 of file gr55xx_ll_comp.h.
__STATIC_INLINE void ll_comp_cascres_half_high | ( | uint32_t | level | ) |
set power of comparator.
Register|BitsName --------|-------- COMP_REG_0 | cascres_half
None |
Definition at line 368 of file gr55xx_ll_comp.h.
SECTION_RAM_CODE __STATIC_INLINE void ll_comp_clear_falling_triger_flag_it | ( | void | ) |
Clear falling_triger flag for COMP.
Register|BitsName --------|-------- AON_SLEEP_EVENT | MSIO_COMP
None. |
Definition at line 570 of file gr55xx_ll_comp.h.
SECTION_RAM_CODE __STATIC_INLINE void ll_comp_clear_rising_triger_flag_it | ( | void | ) |
Clear rising_triger flag for COMP.
Register|BitsName --------|-------- AON_SLEEP_EVENT | MSIO_COMP
None. |
Definition at line 542 of file gr55xx_ll_comp.h.
__STATIC_INLINE void ll_comp_disable | ( | void | ) |
Disable COMP module.
Register|BitsName --------|-------- COMP_REG_0 | COMP_EN
None |
Definition at line 257 of file gr55xx_ll_comp.h.
__STATIC_INLINE void ll_comp_disable_falling_wakeup | ( | void | ) |
Disable Wakeup Interrupt for COMP Falling.
Register|BitsName --------|-------- AON_SLEEP_EVENT | MSIO_COMP
None. |
Definition at line 500 of file gr55xx_ll_comp.h.
__STATIC_INLINE void ll_comp_disable_rising_wakeup | ( | void | ) |
Disable Wakeup Interrupt for COMP Rising.
Register|BitsName --------|-------- AON_SLEEP_EVENT | MSIO_COMP
None. |
Definition at line 458 of file gr55xx_ll_comp.h.
__STATIC_INLINE void ll_comp_enable | ( | void | ) |
Enable COMP module.
Register|BitsName --------|-------- COMP_REG_0 | COMP_EN
None |
Definition at line 243 of file gr55xx_ll_comp.h.
__STATIC_INLINE void ll_comp_enable_falling_wakeup | ( | void | ) |
Enable Wakeup Interrupt for COMP Falling.
Register|BitsName --------|-------- AON_SLEEP_EVENT | MSIO_COMP
None. |
Definition at line 486 of file gr55xx_ll_comp.h.
__STATIC_INLINE void ll_comp_enable_rising_wakeup | ( | void | ) |
Enable Wakeup Interrupt for COMP Rising.
Register|BitsName --------|-------- AON_SLEEP_EVENT | MSIO_COMP
None. |
Definition at line 444 of file gr55xx_ll_comp.h.
__STATIC_INLINE uint32_t ll_comp_get_remove_cycle | ( | void | ) |
get the glitch remove_cycle
Register|BitsName --------|-------- AON_CTL_PMU_COMP_GLITCH_REMOVE | AON_CTL_PMU_COMP_GLITCH_REMOVE_CYCLE
remove_cycles. |
Definition at line 598 of file gr55xx_ll_comp.h.
__STATIC_INLINE uint32_t ll_comp_is_enable_falling_wakeup | ( | void | ) |
Get Wakeup Interrupt for COMP Falling.
Register|BitsName --------|-------- AON_SLEEP_EVENT | MSIO_COMP
State | of bit (1 or o). |
Definition at line 514 of file gr55xx_ll_comp.h.
__STATIC_INLINE uint32_t ll_comp_is_enable_rising_wakeup | ( | void | ) |
Get Wakeup Interrupt for COMP Rising.
Register|BitsName --------|-------- AON_SLEEP_EVENT | MSIO_COMP
State | of bit (1 or o). |
Definition at line 472 of file gr55xx_ll_comp.h.
SECTION_RAM_CODE __STATIC_INLINE uint32_t ll_comp_is_falling_triger_flag_it | ( | void | ) |
Indicate if the COMP falling_triger Flag is set or not.
Register|BitsName --------|-------- AON_SLEEP_EVENT | MSIO_COMP
State | of bit (1 or o). |
Definition at line 556 of file gr55xx_ll_comp.h.
SECTION_RAM_CODE __STATIC_INLINE uint32_t ll_comp_is_rising_triger_flag_it | ( | void | ) |
Indicate if the COMP rising_triger Flag is set or not.
Register|BitsName --------|-------- AON_SLEEP_EVENT | MSIO_COMP
State | of bit (1 or o). |
Definition at line 528 of file gr55xx_ll_comp.h.
__STATIC_INLINE void ll_comp_negative_hysteresis | ( | uint32_t | hyst | ) |
Set hysteresis comparator.
Register|BitsName --------|-------- COMP_REG_1 | N_HYS_EN
hyst | This parameter can be the following value: |
None |
Definition at line 402 of file gr55xx_ll_comp.h.
__STATIC_INLINE void ll_comp_positive_hysteresis | ( | uint32_t | hyst | ) |
Set hysteresis comparator.
Register|BitsName --------|-------- COMP_REG_1 | P_HYS_EN
hyst | This parameter can be the following value: |
None |
Definition at line 385 of file gr55xx_ll_comp.h.
__STATIC_INLINE void ll_comp_set_current | ( | uint32_t | level | ) |
set current of comparator.
Register|BitsName --------|-------- COMP_REG_0 | icomp_ctrl
None |
Definition at line 354 of file gr55xx_ll_comp.h.
__STATIC_INLINE void ll_comp_set_input_src | ( | uint32_t | source | ) |
Set channel of COMP input source.
Register|BitsName --------|-------- COMP_REG_0 | AON_COMP_REG_0_CHANNEL_SEL_P
source | This parameter can be one of the following values: |
None |
Definition at line 282 of file gr55xx_ll_comp.h.
__STATIC_INLINE void ll_comp_set_ref_src | ( | uint32_t | source | ) |
Set channel of COMP reference source.
Register|BitsName --------|-------- COMP_REG_0 | AON_COMP_REG_0_CHANNEL_SEL_N
source | This parameter can be one of the following values: |
None |
Definition at line 307 of file gr55xx_ll_comp.h.
__STATIC_INLINE void ll_comp_set_remove_cycle | ( | uint32_t | cycle | ) |
Set compator glitch remove cycles.
Register|BitsName --------|-------- AON_CTL_PMU_COMP_GLITCH_REMOVE | AON_CTL_PMU_COMP_GLITCH_REMOVE_CYCLE
None. |
Definition at line 584 of file gr55xx_ll_comp.h.
__STATIC_INLINE void ll_comp_set_vbatt_lvl | ( | uint32_t | level | ) |
Set VBATT control level.
Register|BitsName --------|-------- COMP_REG_0 | BATT_LVL_CTRL_LV
level | This parameter can be a value between: 0 ~ 7 Vbatt_ref = ((level+1)/10) * VBATT |
None |
Definition at line 323 of file gr55xx_ll_comp.h.
__STATIC_INLINE void ll_comp_set_vref_lvl | ( | uint32_t | level | ) |
Set VREF control level.
Register|BitsName --------|-------- COMP_REG_0 | COMP_REF_CTRL
level | This parameter can be a value between: 0 ~ 255 Vref = 7.5mv * level |
None |
Definition at line 340 of file gr55xx_ll_comp.h.