Zephyr API Documentation 4.4.0-rc1
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
dac_dt_spec Struct Reference

Container for DAC channel information specified in devicetree. More...

#include <zephyr/drivers/dac.h>

Data Fields

const struct devicedev
 Pointer to the device structure for the DAC driver instance used by this io-channel.
uint8_t channel_id
 DAC channel identifier used by this io-channel.
bool channel_cfg_dt_node_exists
 Flag indicating whether configuration of the associated DAC channel is provided as a child node of the corresponding DAC controller in devicetree.
struct dac_channel_cfg channel_cfg
 Configuration of the associated DAC 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.

Detailed Description

Container for DAC channel information specified in devicetree.

See also
DAC_DT_SPEC_GET_BY_IDX
DAC_DT_SPEC_GET

Field Documentation

◆ channel_cfg

struct dac_channel_cfg dac_dt_spec::channel_cfg

Configuration of the associated DAC channel specified in devicetree.

This field is valid only when channel_cfg_dt_node_exists is set to true.

◆ channel_cfg_dt_node_exists

bool dac_dt_spec::channel_cfg_dt_node_exists

Flag indicating whether configuration of the associated DAC channel is provided as a child node of the corresponding DAC controller in devicetree.

◆ channel_id

uint8_t dac_dt_spec::channel_id

DAC channel identifier used by this io-channel.

◆ dev

const struct device* dac_dt_spec::dev

Pointer to the device structure for the DAC driver instance used by this io-channel.

◆ vref_mv

uint16_t dac_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.


The documentation for this struct was generated from the following file: