58void dac_enable(dac_channel_mask_t channelmask);
void dac_enable(dac_channel_mask_t channelmask)
Enables the DAC channels specified in the mask, and disables others.
Definition dac.c:85
void dac_set_analog_value(uint16_t channel, uint16_t value)
Set the analog value of the DAC.
Definition dac.c:118
void dac_enable_start_event(uint16_t channel, bool enabled)
Enables or disables event-triggered DAC conversion.
Definition dac.c:130
void dac_disable(uint16_t channel)
Disables the given DAC channel.
Definition dac.c:154
void dac_init(void)
Initializes the DAC peripheral, but does not enable it.
Definition dac.c:40
void dac_enable_empty_event_output(uint16_t channel, bool enabled)
Enables or disables the data buffer empty event output.
Definition dac.c:142
bool dac_is_enabled(void)
Checks if the DAC peripheral is currently enabled.
Definition dac.c:114