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 positive hysteresis comparator. More... | |
__STATIC_INLINE void | ll_comp_negative_hysteresis (uint32_t hyst) |
Set negative hysteresis comparator. More... | |
__STATIC_INLINE void | ll_comp_positive_degeneration (uint32_t res_deg) |
Set calibration of comparator. More... | |
__STATIC_INLINE void | ll_comp_negative_degeneration (uint32_t res_deg) |
Set calibration of comparator. 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... | |
__STATIC_FORCEINLINE uint32_t | ll_comp_is_rising_triger_flag_it (void) |
Indicate if the COMP rising_triger Flag is set or not. More... | |
__STATIC_FORCEINLINE void | ll_comp_clear_rising_triger_flag_it (void) |
Clear rising_triger flag for COMP. More... | |
__STATIC_FORCEINLINE uint32_t | ll_comp_is_falling_triger_flag_it (void) |
Indicate if the COMP falling_triger Flag is set or not. More... | |
__STATIC_FORCEINLINE 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) |
Set compator glitch remove cycles. More... | |
__STATIC_INLINE void ll_comp_cascres_half_high | ( | uint32_t | level | ) |
__STATIC_FORCEINLINE void ll_comp_clear_falling_triger_flag_it | ( | void | ) |
__STATIC_FORCEINLINE void ll_comp_clear_rising_triger_flag_it | ( | void | ) |
__STATIC_INLINE void ll_comp_disable | ( | void | ) |
__STATIC_INLINE void ll_comp_disable_falling_wakeup | ( | void | ) |
__STATIC_INLINE void ll_comp_disable_rising_wakeup | ( | void | ) |
__STATIC_INLINE void ll_comp_enable | ( | void | ) |
__STATIC_INLINE void ll_comp_enable_falling_wakeup | ( | void | ) |
__STATIC_INLINE void ll_comp_enable_rising_wakeup | ( | void | ) |
__STATIC_INLINE uint32_t ll_comp_get_remove_cycle | ( | void | ) |
__STATIC_INLINE uint32_t ll_comp_is_enable_falling_wakeup | ( | void | ) |
__STATIC_INLINE uint32_t ll_comp_is_enable_rising_wakeup | ( | void | ) |
__STATIC_FORCEINLINE uint32_t ll_comp_is_falling_triger_flag_it | ( | void | ) |
__STATIC_FORCEINLINE uint32_t ll_comp_is_rising_triger_flag_it | ( | void | ) |
__STATIC_INLINE void ll_comp_negative_degeneration | ( | uint32_t | res_deg | ) |
Set calibration of comparator.
Register|BitsName --------|-------- COMP_REG_1 | RDEG_N
res_deg | This parameter can be the following value: |
None |
__STATIC_INLINE void ll_comp_negative_hysteresis | ( | uint32_t | hyst | ) |
Set negative hysteresis comparator.
Register|BitsName --------|-------- COMP_REG_0 | N_HYS_EN
hyst | This parameter can be the following value: |
None |
__STATIC_INLINE void ll_comp_positive_degeneration | ( | uint32_t | res_deg | ) |
Set calibration of comparator.
Register|BitsName --------|-------- COMP_REG_1 | RDEG_P
res_deg | This parameter can be the following value: |
None |
__STATIC_INLINE void ll_comp_positive_hysteresis | ( | uint32_t | hyst | ) |
Set positive hysteresis comparator.
Register|BitsName --------|-------- COMP_REG_0 | P_HYS_EN
hyst | This parameter can be the following value: |
None |
__STATIC_INLINE void ll_comp_set_current | ( | uint32_t | level | ) |
__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 |
__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 |
__STATIC_INLINE void ll_comp_set_remove_cycle | ( | uint32_t | cycle | ) |
__STATIC_INLINE void ll_comp_set_vbatt_lvl | ( | uint32_t | level | ) |
__STATIC_INLINE void ll_comp_set_vref_lvl | ( | uint32_t | level | ) |