| 
    Zephyr Project API
    3.4.0
    
   A Scalable Open Source RTOS 
   | 
 
Container for ADC channel information specified in devicetree. More...
#include <adc.h>
Data Fields | |
| const struct device * | dev | 
| uint8_t | channel_id | 
| bool | channel_cfg_dt_node_exists | 
| struct adc_channel_cfg | channel_cfg | 
| uint16_t | vref_mv | 
| uint8_t | resolution | 
| uint8_t | oversampling | 
Container for ADC channel information specified in devicetree.
| struct adc_channel_cfg adc_dt_spec::channel_cfg | 
Configuration of the associated ADC channel specified in devicetree. This field is valid only when channel_cfg_dt_node_exists is set to true.
| bool adc_dt_spec::channel_cfg_dt_node_exists | 
Flag indicating whether configuration of the associated ADC channel is provided as a child node of the corresponding ADC controller in devicetree.
| uint8_t adc_dt_spec::channel_id | 
ADC channel identifier used by this io-channel.
| const struct device* adc_dt_spec::dev | 
Pointer to the device structure for the ADC driver instance used by this io-channel.
| uint8_t adc_dt_spec::oversampling | 
Oversampling setting to be used for that channel. This field is valid only when channel_cfg_dt_node_exists is set to true.
| uint8_t adc_dt_spec::resolution | 
ADC resolution to be used for that channel. This field is valid only when channel_cfg_dt_node_exists is set to true.
| uint16_t adc_dt_spec::vref_mv | 
Voltage of the reference selected for the channel or 0 if this value is not provided in devicetree. This field is valid only when channel_cfg_dt_node_exists is set to true.