Basic Configuration

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...
 
SECTION_RAM_CODE __STATIC_INLINE uint32_t ll_comp_is_active_flag_it (void)
 Indicate if the COMP Interrupt Flag is set or not. More...
 
SECTION_RAM_CODE __STATIC_INLINE void ll_comp_clear_flag_it (void)
 Clear Interrupt Status flag for COMP. More...
 

Detailed Description

Function Documentation

◆ ll_comp_clear_flag_it()

SECTION_RAM_CODE __STATIC_INLINE void ll_comp_clear_flag_it ( void  )

Clear Interrupt Status flag for COMP.

Register BitsName
SLP_EVENT MSIO_COMP
Return values
None.

◆ ll_comp_disable()

__STATIC_INLINE void ll_comp_disable ( void  )

Disable COMP module.

Register BitsName
RF_REG_10 COMP_EN
Return values
None

◆ ll_comp_enable()

__STATIC_INLINE void ll_comp_enable ( void  )

Enable COMP module.

Register BitsName
RF_REG_10 COMP_EN
Return values
None

◆ ll_comp_is_active_flag_it()

SECTION_RAM_CODE __STATIC_INLINE uint32_t ll_comp_is_active_flag_it ( void  )

Indicate if the COMP Interrupt Flag is set or not.

Register BitsName
SLP_EVENT MSIO_COMP
Return values
Stateof bit (1 or o).

◆ ll_comp_set_input_src()

__STATIC_INLINE void ll_comp_set_input_src ( uint32_t  source)

Set channel of COMP input source.

Register BitsName
RF_REG_10 AON_RF_REG_10_CHANNEL_SEL_P
Parameters
sourceThis parameter can be one of the following values:
Return values
None

◆ ll_comp_set_ref_src()

__STATIC_INLINE void ll_comp_set_ref_src ( uint32_t  source)

Set channel of COMP reference source.

Register BitsName
RF_REG_10 AON_RF_REG_10_CHANNEL_SEL_N
Parameters
sourceThis parameter can be one of the following values:
Return values
None

◆ ll_comp_set_vbatt_lvl()

__STATIC_INLINE void ll_comp_set_vbatt_lvl ( uint32_t  level)

Set VBATT control level.

Register BitsName
RF_REG_10 BATT_LVL_CTRL_LV
Parameters
levelThis parameter can be a value between: 0 ~ 7 Vbatt_ref = ((level+1)/10) * VBATT
Return values
None

◆ ll_comp_set_vref_lvl()

__STATIC_INLINE void ll_comp_set_vref_lvl ( uint32_t  level)

Set VREF control level.

Register BitsName
RF_REG_10 COMP_REF_CTRL_LV
Parameters
levelThis parameter can be a value between: 0 ~ 63 Vref = 30mv * level
Return values
None