![]() |
LPCOpen Platform
LPCOpen Platform for NXP LPC Microcontrollers
|
#include "VirtualSerial.h"
Go to the source code of this file.
Macros | |
#define | CDC_TASK_SELECT ECHO_CHARACTER_TASK |
Functions | |
int | main (void) |
void | SetupHardware (void) |
Hardware setup event callback function. | |
void | EchoCharater (void) |
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. | |
void | EVENT_CDC_Device_LineEncodingChanged (USB_ClassInfo_CDC_Device_t *const CDCInterfaceInfo) |
CDC class driver event for a line encoding change on a CDC interface. This event fires each time the host requests a line encoding change (containing the serial parity, baud and other configuration information) and may be hooked in the user program by declaring a handler function with the same name and parameters listed here. The new line encoding settings are available in the LineEncoding structure inside the CDC interface structure passed as a parameter. | |
Variables | |
USB_ClassInfo_CDC_Device_t | VirtualSerial_CDC_Interface |
#define CDC_TASK_SELECT ECHO_CHARACTER_TASK |
Standard file stream for the CDC interface when set up, so that the virtual CDC COM port can be used like any regular character stream in the C APIs Select example task, currently lpc11Uxx and lpc17xx don't support for bridging task Only LPC18xx has this feature
Definition at line 64 of file VirtualSerial.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 69 of file VirtualSerial.c.
USB_ClassInfo_CDC_Device_t VirtualSerial_CDC_Interface |
LPCUSBlib CDC Class driver interface configuration and state information. This structure is passed to all CDC 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 VirtualSerial.c.