![]() |
LPCOpen Platform
LPCOpen Platform for NXP LPC Microcontrollers
|
#include "AudioInput.h"
Go to the source code of this file.
Macros | |
#define | AUDIO_MAX_SAMPLE_FREQ 48000 |
Functions | |
PRAGMA_ALIGN_4 uint16_t sample_buffer[512] | ATTR_ALIGNED (4) |
uint32_t | CALLBACK_HAL_GetISOBufferAddress (const uint32_t EPNum, uint32_t *packet_size) |
int | main (void) |
void | SetupHardware (void) |
Hardware setup event callback function. | |
void | EVENT_USB_Device_Connect (void) |
USB Device connect event callback. | |
void | EVENT_USB_Device_Disconnect (void) |
USB Device disconnect event callback. | |
void | EVENT_USB_Device_ConfigurationChanged (void) |
USB Device configuration change event callback. | |
void | EVENT_USB_Device_ControlRequest (void) |
USB Device control request receive event callback. | |
bool | CALLBACK_Audio_Device_GetSetEndpointProperty (USB_ClassInfo_Audio_Device_t *const AudioInterfaceInfo, const uint8_t EndpointProperty, const uint8_t EndpointAddress, const uint8_t EndpointControl, uint16_t *const DataLength, uint8_t *Data) |
bool | CALLBACK_Audio_Device_GetSetInterfaceProperty (USB_ClassInfo_Audio_Device_t *const AudioInterfaceInfo, const uint8_t Property, const uint8_t EntityAddress, const uint16_t Parameter, uint16_t *const DataLength, uint8_t *Data) |
Variables | |
USB_ClassInfo_Audio_Device_t | Microphone_Audio_Interface |
uint32_t | CurrentAudioSampleFrequency = AUDIO_MAX_SAMPLE_FREQ |
uint32_t | sample_buffer_size = 0 |
#define AUDIO_MAX_SAMPLE_FREQ 48000 |
Max Sample Frequency.
Definition at line 51 of file AudioInput.c.
PRAGMA_ALIGN_4 uint16_t sample_buffer [512] ATTR_ALIGNED | ( | 4 | ) |
bool CALLBACK_Audio_Device_GetSetInterfaceProperty | ( | USB_ClassInfo_Audio_Device_t *const | AudioInterfaceInfo, |
const uint8_t | Property, | ||
const uint8_t | EntityAddress, | ||
const uint16_t | Parameter, | ||
uint16_t *const | DataLength, | ||
uint8_t * | Data | ||
) |
Audio class driver callback for the setting and retrieval of streaming interface properties. This callback must be implemented in the user application to handle property manipulations on streaming audio interfaces.
Definition at line 220 of file AudioInput.c.
This callback function provides iso buffer address for HAL iso transfer processing. for ISO In EP, this function also returns the size of buffer, depend on SampleFrequency.
Definition at line 63 of file AudioInput.c.
int main | ( | void | ) |
Main program entry point. This routine contains the overall program flow, including initial setup of all components and the main program loop.
Definition at line 75 of file AudioInput.c.
uint32_t CurrentAudioSampleFrequency = AUDIO_MAX_SAMPLE_FREQ |
Current audio sampling frequency of the streaming audio endpoint.
Definition at line 53 of file AudioInput.c.
USB_ClassInfo_Audio_Device_t Microphone_Audio_Interface |
Audio Class driver interface configuration and state information. This structure is passed to all Audio Class driver functions, so that multiple instances of the same class within a device can be differentiated from one another.
Definition at line 39 of file AudioInput.c.
uint32_t sample_buffer_size = 0 |
Definition at line 58 of file AudioInput.c.