LPCOpen Platform
LPCOpen Platform for NXP LPC Microcontrollers
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
AudioOutputHost.c File Reference
#include "AudioOutputHost.h"

Go to the source code of this file.

Macros

#define USE_TEST_TONE
 

Functions

int main (void)
 
void Init_Timer (uint32_t freq)
 
void DeInitTimer (void)
 
void SetupHardware (void)
 Hardware setup event callback function.
 
void EVENT_USB_Host_DeviceAttached (const uint8_t corenum)
 
void EVENT_USB_Host_DeviceUnattached (const uint8_t corenum)
 
void EVENT_USB_Host_DeviceEnumerationComplete (const uint8_t corenum)
 
void EVENT_USB_Host_HostError (const uint8_t corenum, const uint8_t ErrorCode)
 
void EVENT_USB_Host_DeviceEnumerationFailed (const uint8_t corenum, const uint8_t ErrorCode, const uint8_t SubErrorCode)
 

Variables

USB_ClassInfo_Audio_Host_t Speaker_Audio_Interface
 

Macro Definition Documentation

#define USE_TEST_TONE

ISR to handle the reloading of the PWM timer with the next sample.

Definition at line 60 of file AudioOutputHost.c.

Function Documentation

void DeInitTimer ( void  )

Definition at line 117 of file AudioOutputHost.c.

void Init_Timer ( uint32_t  freq)

Definition at line 98 of file AudioOutputHost.c.

int main ( void  )

Main program entry point. This routine configures the hardware required by the application, then enters a loop to run the application tasks in sequence.

Definition at line 48 of file AudioOutputHost.c.

Variable Documentation

USB_ClassInfo_Audio_Host_t Speaker_Audio_Interface
Initial value:
= {
.Config = {
.DataOUTPipeNumber = 1,
},
}

LPCUSBlib 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 AudioOutputHost.c.