VSF Documented
Typedefs | Enumerations
adc_types.h File Reference
#include <stdint.h>

Go to the source code of this file.

Typedefs

typedef adc_oneshot_clk_src_t adc_continuous_clk_src_t
 

Enumerations

enum  adc_unit_t {
  ADC_UNIT_1 = 0 ,
  ADC_UNIT_2 = 1
}
 ADC peripheral unit. More...
 
enum  adc_channel_t {
  ADC_CHANNEL_0 = 0 ,
  ADC_CHANNEL_1 ,
  ADC_CHANNEL_2 ,
  ADC_CHANNEL_3 ,
  ADC_CHANNEL_4 ,
  ADC_CHANNEL_5 ,
  ADC_CHANNEL_6 ,
  ADC_CHANNEL_7 ,
  ADC_CHANNEL_8 ,
  ADC_CHANNEL_9
}
 ADC channel identifiers. Range is chip-dependent; channels beyond the target device's capability are rejected by the driver.
More...
 
enum  adc_bitwidth_t {
  ADC_BITWIDTH_DEFAULT = 0 ,
  ADC_BITWIDTH_9 = 9 ,
  ADC_BITWIDTH_10 = 10 ,
  ADC_BITWIDTH_11 = 11 ,
  ADC_BITWIDTH_12 = 12 ,
  ADC_BITWIDTH_13 = 13
}
 Effective resolution of a conversion result. Most targets support 12 or 13 bits; DEFAULT yields the chip's preferred value. More...
 
enum  adc_atten_t {
  ADC_ATTEN_DB_0 = 0 ,
  ADC_ATTEN_DB_2_5 = 1 ,
  ADC_ATTEN_DB_6 = 2 ,
  ADC_ATTEN_DB_11 = 3 ,
  ADC_ATTEN_DB_12 = 3
}
 Input attenuation. Accepted but interpreted only as a hint for maximum measurable voltage – this shim does not adjust gain. More...
 
enum  adc_oneshot_clk_src_t { ADC_DIGI_CLK_SRC_DEFAULT = 0 }
 ADC clock source. Accepted but ignored. More...
 
enum  adc_ulp_mode_t {
  ADC_ULP_MODE_DISABLE = 0 ,
  ADC_ULP_MODE_FSM ,
  ADC_ULP_MODE_RISCV
}
 ULP mode (not modelled by this shim). More...
 

Typedef Documentation

◆ adc_continuous_clk_src_t

Enumeration Type Documentation

◆ adc_unit_t

enum adc_unit_t

ADC peripheral unit.

Enumerator
ADC_UNIT_1 
ADC_UNIT_2 

◆ adc_channel_t

ADC channel identifiers. Range is chip-dependent; channels beyond the target device's capability are rejected by the driver.

Enumerator
ADC_CHANNEL_0 
ADC_CHANNEL_1 
ADC_CHANNEL_2 
ADC_CHANNEL_3 
ADC_CHANNEL_4 
ADC_CHANNEL_5 
ADC_CHANNEL_6 
ADC_CHANNEL_7 
ADC_CHANNEL_8 
ADC_CHANNEL_9 

◆ adc_bitwidth_t

Effective resolution of a conversion result. Most targets support 12 or 13 bits; DEFAULT yields the chip's preferred value.

Enumerator
ADC_BITWIDTH_DEFAULT 
ADC_BITWIDTH_9 
ADC_BITWIDTH_10 
ADC_BITWIDTH_11 
ADC_BITWIDTH_12 
ADC_BITWIDTH_13 

◆ adc_atten_t

Input attenuation. Accepted but interpreted only as a hint for maximum measurable voltage – this shim does not adjust gain.

Enumerator
ADC_ATTEN_DB_0 
ADC_ATTEN_DB_2_5 
ADC_ATTEN_DB_6 
ADC_ATTEN_DB_11 

Deprecated in v5.2, alias of DB_12.

ADC_ATTEN_DB_12 

◆ adc_oneshot_clk_src_t

ADC clock source. Accepted but ignored.

Enumerator
ADC_DIGI_CLK_SRC_DEFAULT 

◆ adc_ulp_mode_t

ULP mode (not modelled by this shim).

Enumerator
ADC_ULP_MODE_DISABLE 
ADC_ULP_MODE_FSM 
ADC_ULP_MODE_RISCV 
Generated from commit: vsfteam/vsf@015f4d1