USB Human Interface Devices (HID) class keyboard driver. More...
#include <stdint.h>
#include "em_usb.h"
Go to the source code of this file.
Data Structures | |
struct | HIDKBD_KeyReport_t |
HID keyboard input report definition. More... | |
struct | HIDKBD_Init_t |
HidKeyboard driver initialization structure. More... | |
Typedefs | |
typedef void(* | HIDKBD_SetReportFunc_t )(uint8_t report) |
Callback function pointer for HID output reports. | |
Functions | |
void | HIDKBD_Init (HIDKBD_Init_t *init) |
Initialize HID Keyboard driver. | |
int | HIDKBD_SetupCmd (const USB_Setup_TypeDef *setup) |
Handle USB setup commands. | |
void | HIDKBD_StateChangeEvent (USBD_State_TypeDef oldState, USBD_State_TypeDef newState) |
Handle USB state change events, this function must be called each time the USB device state is changed. | |
void | HIDKBD_KeyboardEvent (HIDKBD_KeyReport_t *report) |
Report a keyboard press/release event. | |
Variables | |
const char | HIDKBD_ReportDescriptor [69] |
HID report descriptor created with usb.org's "HID Descriptor Tool(DT)" version 2.4. |
USB Human Interface Devices (HID) class keyboard driver.
(C) Copyright 2014 Silicon Labs, http://www.silabs.com
This file is licensed under the Silabs License Agreement. See the file "Silabs_License_Agreement.txt" for details. Before using this software for any purpose, you must agree to the terms of that agreement.
Definition in file hidkbd.h.