Atmel Software Framework

host_audio_task.h File Reference
#include "conf_usb.h"
#include "usb_host_task.h"

Data Structures

struct  cs_feature_unit_t
 
struct  host_audio_task_data_t
 

Macros

#define Is_host_audio_configured()   (audio_connected && !Is_host_suspended())
 
#define MAX_BMA_CONTROLS   4
 Define for each 'feature unit' the max numbers of bmControls. More...
 
#define MAX_FEATURE_UNITS   3
 Define for each 'feature unit' the max numbers of bmaControls One of them is used by the microphone! More...
 
#define MUTE_OFF   false
 
#define MUTE_ON   true
 

Functions

uint16_t host_audio_get_max (uint16_t unit, uint16_t channel_number)
 This function returns the 'MAX setting' feature of a particular unit. More...
 
void host_audio_set_alt_interface (void)
 
void host_audio_set_cur (uint16_t unit, uint16_t channel_number, uint16_t volume)
 This function set the 'current setting' feature of a particular unit. More...
 
void host_audio_set_cur_mute (uint16_t unit, bool cs_mute)
 This function controls the Mute feature of a particular unit. More...
 
void host_audio_task (void)
 This function manages the host audio task. More...
 
void host_audio_task_init (void)
 This function initializes the host audio task. More...
 
void host_set_sampling_rate (uint16_t endpoint, uint32_t sampling_rate)
 This function selects one of the sampling rate of the streaming interface. More...
 
void host_sof_action (void)
 host_sof_action More...
 

Variables

volatile bool audio_connected
 
host_audio_task_data_thost_audio_task_data
 

#define Is_host_audio_configured ( )    (audio_connected && !Is_host_suspended())
#define MAX_BMA_CONTROLS   4

Define for each 'feature unit' the max numbers of bmControls.

Referenced by host_user_check_class().

#define MAX_FEATURE_UNITS   3

Define for each 'feature unit' the max numbers of bmaControls One of them is used by the microphone!

#define MUTE_OFF   false
#define MUTE_ON   true

uint16_t host_audio_get_max ( uint16_t  unit,
uint16_t  channel_number 
)
void host_audio_set_alt_interface ( void  )
void host_audio_set_cur ( uint16_t  unit,
uint16_t  channel_number,
uint16_t  volume 
)
void host_audio_set_cur_mute ( uint16_t  unit,
bool  cs_mute 
)
void host_audio_task_init ( void  )

This function initializes the host audio task.

References host_audio_task(), NULL, player_init(), sof_cnt, and xTaskCreate.

Referenced by main().

void host_set_sampling_rate ( uint16_t  endpoint,
uint32_t  sampling_rate 
)

host_audio_task_data_t* host_audio_task_data

Referenced by host_user_check_class().