13void DAC_InitDMA(
u32 sample_rate_hz);
16void DAC_DeinitDMA(
void);
21void DAC_PlayDMA(
const u16 *
const pcm_samples,
u32 sample_count);
23void DAC_StopDMA(
void);
bool DAC_BUZIsPlaying(void)
void DAC_BUZSetVolume(u8 volume)
Sets the volume of the buzzer.
void DAC_BUZInit(u8 timer_a, u8 timer_b, u8 int_priority)
Initializes the DAC peripheral.
void DAC_BUZPlay(DAC_Tone tone, u16 bpm)
Plays the given note for the given duration.