Zephyr Project API 3.7.0
A Scalable Open Source RTOS
|
Container for ADC channel information specified in devicetree. More...
#include <adc.h>
Data Fields | |
const struct device * | dev |
Pointer to the device structure for the ADC driver instance used by this io-channel. | |
uint8_t | channel_id |
ADC channel identifier used by this io-channel. | |
bool | 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. | |
struct adc_channel_cfg | channel_cfg |
Configuration of the associated ADC channel specified in devicetree. | |
uint16_t | vref_mv |
Voltage of the reference selected for the channel or 0 if this value is not provided in devicetree. | |
uint8_t | resolution |
ADC resolution to be used for that channel. | |
uint8_t | oversampling |
Oversampling setting to be used for that channel. | |
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.