VSF Documented
vsf_usb_HID.h
Go to the documentation of this file.
1/*****************************************************************************
2 * Copyright(C)2009-2022 by VSF Team *
3 * *
4 * Licensed under the Apache License, Version 2.0 (the "License"); *
5 * you may not use this file except in compliance with the License. *
6 * You may obtain a copy of the License at *
7 * *
8 * http://www.apache.org/licenses/LICENSE-2.0 *
9 * *
10 * Unless required by applicable law or agreed to in writing, software *
11 * distributed under the License is distributed on an "AS IS" BASIS, *
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. *
13 * See the License for the specific language governing permissions and *
14 * limitations under the License. *
15 * *
16 ****************************************************************************/
17
18#ifndef __VSF_USB_HID_H__
19#define __VSF_USB_HID_H__
20
21#ifdef __cplusplus
22extern "C" {
23#endif
24
25/*============================ INCLUDES ======================================*/
26/*============================ MACROS ========================================*/
27
28#define USB_HID_PROTOCOL_BOOT 0
29#define USB_HID_PROTOCOL_REPORT 1
30
31/*============================ MACROFIED FUNCTIONS ===========================*/
32/*============================ TYPES =========================================*/
33
39
40typedef enum usb_hid_req_t {
48
54
55/*============================ GLOBAL VARIABLES ==============================*/
56/*============================ PROTOTYPES ====================================*/
57
58#ifdef __cplusplus
59}
60#endif
61
62#endif // __VSF_USB_HID_H__
usb_hid_description_type_t
Definition vsf_usb_HID.h:34
@ USB_HID_DT_REPORT
Definition vsf_usb_HID.h:36
@ USB_HID_DT_PHYSICAL
Definition vsf_usb_HID.h:37
@ USB_HID_DT_HID
Definition vsf_usb_HID.h:35
usb_hid_report_type_t
Definition vsf_usb_HID.h:49
@ USB_HID_REPORT_OUTPUT
Definition vsf_usb_HID.h:51
@ USB_HID_REPORT_FEATURE
Definition vsf_usb_HID.h:52
@ USB_HID_REPORT_INPUT
Definition vsf_usb_HID.h:50
usb_hid_req_t
Definition vsf_usb_HID.h:40
@ USB_HID_REQ_GET_IDLE
Definition vsf_usb_HID.h:42
@ USB_HID_REQ_SET_PROTOCOL
Definition vsf_usb_HID.h:46
@ USB_HID_REQ_SET_REPORT
Definition vsf_usb_HID.h:44
@ USB_HID_REQ_GET_PROTOCOL
Definition vsf_usb_HID.h:43
@ USB_HID_REQ_SET_IDLE
Definition vsf_usb_HID.h:45
@ USB_HID_REQ_GET_REPORT
Definition vsf_usb_HID.h:41