Struct ADC::channel_config_t
Defined in File sim_adc.h
Nested Relationships
This struct is a nested type of Class ADC.
Inheritance Relationships
Base Type
public base_reg_config_t(Struct base_reg_config_t)
Struct Documentation
-
struct channel_config_t : public base_reg_config_t
Structure for configuring one ADC channel
Public Members
-
Channel type
Channel type.
-
pin_id_t pin_p
Pin ID used for single-ended channels or as positive input for differential channels.
-
pin_id_t pin_n
Pin ID used as negative input for differential channels, unused for other channel types.
-
char per_num
Used for Channel_AcompRef, index of the ACP peripheral to get the reference value from.
-
union ADC::channel_config_t::[anonymous] [anonymous]
-
unsigned int gain
Measurement gain applied to the voltage value. Must be non-zero.
-
Channel type