LPCOpen Platform
LPCOpen Platform for NXP LPC Microcontrollers
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Virtual Serial Device and Keyboard Host

Modules

 Class descriptors
 
 Functions prototypes
 
 Main definitions
 

Detailed Description

This example implements a Dual Mode USB device. check the Virtual Serial Device for Device mode. check the Keyboard Host for Host mode.

Note
By default, device is in Device mode and there is no automatic switching between USB modes.
  • To switch from Device to Host mode, send a character 'h' on Virtual Serial Port.
  • To switch back from Host to Device mode, press 'D' on Keyboard when it is attached and enumerated on Host USB port.
Since Device mode isn't support Dual port, this example in Device mode can only work on the port that specified by USB_PORT.

See readme.txt for building and running guide.

Supported boards and board setup:

Submit bug reports for LPCOpen code here.