53#include "periph_cpu.h"
54#include "periph_conf.h"
79#define DAC_UNDEF (UINT_FAST8_MAX)
86#define DAC_LINE(x) (x)
142#define DAC_PLAY_LOOPED (1 << 0)
uint_fast8_t dac_t
Define default DAC type identifier.
void dac_set(dac_t line, uint16_t value)
Write a value onto DAC Device on a given Channel.
void dac_poweroff(dac_t line)
Disable the given DAC line.
int dac_play_setup(dac_t line, dma_cb_t cb, void *arg)
Configure DAC line for playing sample buffer.
uint32_t dac_get_freq(void)
Get the sample rate of the DAC in Hz.
void dac_play_teardown(dac_t line)
Release DAC line.
int8_t dac_init(dac_t line)
Initialize the given DAC line.
void dac_poweron(dac_t line)
Enable the given DAC line.
void dac_play(dac_t line, const uint16_t *buf, size_t len, uint8_t flags)
Start playing sample buffer.
void(* dma_cb_t)(void *arg)
Signature of event callback functions triggered from interrupts.