#include <USBRequests.h>
#include <HIDDescriptors.h>
#include <AUDDescriptors.h>
#include "USBD.h"
#include <USBDDriver.h>
Go to the source code of this file.
Data Structures | |
struct | _AUDHeaderDescriptor1 |
struct | _AUDFeatureUnitDescriptor3 |
struct | _AUDDSpeakerDriverAudioControlDescriptors |
struct | _AUDFormatTypeOneDescriptor1 |
struct | _HidAuddDriverConfigurationDescriptors |
Defines | |
#define | HIDAUDDDriverDescriptors_NUMINTERFACE 3 |
#define | HIDAUDDDriverDescriptors_HID_INTERFACE 0 |
#define | HIDAUDDDriverDescriptors_AUD_INTERFACE 1 |
Functions | |
struct _AUDHeaderDescriptor1 | __attribute__ ((__packed__)) AUDHeaderDescriptor1 |
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) |
Variables | |
AUDHeaderDescriptor | header |
unsigned char | bInterface0 |
AUDFeatureUnitDescriptor | feature |
unsigned char | bmaControls [3] |
unsigned char | iFeature |
AUDInputTerminalDescriptor | input |
AUDOutputTerminalDescriptor | output |
AUDFormatTypeOneDescriptor | formatType |
unsigned char | tSamFreq [3] |
USBConfigurationDescriptor | configuration |
USBInterfaceDescriptor | hidInterface |
HIDDescriptor1 | hid |
USBEndpointDescriptor | hidInterruptIn |
USBEndpointDescriptor | hidInterruptOut |
USBInterfaceAssociationDescriptor | audIAD |
USBInterfaceDescriptor | audInterface |
AUDDSpeakerDriverAudioControlDescriptors | audControl |
USBInterfaceDescriptor | audStreamingOutNoIsochronous |
USBInterfaceDescriptor | audStreamingOut |
AUDStreamingInterfaceDescriptor | audStreamingOutClass |
AUDFormatTypeOneDescriptor1 | audStreamingOutFormatType |
AUDEndpointDescriptor | audStreamingOutEndpoint |
AUDDataEndpointDescriptor | audStreamingOutDataEndpoint |
Definitions and methods for USB composite device implement.
Definition in file HIDAUDDDriver.h.
AUDDSpeakerDriverAudioControlDescriptors audControl |
Descriptors for the audio control interface.
Definition at line 196 of file HIDAUDDDriver.h.
USBInterfaceAssociationDescriptor audIAD |
Audio IAD
Definition at line 192 of file HIDAUDDDriver.h.
USBInterfaceDescriptor audInterface |
Audio control interface.
Definition at line 194 of file HIDAUDDDriver.h.
USBInterfaceDescriptor audStreamingOut |
Streaming out interface descriptor.
Definition at line 201 of file HIDAUDDDriver.h.
AUDStreamingInterfaceDescriptor audStreamingOutClass |
Audio class descriptor for the streaming out interface.
Definition at line 203 of file HIDAUDDDriver.h.
AUDDataEndpointDescriptor audStreamingOutDataEndpoint |
Audio class descriptor for the streaming out endpoint.
Definition at line 209 of file HIDAUDDDriver.h.
AUDEndpointDescriptor audStreamingOutEndpoint |
Streaming out endpoint descriptor.
Definition at line 207 of file HIDAUDDDriver.h.
AUDFormatTypeOneDescriptor1 audStreamingOutFormatType |
Stream format descriptor.
Definition at line 205 of file HIDAUDDDriver.h.
USBInterfaceDescriptor audStreamingOutNoIsochronous |
Streaming out interface descriptor (with no endpoint, required).
Definition at line 199 of file HIDAUDDDriver.h.
unsigned char bInterface0 |
Id of the first grouped interface.
Definition at line 94 of file HIDAUDDDriver.h.
unsigned char bmaControls[3] |
Available controls for each channel.
Definition at line 108 of file HIDAUDDDriver.h.
USBConfigurationDescriptor configuration |
Standard configuration descriptor.
Definition at line 178 of file HIDAUDDDriver.h.
AUDFeatureUnitDescriptor3 feature |
Feature unit descriptor.
Definition at line 106 of file HIDAUDDDriver.h.
AUDFormatTypeOneDescriptor formatType |
Format type I descriptor.
Definition at line 135 of file HIDAUDDDriver.h.
AUDHeaderDescriptor1 header |
Header descriptor.
Header descriptor (with one slave interface).
Definition at line 92 of file HIDAUDDDriver.h.
HIDDescriptor1 hid |
HID descriptor
Definition at line 184 of file HIDAUDDDriver.h.
USBInterfaceDescriptor hidInterface |
HID interface.
Definition at line 182 of file HIDAUDDDriver.h.
USBEndpointDescriptor hidInterruptIn |
HID interrupt IN
Definition at line 186 of file HIDAUDDDriver.h.
USBEndpointDescriptor hidInterruptOut |
HID interrupt OUT
Definition at line 188 of file HIDAUDDDriver.h.
unsigned char iFeature |
Index of a string descriptor for the feature unit.
Definition at line 110 of file HIDAUDDDriver.h.
AUDInputTerminalDescriptor input |
Input terminal descriptor.
Definition at line 125 of file HIDAUDDDriver.h.
AUDOutputTerminalDescriptor output |
Output terminal descriptor.
Definition at line 127 of file HIDAUDDDriver.h.
unsigned char tSamFreq[3] |
Sampling frequency in Hz.
Definition at line 137 of file HIDAUDDDriver.h.