46 DAC_MCR(dac) &= ~DAC_MCR_MODE1_UNBUFFERED;
49 DAC_MCR(dac) &= ~DAC_MCR_MODE2_UNBUFFERED;
122 return (
DAC_SR(dac) & mask) != 0;
void dac_wait_on_ready(uint32_t dac, int channel)
Wait until DAC channel is ready to receive data.
void dac_set_mode(uint32_t dac, uint32_t mode)
DAC Channel Output Mode.
void dac_buffer_disable(uint32_t dac, int channel)
DAC Channel Output Buffer Disable.
bool dac_is_ready(uint32_t dac, int channel)
Check if DAC channel is ready to receive data.
void dac_buffer_enable(uint32_t dac, int channel)
DAC Channel Output Buffer Enable.
void dac_set_high_frequency_mode(uint32_t dac, uint32_t hfsel)
High frequency interface mode selection.
#define DAC_MCR_HFSEL_MASK
#define DAC_MCR_HFSEL_SHIFT
#define DAC_MCR_MODE2_UNBUFFERED
#define DAC_MCR_MODE1_UNBUFFERED
#define DAC_SR(dac)
DAC status register.
#define DAC_MCR(dac)
DAC mode control register (DAC_MCR)
#define DAC_SR_DAC2RDY
DAC channel2 ready status bit.
#define DAC_SR_DAC1RDY
DAC channel1 ready status bit.