Functions | |
__STATIC_INLINE void | ll_adc_enable (void) |
Enable ADC module. More... | |
__STATIC_INLINE void | ll_adc_disable (void) |
Disable ADC module. More... | |
__STATIC_INLINE uint32_t | ll_adc_is_enabled (void) |
Check if ADC module is enabled. More... | |
__STATIC_INLINE void | ll_adc_enable_clock (void) |
Enable ADC clock. More... | |
__STATIC_INLINE void | ll_adc_disable_clock (void) |
Disable ADC clock. More... | |
__STATIC_INLINE uint32_t | ll_adc_is_enabled_clock (void) |
Check if ADC clock is enabled. More... | |
__STATIC_INLINE void | ll_adc_set_clock (uint32_t clk) |
Set ADC clock source. More... | |
__STATIC_INLINE uint32_t | ll_adc_get_clock (void) |
Return source for ADC clock. More... | |
__STATIC_INLINE void | ll_adc_set_ref_value (uint32_t value) |
Set ADC bias reference. More... | |
__STATIC_INLINE uint32_t | ll_adc_get_ref_value (void) |
Return ADC bias reference. More... | |
__STATIC_INLINE void | ll_adc_enable_temp (void) |
Enable temperature sensor. More... | |
__STATIC_INLINE void | ll_adc_disable_temp (void) |
Disable temperature sensor. More... | |
__STATIC_INLINE uint32_t | ll_adc_is_enabled_temp (void) |
Check if temperature sensor is enabled. More... | |
__STATIC_INLINE void | ll_adc_enable_vbat (void) |
Enable Vbattery sensor. More... | |
__STATIC_INLINE void | ll_adc_disable_vbat (void) |
Disable Vbattery sensor. More... | |
__STATIC_INLINE uint32_t | ll_adc_is_enabled_vbat (void) |
Check if Vbattery sensor is enabled. More... | |
__STATIC_INLINE void | ll_adc_set_input_mode (uint32_t mode) |
Set ADC input mode. More... | |
__STATIC_INLINE uint32_t | ll_adc_get_input_mode (void) |
Return ADC input mode. More... | |
__STATIC_INLINE void | ll_adc_enable_ofs_cal (void) |
Enable offset calibration. More... | |
__STATIC_INLINE void | ll_adc_disable_ofs_cal (void) |
Disable offset calibration. More... | |
__STATIC_INLINE uint32_t | ll_adc_is_enabled_ofs_cal (void) |
Check if offset calibration is enabled. More... | |
__STATIC_INLINE void | ll_adc_set_dynamic_rang (uint32_t rang) |
Set dynamic rang of ADC. More... | |
__STATIC_INLINE uint32_t | ll_adc_get_dynamic_rang (void) |
Return ADC dynamic rang. More... | |
__STATIC_INLINE void | ll_adc_set_channelp (uint32_t source) |
Set source of ADC input channelP. More... | |
__STATIC_INLINE uint32_t | ll_adc_get_channelp (void) |
Return source of ADC input channelP. More... | |
__STATIC_INLINE void | ll_adc_set_channeln (uint32_t source) |
Set source of ADC input channelN. More... | |
__STATIC_INLINE uint32_t | ll_adc_get_channeln (void) |
Return source of ADC input channelN. More... | |
__STATIC_INLINE void | ll_adc_enable_mas_rst (void) |
Enable ADC MAS_RST. More... | |
__STATIC_INLINE void | ll_adc_disable_mas_rst (void) |
Disable ADC MAS_RST. More... | |
__STATIC_INLINE uint32_t | ll_adc_is_enabled_mas_rst (void) |
Check if ADC MAS_RST is enabled. More... | |
__STATIC_INLINE void | ll_adc_set_ref (uint32_t source) |
Set source of ADC reference. More... | |
__STATIC_INLINE uint32_t | ll_adc_get_ref (void) |
Return source of ADC reference. More... | |
__STATIC_INLINE void | ll_adc_set_ref_current (uint32_t source) |
Set current of ADC reference circuit. More... | |
__STATIC_INLINE uint32_t | ll_adc_get_ref_current (void) |
Return current of ADC reference circuit. More... | |
__STATIC_INLINE void ll_adc_disable | ( | void | ) |
Disable ADC module.
\rst +-------------------—+--------------------------—+ | Register | BitsName | +======================+=============================+ | SNSADC_CFG | REG4 | +-------------------—+--------------------------—+ \endrst
None |
Definition at line 277 of file gr55xx_ll_adc.h.
__STATIC_INLINE void ll_adc_disable_clock | ( | void | ) |
Disable ADC clock.
\rst +-------------------—+--------------------------—+ | Register | BitsName | +======================+=============================+ | MSIO_PAD_CFG_1 | ADC_CLK_EN | +-------------------—+--------------------------—+ \endrst
None |
Definition at line 333 of file gr55xx_ll_adc.h.
__STATIC_INLINE void ll_adc_disable_mas_rst | ( | void | ) |
Disable ADC MAS_RST.
\rst +-------------------—+--------------------------—+ | Register | BitsName | +======================+=============================+ | SNSADC_CFG | REG4 | +-------------------—+--------------------------—+ \endrst
None |
Definition at line 828 of file gr55xx_ll_adc.h.
__STATIC_INLINE void ll_adc_disable_ofs_cal | ( | void | ) |
Disable offset calibration.
\rst +-------------------—+--------------------------—+ | Register | BitsName | +======================+=============================+ | SNSADC_CFG | REG2 | +-------------------—+--------------------------—+ \endrst
None |
Definition at line 634 of file gr55xx_ll_adc.h.
__STATIC_INLINE void ll_adc_disable_temp | ( | void | ) |
Disable temperature sensor.
\rst +-------------------—+--------------------------—+ | Register | BitsName | +======================+=============================+ | SNSADC_CFG | REG2 | +-------------------—+--------------------------—+ \endrst
None |
Definition at line 483 of file gr55xx_ll_adc.h.
__STATIC_INLINE void ll_adc_disable_vbat | ( | void | ) |
Disable Vbattery sensor.
\rst +-------------------—+--------------------------—+ | Register | BitsName | +======================+=============================+ | SNSADC_CFG | REG2 | +-------------------—+--------------------------—+ \endrst
None |
Definition at line 537 of file gr55xx_ll_adc.h.
__STATIC_INLINE void ll_adc_enable | ( | void | ) |
Enable ADC module.
\rst +-------------------—+--------------------------—+ | Register | BitsName | +======================+=============================+ | SNSADC_CFG | REG4 | +-------------------—+--------------------------—+ \endrst
None |
Definition at line 259 of file gr55xx_ll_adc.h.
__STATIC_INLINE void ll_adc_enable_clock | ( | void | ) |
Enable ADC clock.
\rst +-------------------—+--------------------------—+ | Register | BitsName | +======================+=============================+ | MSIO_PAD_CFG_1 | ADC_CLK_EN | +-------------------—+--------------------------—+ \endrst
None |
Definition at line 313 of file gr55xx_ll_adc.h.
__STATIC_INLINE void ll_adc_enable_mas_rst | ( | void | ) |
Enable ADC MAS_RST.
\rst +-------------------—+--------------------------—+ | Register | BitsName | +======================+=============================+ | SNSADC_CFG | REG4 | +-------------------—+--------------------------—+ \endrst
None |
Definition at line 810 of file gr55xx_ll_adc.h.
__STATIC_INLINE void ll_adc_enable_ofs_cal | ( | void | ) |
Enable offset calibration.
\rst +-------------------—+--------------------------—+ | Register | BitsName | +======================+=============================+ | SNSADC_CFG | REG2 | +-------------------—+--------------------------—+ \endrst
None |
Definition at line 616 of file gr55xx_ll_adc.h.
__STATIC_INLINE void ll_adc_enable_temp | ( | void | ) |
Enable temperature sensor.
\rst +-------------------—+--------------------------—+ | Register | BitsName | +======================+=============================+ | SNSADC_CFG | REG2 | +-------------------—+--------------------------—+ \endrst
None |
Definition at line 465 of file gr55xx_ll_adc.h.
__STATIC_INLINE void ll_adc_enable_vbat | ( | void | ) |
Enable Vbattery sensor.
\rst +-------------------—+--------------------------—+ | Register | BitsName | +======================+=============================+ | SNSADC_CFG | REG2 | +-------------------—+--------------------------—+ \endrst
None |
Definition at line 519 of file gr55xx_ll_adc.h.
__STATIC_INLINE uint32_t ll_adc_get_channeln | ( | void | ) |
Return source of ADC input channelN.
\rst +-------------------—+--------------------------—+ | Register | BitsName | +======================+=============================+ | SNSADC_CFG | REG3 | +-------------------—+--------------------------—+ \endrst
Returned | value can be one of the following values: |
Definition at line 792 of file gr55xx_ll_adc.h.
__STATIC_INLINE uint32_t ll_adc_get_channelp | ( | void | ) |
Return source of ADC input channelP.
\rst +-------------------—+--------------------------—+ | Register | BitsName | +======================+=============================+ | SNSADC_CFG | REG3 | +-------------------—+--------------------------—+ \endrst
Returned | value can be one of the following values: |
Definition at line 741 of file gr55xx_ll_adc.h.
__STATIC_INLINE uint32_t ll_adc_get_clock | ( | void | ) |
Return source for ADC clock.
\rst +-------------------—+--------------------------—+ | Register | BitsName | +======================+=============================+ | MSIO_PAD_CFG_1 | ADC_CLK_SEL | +-------------------—+--------------------------—+ \endrst
Returned | value can be one of the following values: |
Definition at line 404 of file gr55xx_ll_adc.h.
__STATIC_INLINE uint32_t ll_adc_get_dynamic_rang | ( | void | ) |
Return ADC dynamic rang.
\rst +-------------------—+--------------------------—+ | Register | BitsName | +======================+=============================+ | SNSADC_CFG | REG2 | +-------------------—+--------------------------—+ \endrst
Returned | value can be a value between: 1 ~ 7 |
Definition at line 690 of file gr55xx_ll_adc.h.
__STATIC_INLINE uint32_t ll_adc_get_input_mode | ( | void | ) |
Return ADC input mode.
\rst +-------------------—+--------------------------—+ | Register | BitsName | +======================+=============================+ | SNSADC_CFG | REG2 | +-------------------—+--------------------------—+ \endrst
Returned | value can be one of the following values: |
Definition at line 596 of file gr55xx_ll_adc.h.
__STATIC_INLINE uint32_t ll_adc_get_ref | ( | void | ) |
Return source of ADC reference.
\rst +-------------------—+--------------------------—+ | Register | BitsName | +======================+=============================+ | SNSADC_CFG | REG4 | +-------------------—+--------------------------—+ \endrst
Returned | value can be one of the following values: |
Definition at line 893 of file gr55xx_ll_adc.h.
__STATIC_INLINE uint32_t ll_adc_get_ref_current | ( | void | ) |
Return current of ADC reference circuit.
\rst +-------------------—+--------------------------—+ | Register | BitsName | +======================+=============================+ | SNSADC_CFG | REG4 | +-------------------—+--------------------------—+ \endrst
Returned | value can be a value between: 0 ~ 7 |
Definition at line 932 of file gr55xx_ll_adc.h.
__STATIC_INLINE uint32_t ll_adc_get_ref_value | ( | void | ) |
Return ADC bias reference.
\rst +-------------------—+--------------------------—+ | Register | BitsName | +======================+=============================+ | SNSADC_CFG | REG1 | +-------------------—+--------------------------—+ \endrst
Returned | value can be one of the following values: |
Definition at line 447 of file gr55xx_ll_adc.h.
__STATIC_INLINE uint32_t ll_adc_is_enabled | ( | void | ) |
Check if ADC module is enabled.
\rst +-------------------—+--------------------------—+ | Register | BitsName | +======================+=============================+ | SNSADC_CFG | REG4 | +-------------------—+--------------------------—+ \endrst
State | of bit (1 or 0). |
Definition at line 295 of file gr55xx_ll_adc.h.
__STATIC_INLINE uint32_t ll_adc_is_enabled_clock | ( | void | ) |
Check if ADC clock is enabled.
\rst +-------------------—+--------------------------—+ | Register | BitsName | +======================+=============================+ | MSIO_PAD_CFG_1 | ADC_CLK_EN | +-------------------—+--------------------------—+ \endrst
State | of bit (1 or 0). |
Definition at line 353 of file gr55xx_ll_adc.h.
__STATIC_INLINE uint32_t ll_adc_is_enabled_mas_rst | ( | void | ) |
Check if ADC MAS_RST is enabled.
\rst +-------------------—+--------------------------—+ | Register | BitsName | +======================+=============================+ | SNSADC_CFG | REG4 | +-------------------—+--------------------------—+ \endrst
State | of bit (1 or 0). |
Definition at line 846 of file gr55xx_ll_adc.h.
__STATIC_INLINE uint32_t ll_adc_is_enabled_ofs_cal | ( | void | ) |
Check if offset calibration is enabled.
\rst +-------------------—+--------------------------—+ | Register | BitsName | +======================+=============================+ | SNSADC_CFG | REG2 | +-------------------—+--------------------------—+ \endrst
State | of bit (1 or 0). |
Definition at line 652 of file gr55xx_ll_adc.h.
__STATIC_INLINE uint32_t ll_adc_is_enabled_temp | ( | void | ) |
Check if temperature sensor is enabled.
\rst +-------------------—+--------------------------—+ | Register | BitsName | +======================+=============================+ | SNSADC_CFG | REG2 | +-------------------—+--------------------------—+ \endrst
State | of bit (1 or 0). |
Definition at line 501 of file gr55xx_ll_adc.h.
__STATIC_INLINE uint32_t ll_adc_is_enabled_vbat | ( | void | ) |
Check if Vbattery sensor is enabled.
\rst +-------------------—+--------------------------—+ | Register | BitsName | +======================+=============================+ | SNSADC_CFG | REG2 | +-------------------—+--------------------------—+ \endrst
State | of bit (1 or 0). |
Definition at line 555 of file gr55xx_ll_adc.h.
__STATIC_INLINE void ll_adc_set_channeln | ( | uint32_t | source | ) |
Set source of ADC input channelN.
\rst +-------------------—+--------------------------—+ | Register | BitsName | +======================+=============================+ | SNSADC_CFG | REG3 | +-------------------—+--------------------------—+ \endrst
source | This parameter can be one of the following values: |
None |
Definition at line 767 of file gr55xx_ll_adc.h.
__STATIC_INLINE void ll_adc_set_channelp | ( | uint32_t | source | ) |
Set source of ADC input channelP.
\rst +-------------------—+--------------------------—+ | Register | BitsName | +======================+=============================+ | SNSADC_CFG | REG3 | +-------------------—+--------------------------—+ \endrst
source | This parameter can be one of the following values: |
None |
Definition at line 716 of file gr55xx_ll_adc.h.
__STATIC_INLINE void ll_adc_set_clock | ( | uint32_t | clk | ) |
Set ADC clock source.
\rst +-------------------—+--------------------------—+ | Register | BitsName | +======================+=============================+ | MSIO_PAD_CFG_1 | ADC_CLK_SEL | +-------------------—+--------------------------—+ \endrst
clk | This parameter can be one of the following values: |
None |
Definition at line 378 of file gr55xx_ll_adc.h.
__STATIC_INLINE void ll_adc_set_dynamic_rang | ( | uint32_t | rang | ) |
Set dynamic rang of ADC.
\rst +-------------------—+--------------------------—+ | Register | BitsName | +======================+=============================+ | SNSADC_CFG | REG2 | +-------------------—+--------------------------—+ \endrst
rang | This parameter can be a value between: 1 ~ 7 |
None |
Definition at line 672 of file gr55xx_ll_adc.h.
__STATIC_INLINE void ll_adc_set_input_mode | ( | uint32_t | mode | ) |
Set ADC input mode.
\rst +-------------------—+--------------------------—+ | Register | BitsName | +======================+=============================+ | SNSADC_CFG | REG2 | +-------------------—+--------------------------—+ \endrst
mode | This parameter can be one of the following values: |
None |
Definition at line 576 of file gr55xx_ll_adc.h.
__STATIC_INLINE void ll_adc_set_ref | ( | uint32_t | source | ) |
Set source of ADC reference.
\rst +-------------------—+--------------------------—+ | Register | BitsName | +======================+=============================+ | SNSADC_CFG | REG4 | +-------------------—+--------------------------—+ \endrst
source | This parameter can be one of the following values: |
None |
Definition at line 870 of file gr55xx_ll_adc.h.
__STATIC_INLINE void ll_adc_set_ref_current | ( | uint32_t | source | ) |
Set current of ADC reference circuit.
\rst +-------------------—+--------------------------—+ | Register | BitsName | +======================+=============================+ | SNSADC_CFG | REG4 | +-------------------—+--------------------------—+ \endrst
source | This parameter can be a value between: 0 ~ 7 |
None |
Definition at line 914 of file gr55xx_ll_adc.h.
__STATIC_INLINE void ll_adc_set_ref_value | ( | uint32_t | value | ) |
Set ADC bias reference.
\rst +-------------------—+--------------------------—+ | Register | BitsName | +======================+=============================+ | SNSADC_CFG | REG1 | +-------------------—+--------------------------—+ \endrst
value | This parameter can be one of the following values: |
None |
Definition at line 426 of file gr55xx_ll_adc.h.