Lightweight USB stack  1.0
hid_usage_button.h
1 /* This file is the part of the Lightweight USB device Stack for STM32 microcontrollers
2  *
3  * Copyright ©2016 Dmitry Filimonchuk <dmitrystu[at]gmail[dot]com>
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  * http://www.apache.org/licenses/LICENSE-2.0
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 
16 #ifndef _USB_HID_USAGE_BUTTON_H_
17 #define _USB_HID_USAGE_BUTTON_H_
18 #ifdef __cplusplus
19  extern "C" {
20 #endif
21 
22 
30 #define HID_PAGE_BUTTON 0x09
32 #define HID_BUTTON_NO_PRESSED 0x00
33 #define HID_BUTTON_1 0x01
34 #define HID_BUTTON_2 0x02
35 #define HID_BUTTON_3 0x03
36 #define HID_BUTTON_4 0x04
37 #define HID_BUTTON_5 0x05
41 #ifdef __cplusplus
42  }
43 #endif
44 
45 #endif
46