Microchip® Advanced Software Framework

conf_audio_mixer.h File Reference
#include "board.h"
#include "conf_audio_player.h"
#include "pwm_dac.h"
#include "tlv320aic23b.h"
#include "tpa6130.h"
#include "usb_stream_player.h"

Macros

#define AUDIO_MIXER_ADC_OUT_OF_SAMPLE
 
#define AUDIO_MIXER_ADC_RELOAD_CALLBACK
 
#define AUDIO_MIXER_OUT_OF_SAMPLES_CALLBACK
 
#define AUDIO_MIXER_RELOAD_CALLBACK
 
#define SPEAKER_VOL_MAX   AIC23B_HP_VOL_MAX
 
#define SPEAKER_VOL_MIN   AIC23B_HP_VOL_MIN
 
#define SPEAKER_VOL_RES   1
 
DACs Bit-Masks
#define AUDIO_MIXER_DAC_PWM_DAC   1
 
#define AUDIO_MIXER_DAC_AIC23B   2
 
#define AUDIO_MIXER_DAC_ABDAC   4
 
DACs Interfaces
#define AUDIO_MIXER_DACS_INTERFACES
 
LEDs
#define AUDIO_MIXER_OVERRUN_LED   LED2
 
#define AUDIO_MIXER_UNDERRUN_LED   LED3
 

#define AUDIO_MIXER_ADC_OUT_OF_SAMPLE
Value:
{ \
}
void adc_underflow_cb(void)
Definition: device_audio_task.c:529

Referenced by audio_mixer_callback(), audio_mixer_dacs_setup_direct(), and audio_mixer_dacs_start_direct().

#define AUDIO_MIXER_ADC_RELOAD_CALLBACK
Value:
{ \
}
void adc_sample_sent_cb(void)
Definition: device_audio_task.c:534

Referenced by audio_mixer_callback(), audio_mixer_dacs_setup_direct(), and audio_mixer_dacs_start_direct().

#define AUDIO_MIXER_DAC_ABDAC   4
#define AUDIO_MIXER_DAC_AIC23B   2
#define AUDIO_MIXER_DAC_PWM_DAC   1
#define AUDIO_MIXER_DACS_INTERFACES
#define AUDIO_MIXER_OUT_OF_SAMPLES_CALLBACK
Value:
{ \
}
void dac_underflow_cb(void)
This callback function is called when the PWM DAC interrupt does not have any more audio samples (i...
Definition: usb_stream_player.c:127

Referenced by audio_mixer_callback(), audio_mixer_dacs_setup_direct(), and audio_mixer_dacs_start_direct().

#define AUDIO_MIXER_OVERRUN_LED   LED2
#define AUDIO_MIXER_RELOAD_CALLBACK
Value:
{ \
}
void dac_sample_sent_cb(void)
This callback function is called when the DAC interrupt has sent the buffer 'n-1' and switches to buf...
Definition: usb_stream_player.c:91

Referenced by audio_mixer_callback(), audio_mixer_dacs_setup_direct(), and audio_mixer_dacs_start_direct().

#define AUDIO_MIXER_UNDERRUN_LED   LED3
#define SPEAKER_VOL_MAX   AIC23B_HP_VOL_MAX
#define SPEAKER_VOL_RES   1