![]() |
LPCOpen Platform
LPCOpen Platform for NXP LPC Microcontrollers
|
#include "Keyboard.h"
Go to the source code of this file.
Functions | |
int | main (void) |
void | SetupHardware () |
Hardware setup event callback function. | |
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_USB_Device_StartOfFrame (void) |
bool | CALLBACK_HID_Device_CreateHIDReport (USB_ClassInfo_HID_Device_t *const HIDInterfaceInfo, uint8_t *const ReportID, const uint8_t ReportType, void *ReportData, uint16_t *const ReportSize) |
HID class driver callback for the user creation of a HID IN report. This callback may fire in response to either HID class control requests from the host, or by the normal HID endpoint polling procedure. Inside this callback the user is responsible for the creation of the next HID input report to be sent to the host. | |
void | CALLBACK_HID_Device_ProcessHIDReport (USB_ClassInfo_HID_Device_t *const HIDInterfaceInfo, const uint8_t ReportID, const uint8_t ReportType, const void *ReportData, const uint16_t ReportSize) |
HID class driver callback for the user processing of a received HID OUT report. This callback may fire in response to either HID class control requests from the host, or by the normal HID endpoint polling procedure. Inside this callback the user is responsible for the processing of the received HID output report from the host. | |
Variables | |
static uint8_t | PrevKeyboardHIDReportBuffer [sizeof(USB_KeyboardReport_Data_t)] |
USB_ClassInfo_HID_Device_t | Keyboard_HID_Interface |
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 61 of file Keyboard.c.
USB_ClassInfo_HID_Device_t Keyboard_HID_Interface |
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 42 of file Keyboard.c.
|
static |
Buffer to hold the previously generated Keyboard HID report, for comparison purposes inside the HID class driver.
Definition at line 36 of file Keyboard.c.