Atmel Software Framework

 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AUDIO - MS3 Audio Codec

Audio Codec Software Driver for the MobileSound 3 (MS3) from Bang & Olufsen ICEPower configured to be used with the external CS2200 clock synthesizer.

Macros

#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)
 
#define MS3_VOL_MAX   0xA8
 
#define MS3_VOL_MIN   0x30
 
#define MS3_VOL_STEP   3
 

Functions

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

Referenced by ms3_get_volume(), and ms3_set_volume().

#define MS3_HP_VOL_R   0x0D

Referenced by ms3_get_volume(), and ms3_set_volume().

#define MS3_MUTE_VOL_CTRL   0x0E

Referenced by ms3_dac_is_volume_muted().

#define MS3_SP_VOL_L   0x0A

Referenced by ms3_set_volume().

#define MS3_SP_VOL_R   0x0B

Referenced by ms3_set_volume().

#define MS3_TWI   (&AVR32_TWI)

Referenced by ms3_read_reg(), and ms3_write_reg().

#define MS3_TWI_ADDRESS   (0xDC >> 1)

Referenced by ms3_read_reg(), and ms3_write_reg().

#define MS3_VOL_MAX   0xA8
#define MS3_VOL_MIN   0x30
#define MS3_VOL_STEP   3

void ms3_dac_decrease_volume ( 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_set_volume ( U8  volume)
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 
)