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_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.
Register|BitsName --------|-------- SNSADC_CFG | REG4
None |
Definition at line 292 of file gr55xx_ll_adc.h.
__STATIC_INLINE void ll_adc_disable_clock | ( | void | ) |
Disable ADC clock.
Register|BitsName --------|-------- MSIO_PAD_CFG_1 | ADC_CLK_EN
None |
Definition at line 324 of file gr55xx_ll_adc.h.
__STATIC_INLINE void ll_adc_disable_mas_rst | ( | void | ) |
Disable ADC MAS_RST.
Register|BitsName --------|-------- SNSADC_CFG | REG4
None |
Definition at line 771 of file gr55xx_ll_adc.h.
__STATIC_INLINE void ll_adc_disable_ofs_cal | ( | void | ) |
Disable offset calibration.
Register|BitsName --------|-------- SNSADC_CFG | REG2
None |
Definition at line 595 of file gr55xx_ll_adc.h.
__STATIC_INLINE void ll_adc_disable_temp | ( | void | ) |
Disable temperature sensor.
Register|BitsName --------|-------- SNSADC_CFG | REG2
None |
Definition at line 460 of file gr55xx_ll_adc.h.
__STATIC_INLINE void ll_adc_disable_vbat | ( | void | ) |
Disable Vbattery sensor.
Register|BitsName --------|-------- SNSADC_CFG | REG2
None |
Definition at line 508 of file gr55xx_ll_adc.h.
__STATIC_INLINE void ll_adc_enable | ( | void | ) |
Enable ADC module.
Register|BitsName --------|-------- SNSADC_CFG | REG4
None |
Definition at line 276 of file gr55xx_ll_adc.h.
__STATIC_INLINE void ll_adc_enable_mas_rst | ( | void | ) |
Enable ADC MAS_RST.
Register|BitsName --------|-------- SNSADC_CFG | REG4
None |
Definition at line 755 of file gr55xx_ll_adc.h.
__STATIC_INLINE void ll_adc_enable_ofs_cal | ( | void | ) |
Enable offset calibration.
Register|BitsName --------|-------- SNSADC_CFG | REG2
None |
Definition at line 579 of file gr55xx_ll_adc.h.
__STATIC_INLINE void ll_adc_enable_temp | ( | void | ) |
Enable temperature sensor.
Register|BitsName --------|-------- SNSADC_CFG | REG2
None |
Definition at line 444 of file gr55xx_ll_adc.h.
__STATIC_INLINE void ll_adc_enable_vbat | ( | void | ) |
Enable Vbattery sensor.
Register|BitsName --------|-------- SNSADC_CFG | REG2
None |
Definition at line 492 of file gr55xx_ll_adc.h.
__STATIC_INLINE uint32_t ll_adc_get_channeln | ( | void | ) |
Return source of ADC input channelN.
Register|BitsName --------|-------- SNSADC_CFG | REG3
Returned | value can be one of the following values: |
Definition at line 739 of file gr55xx_ll_adc.h.
__STATIC_INLINE uint32_t ll_adc_get_channelp | ( | void | ) |
Return source of ADC input channelP.
Register|BitsName --------|-------- SNSADC_CFG | REG3
Returned | value can be one of the following values: |
Definition at line 692 of file gr55xx_ll_adc.h.
__STATIC_INLINE uint32_t ll_adc_get_clock | ( | void | ) |
Return source for ADC clock.
Register|BitsName --------|-------- MSIO_PAD_CFG_1 | ADC_CLK_SEL
Returned | value can be one of the following values: |
Definition at line 387 of file gr55xx_ll_adc.h.
__STATIC_INLINE uint32_t ll_adc_get_dynamic_rang | ( | void | ) |
Return ADC dynamic rang.
Register|BitsName --------|-------- SNSADC_CFG | REG2
Returned | value can be a value between: 1 ~ 7 |
Definition at line 645 of file gr55xx_ll_adc.h.
__STATIC_INLINE uint32_t ll_adc_get_input_mode | ( | void | ) |
Return ADC input mode.
Register|BitsName --------|-------- SNSADC_CFG | REG2
Returned | value can be one of the following values: |
Definition at line 561 of file gr55xx_ll_adc.h.
__STATIC_INLINE uint32_t ll_adc_get_ref | ( | void | ) |
Return source of ADC reference.
Register|BitsName --------|-------- SNSADC_CFG | REG4
Returned | value can be one of the following values: |
Definition at line 830 of file gr55xx_ll_adc.h.
__STATIC_INLINE uint32_t ll_adc_get_ref_current | ( | void | ) |
Return current of ADC reference circuit.
Register|BitsName --------|-------- SNSADC_CFG | REG4
Returned | value can be a value between: 0 ~ 7 |
Definition at line 865 of file gr55xx_ll_adc.h.
__STATIC_INLINE uint32_t ll_adc_get_ref_value | ( | void | ) |
Return ADC bias reference.
Register|BitsName --------|-------- SNSADC_CFG | REG1
Returned | value can be one of the following values: |
Definition at line 428 of file gr55xx_ll_adc.h.
__STATIC_INLINE uint32_t ll_adc_is_enabled | ( | void | ) |
Check if ADC module is enabled.
Register|BitsName --------|-------- SNSADC_CFG | REG4
State | of bit (1 or 0). |
Definition at line 308 of file gr55xx_ll_adc.h.
__STATIC_INLINE uint32_t ll_adc_is_enabled_clock | ( | void | ) |
Check if ADC clock is enabled.
Register|BitsName --------|-------- MSIO_PAD_CFG_1 | ADC_CLK_EN
State | of bit (1 or 0). |
Definition at line 340 of file gr55xx_ll_adc.h.
__STATIC_INLINE uint32_t ll_adc_is_enabled_mas_rst | ( | void | ) |
Check if ADC MAS_RST is enabled.
Register|BitsName --------|-------- SNSADC_CFG | REG4
State | of bit (1 or 0). |
Definition at line 787 of file gr55xx_ll_adc.h.
__STATIC_INLINE uint32_t ll_adc_is_enabled_ofs_cal | ( | void | ) |
Check if offset calibration is enabled.
Register|BitsName --------|-------- SNSADC_CFG | REG2
State | of bit (1 or 0). |
Definition at line 611 of file gr55xx_ll_adc.h.
__STATIC_INLINE uint32_t ll_adc_is_enabled_temp | ( | void | ) |
Check if temperature sensor is enabled.
Register|BitsName --------|-------- SNSADC_CFG | REG2
State | of bit (1 or 0). |
Definition at line 476 of file gr55xx_ll_adc.h.
__STATIC_INLINE uint32_t ll_adc_is_enabled_vbat | ( | void | ) |
Check if Vbattery sensor is enabled.
Register|BitsName --------|-------- SNSADC_CFG | REG2
State | of bit (1 or 0). |
Definition at line 524 of file gr55xx_ll_adc.h.
__STATIC_INLINE void ll_adc_set_channeln | ( | uint32_t | source | ) |
Set source of ADC input channelN.
Register|BitsName --------|-------- SNSADC_CFG | REG3
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_channelp | ( | uint32_t | source | ) |
Set source of ADC input channelP.
Register|BitsName --------|-------- SNSADC_CFG | REG3
source | This parameter can be one of the following values: |
None |
Definition at line 669 of file gr55xx_ll_adc.h.
__STATIC_INLINE void ll_adc_set_clock | ( | uint32_t | clk | ) |
Set ADC clock source.
Register|BitsName --------|-------- MSIO_PAD_CFG_1 | ADC_CLK_SEL
clk | This parameter can be one of the following values: |
None |
Definition at line 364 of file gr55xx_ll_adc.h.
__STATIC_INLINE void ll_adc_set_dynamic_rang | ( | uint32_t | rang | ) |
Set dynamic rang of ADC.
Register|BitsName --------|-------- SNSADC_CFG | REG2
rang | This parameter can be a value between: 1 ~ 7 |
None |
Definition at line 629 of file gr55xx_ll_adc.h.
__STATIC_INLINE void ll_adc_set_input_mode | ( | uint32_t | mode | ) |
Set ADC input mode.
Register|BitsName --------|-------- SNSADC_CFG | REG2
mode | This parameter can be one of the following values: |
None |
Definition at line 543 of file gr55xx_ll_adc.h.
__STATIC_INLINE void ll_adc_set_ref | ( | uint32_t | source | ) |
Set source of ADC reference.
Register|BitsName --------|-------- SNSADC_CFG | REG4
source | This parameter can be one of the following values: |
None |
Definition at line 809 of file gr55xx_ll_adc.h.
__STATIC_INLINE void ll_adc_set_ref_current | ( | uint32_t | source | ) |
Set current of ADC reference circuit.
Register|BitsName --------|-------- SNSADC_CFG | REG4
source | This parameter can be a value between: 0 ~ 7 |
None |
Definition at line 849 of file gr55xx_ll_adc.h.
__STATIC_INLINE void ll_adc_set_ref_value | ( | uint32_t | value | ) |
Set ADC bias reference.
Register|BitsName --------|-------- SNSADC_CFG | REG1
value | This parameter can be one of the following values: |
None |
Definition at line 408 of file gr55xx_ll_adc.h.