#include "board.h"
#include "USBD_LEDs.h"
#include "USBD_Config.h"
#include "AUDDSpeakerPhoneDriver.h"
#include <stdio.h>
#include <stdbool.h>
#include <stdint.h>
Go to the source code of this file.
Detailed Description
This file contains all the specific code for the usb_audio_looprec example.
Definition in file main.c.
Define Documentation
Number of available audio buffers.
Definition at line 122 of file main.c.
Value:Size of one buffer in bytes.
Definition at line 124 of file main.c.
Function Documentation
void AUDDSpeakerPhoneDriver_MuteChanged |
( |
uint8_t |
mic, |
|
|
uint8_t |
channel, |
|
|
uint8_t |
muted | |
|
) |
| | |
Invoked when an audio channel get muted or unmuted. Mutes/unmutes the channel at the DAC level.
- Parameters:
-
| mic | Microphone/Speaker stream changed. |
| channel | Channel number that changed. |
| muted | Indicates the new mute status of the channel. |
Definition at line 238 of file main.c.
void AUDDSpeakerPhoneDriver_StreamSettingChanged |
( |
uint8_t |
mic, |
|
|
uint8_t |
newSetting | |
|
) |
| | |
Invoked when an audio streaming interface setting changed. Audio stream is automatically reset. Actually control streaming rate.
- Parameters:
-
| mic | Microphone/Speaker stream changed. |
| newSetting | New stream (interface) setting. |
Definition at line 259 of file main.c.
Data buffers for receiving audio frames from the USB host.
Definition at line 139 of file main.c.
usb_audio_looprec Application entry point.
Starts the driver and waits for an audio input stream to forward to the DAC.
Definition at line 300 of file main.c.
Invoked whenever a SETUP request is received from the host. Forwards the request to the standard handler.
Definition at line 226 of file main.c.
void USBDDriverCallbacks_ConfigurationChanged |
( |
unsigned char |
cfgnum |
) |
|
Invoked when the configuration of the device changes. Parse used endpoints.
- Parameters:
-
| cfgnum | New configuration number. |
Definition at line 205 of file main.c.
void USBDDriverCallbacks_InterfaceSettingChanged |
( |
unsigned char |
interface, |
|
|
unsigned char |
setting | |
|
) |
| | |
Invoked whenever the active setting of an interface is changed by the host. Reset streaming interface.
- Parameters:
-
| interface | Interface number. |
| setting | Newly active setting. |
Definition at line 216 of file main.c.