main.c
Default mainpageusb-device-composite-cdcaudio-projectmain.c
Description Overview
Methods Brief description
 AUDDSpeakerChannel_MuteChanged Invoked when an audio channel get muted or unmuted.
 main Initializes drivers and start the USB composite device.
 USBDCallbacks_Resumed Invoked when the USB device leaves the Suspended state.
 USBDCallbacks_Suspended Invoked when the USB device gets suspended. By default, turns off all LEDs.
Defines  
 BUFFER_NUMBER Number of available audio buffers.
 DAC_DELAY Delay in ms for starting the DAC transmission after a frame received.
 DATABUFFERSIZE Size in bytes of the buffer used for reading data from the USB & USART.
 STATE_IDLE Use for power management.
 STATE_RESUME The USB device is in resume state.
 STATE_SUSPEND The USB device is in suspend state.
Attributes  
 USBState State of USB, for suspend and resume.