SAMV71 Xplained Ultra Software Package 1.5

Usbd_composite_hidaud
[USB Stack Device]

Collaboration diagram for Usbd_composite_hidaud:

Data Structures

struct  _AUDHeaderDescriptor1
struct  _AUDFeatureUnitDescriptor3
struct  _AUDDSpeakerDriverAudioControlDescriptors
struct  _AUDFormatTypeOneDescriptor1
struct  _HidAuddDriverConfigurationDescriptors

Modules

 USB HID(Keyboard) + AUD(Speaker) Definitions

Functions

void HIDAUDDDriver_Initialize (const USBDDriverDescriptors *pDescriptors)
void HIDAUDDDriver_ConfigurationChangedHandler (uint8_t cfgnum)
void HIDAUDDDriver_InterfaceSettingChangedHandler (uint8_t interface, uint8_t setting)
void HIDAUDDDriver_RequestHandler (const USBGenericRequest *request)
struct _AUDHeaderDescriptor1 __attribute__ ((__packed__)) AUDHeaderDescriptor1

Function Documentation

struct _AUDHeaderDescriptor1 __attribute__ ( (__packed__)   ) 

Structure of audio header descriptor

Feature unit descriptor with 3 channel controls (master, right, left).

List of descriptors for detailing the audio control interface of a device using a USB audio speaker driver.

Format type I descriptor with one discrete sampling frequency.

void HIDAUDDDriver_ConfigurationChangedHandler ( uint8_t  cfgnum  ) 

Invoked whenever the configuration value of a device is changed by the host

Parameters:
cfgnum Configuration number.
void HIDAUDDDriver_Initialize ( const USBDDriverDescriptors pDescriptors  ) 

Initializes the USB device composite device driver.

void HIDAUDDDriver_InterfaceSettingChangedHandler ( uint8_t  interface,
uint8_t  setting 
)

Invoked whenever the active setting of an interface is changed by the host. Changes the status of the third LED accordingly.

Parameters:
interface Interface number.
setting Newly active setting.
void HIDAUDDDriver_RequestHandler ( const USBGenericRequest request  ) 

Handles composite-specific USB requests sent by the host, and forwards standard ones to the USB device driver.

Parameters:
request Pointer to a USBGenericRequest instance.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines