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

Go to the source code of this file.

Functions

static void KeyboardHost_Task (void)
 
void KeyboardHost (void)
 Keyboard Host task This function will be called repeatedly from the main, so that keyboard host driver will update its state machines and receives keystrokes.
 
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)
 
bool CALLBACK_HIDParser_FilterHIDReportItem (HID_ReportItem_t *const CurrentItem)
 

Variables

static USB_ClassInfo_HID_Host_t Keyboard_HID_Interface
 

Function Documentation

static void KeyboardHost_Task ( void  )
static

Task to manage an enumerated USB keyboard once connected, to display key state data as it is received.

Definition at line 68 of file KeyboardHost.c.

Variable Documentation

USB_ClassInfo_HID_Host_t Keyboard_HID_Interface
static
Initial value:
= {
.Config = {
.DataINPipeNumber = 1,
.DataINPipeDoubleBank = false,
.DataOUTPipeNumber = 2,
.DataOUTPipeDoubleBank = false,
.HIDInterfaceProtocol = HID_CSCP_KeyboardBootProtocol,
.PortNumber = 0,
},
}

nxpUSBlib HID Class driver interface configuration and state information. This structure is passed to all HID Class driver functions, so that multiple instances of the same class within a device can be differentiated from one another.

Definition at line 44 of file KeyboardHost.c.