Atmel Software Framework

pwm_dac.h File Reference
#include <stddef.h>
#include "compiler.h"
#include "conf_pwm_dac.h"

Functions

void pwm_dac_decrease_volume (void)
 Decreases the output volume of the DAC. More...
 
void pwm_dac_flush (void)
 Flushes the sample buffer being output to the DAC. More...
 
uint8_t pwm_dac_get_volume (void)
 Return the current volume. More...
 
void pwm_dac_increase_volume (void)
 Increases the output volume of the DAC. More...
 
bool pwm_dac_is_volume_boosted (void)
 Returns the state of the boost mode of the DAC. More...
 
bool pwm_dac_is_volume_muted (void)
 Returns the state of the mute mode of the DAC. More...
 
void pwm_dac_mute (bool mute)
 Mute audio if mute set to true. More...
 
bool pwm_dac_output (void *sample_buffer, size_t sample_length)
 Outputs a sample buffer to the DAC. More...
 
void pwm_dac_set_volume (uint8_t volume)
 Set the current volume. More...
 
void pwm_dac_setup (uint32_t sample_rate_hz, uint8_t num_channels, uint8_t bits_per_sample, bool swap_channels, void(*callback)(uint32_t arg), uint32_t callback_opt, uint32_t pba_hz)
 Sets the DAC up with new settings. More...
 
void pwm_dac_start (uint32_t sample_rate_hz, uint8_t num_channels, uint8_t bits_per_sample, bool swap_channels, void(*callback)(uint32_t arg), uint32_t callback_opt, uint32_t pba_hz)
 Starts the DAC. More...
 
void pwm_dac_stop (void)
 Stops the DAC. More...