M480 BSP V3.05.005
The Board Support Package for M480 Series
Data Structures | Macros | Typedefs | Functions
usbh_hid.h File Reference

USB Host HID class driver header file. More...

#include "NuMicro.h"
#include "usb.h"

Go to the source code of this file.

Data Structures

struct  usbhid_dev
 
struct  usbhid_keyboard_event
 
struct  usbhid_mouse_event
 

Macros

#define CONFIG_HID_MAX_DEV   4
 
#define CONFIG_HID_DEV_MAX_PIPE   8
 
#define HID_REPORT_GET   0x01
 
#define HID_GET_IDLE   0x02
 
#define HID_GET_PROTOCOL   0x03
 
#define HID_REPORT_SET   0x09
 
#define HID_SET_IDLE   0x0A
 
#define HID_SET_PROTOCOL   0x0B
 
#define RT_INPUT
 
#define RT_OUTPUT
 
#define RT_FEATURE
 

Typedefs

typedef HIDDEN_SYMBOLS struct usbhid_dev HID_DEV_T
 
typedef struct usbhid_keyboard_event KEYBOARD_EVENT_T
 
typedef struct usbhid_mouse_event MOUSE_EVENT_T
 
typedef void() HID_MOUSE_FUNC(struct usbhid_dev *hdev, MOUSE_EVENT_T *mouse)
 
typedef void() HID_KEYBOARD_FUNC(struct usbhid_dev *hdev, KEYBOARD_EVENT_T *kbd)
 

Functions

void usbh_hid_regitser_mouse_callback (HID_MOUSE_FUNC *func)
 Register the mouse event callback function to HID class driver. Any mouse reports will be sent to user application via this callback. More...
 
void usbh_hid_regitser_keyboard_callback (HID_KEYBOARD_FUNC *func)
 Register the keyboard event callback function to HID class driver. Any keyboard reports will be sent to user application via this callback. More...
 

Detailed Description

USB Host HID class driver header file.

Version
V1.10

SPDX-License-Identifier: Apache-2.0

Definition in file usbh_hid.h.