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

Go to the source code of this file.

Functions

int main (void)
 
void SetupHardware (void)
 Hardware setup event callback function.
 
void KeyboardHost_Task (void)
 
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

uint8_t uartPolling [100]
 
USB_ClassInfo_HID_Host_t Keyboard_HID_Interface
 

Function Documentation

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 56 of file KeyboardHost.c.

Variable Documentation

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

LPCUSBlib 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 41 of file KeyboardHost.c.

uint8_t uartPolling[100]

Definition at line 35 of file KeyboardHost.c.