Audio Codec Software Driver for the MobileSound 3 (MS3) from Bang & Olufsen ICEPower configured to be used with the external CS2200 clock synthesizer.
|
void | ms3_dac_decrease_volume (void) |
|
void | ms3_dac_flush (void) |
|
U8 | ms3_dac_get_volume (void) |
|
void | ms3_dac_increase_volume (void) |
|
bool | ms3_dac_is_volume_boosted (void) |
|
bool | ms3_dac_is_volume_muted (void) |
|
void | ms3_dac_mute (bool mute) |
|
bool | ms3_dac_output (void *sample_buffer, size_t sample_length) |
|
void | ms3_dac_set_volume (U8 volume) |
|
void | ms3_dac_setup (U32 sample_rate_hz, U8 num_channels, U8 bits_per_sample, bool swap_channels, void(*callback)(U32 arg), U32 callback_opt, U32 pba_hz) |
|
void | ms3_dac_start (U32 sample_rate_hz, U8 num_channels, U8 bits_per_sample, bool swap_channels, void(*callback)(U32 arg), U32 callback_opt, U32 pba_hz) |
|
void | ms3_dac_stop (void) |
|
#define MS3_HP_VOL_L 0x0C |
#define MS3_HP_VOL_R 0x0D |
#define MS3_LEFT_CHANNEL 1 |
#define MS3_MUTE_VOL_CTRL 0x0E |
#define MS3_RIGHT_CHANNEL 2 |
#define MS3_SP_VOL_L 0x0A |
#define MS3_SP_VOL_R 0x0B |
#define MS3_TWI (&AVR32_TWI) |
#define MS3_TWI_ADDRESS (0xDC >> 1) |
void ms3_dac_decrease_volume |
( |
void |
| ) |
|
void ms3_dac_flush |
( |
void |
| ) |
|
U8 ms3_dac_get_volume |
( |
void |
| ) |
|
void ms3_dac_increase_volume |
( |
void |
| ) |
|
bool ms3_dac_is_volume_boosted |
( |
void |
| ) |
|
bool ms3_dac_is_volume_muted |
( |
void |
| ) |
|
void ms3_dac_mute |
( |
bool |
mute | ) |
|
bool ms3_dac_output |
( |
void * |
sample_buffer, |
|
|
size_t |
sample_length |
|
) |
| |
References AUDIO_DAC_OUT_OF_SAMPLE_CB, AUDIO_DAC_RELOAD_CB, Disable_global_interrupt, Enable_global_interrupt, gpio_get_pin_value(), i, Is_global_interrupt_enabled, ms3_output_params, MS3_SSC_TX_FRAME_SYNC_PIN, MS3_SSC_TX_PDCA_CHANNEL, pdca_enable_interrupt_reload_counter_zero(), pdca_enable_interrupt_transfer_complete(), pdca_get_reload_size(), pdca_get_transfer_status(), pdca_reload_channel(), PDCA_TRANSFER_COMPLETE, PDCA_TRANSFER_COUNTER_RELOAD_IS_ZERO, and sample_buffer.
void ms3_dac_set_volume |
( |
U8 |
volume | ) |
|
void ms3_dac_setup |
( |
U32 |
sample_rate_hz, |
|
|
U8 |
num_channels, |
|
|
U8 |
bits_per_sample, |
|
|
bool |
swap_channels, |
|
|
void(*)(U32 arg) |
callback, |
|
|
U32 |
callback_opt, |
|
|
U32 |
pba_hz |
|
) |
| |
References _32_BITS_RATIO, pdca_channel_options_t::addr, callback, callback_opt, CS2200_FREF, cs2200_freq_clk_out(), ms3_output_params, MS3_SSC_TX_PDCA_CHANNEL, NULL, num_channels, pdca_enable(), pdca_init_channel(), PDCA_TRANSFER_SIZE_BYTE, PDCA_TRANSFER_SIZE_HALF_WORD, PDCA_TRANSFER_SIZE_WORD, and usb_stream_resync_frequency.
Referenced by ms3_dac_start().
void ms3_dac_start |
( |
U32 |
sample_rate_hz, |
|
|
U8 |
num_channels, |
|
|
U8 |
bits_per_sample, |
|
|
bool |
swap_channels, |
|
|
void(*)(U32 arg) |
callback, |
|
|
U32 |
callback_opt, |
|
|
U32 |
pba_hz |
|
) |
| |
void ms3_dac_stop |
( |
void |
| ) |
|