Lines Matching full:dac
7 * @brief DAC driver for Atmel SAM MCU family.
20 #include <zephyr/drivers/dac.h>
57 Dacc *const dac = dev_cfg->regs; in dac_sam_isr() local
61 int_stat = dac->DACC_ISR & dac->DACC_IMR; in dac_sam_isr()
65 dac->DACC_IDR = DACC_IDR_TXRDY0; in dac_sam_isr()
70 dac->DACC_IDR = DACC_IDR_TXRDY1; in dac_sam_isr()
79 Dacc *const dac = dev_cfg->regs; in dac_sam_channel_setup() local
93 dac->DACC_CHER = DACC_CHER_CH0 << channel_cfg->channel_id; in dac_sam_channel_setup()
103 Dacc *const dac = dev_cfg->regs; in dac_sam_write_value() local
109 if (dac->DACC_IMR & (DACC_IMR_TXRDY0 << channel)) { in dac_sam_write_value()
122 dac->DACC_CDR[channel] = DACC_CDR_DATA0(value); in dac_sam_write_value()
125 dac->DACC_IER = DACC_IER_TXRDY0 << channel; in dac_sam_write_value()
134 Dacc *const dac = dev_cfg->regs; in dac_sam_init() local
145 /* Enable DAC clock in PMC */ in dac_sam_init()
155 dac->DACC_MR = DACC_MR_PRESCALER(dev_cfg->prescaler); in dac_sam_init()
165 static DEVICE_API(dac, dac_sam_driver_api) = {