2 ******************************************************************************
3 * @file usbh_hid_keybd.h
4 * @author MCD Application Team
7 * @brief This file contains all the prototypes for the usbh_hid_keybd.c
8 ******************************************************************************
11 * THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS
12 * WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE
13 * TIME. AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY
14 * DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING
15 * FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE
16 * CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.
18 * <h2><center>© COPYRIGHT 2011 STMicroelectronics</center></h2>
19 ******************************************************************************
22 /* Define to prevent recursive -----------------------------------------------*/
23 #ifndef __USBH_HID_KEYBD_H
24 #define __USBH_HID_KEYBD_H
26 /* Includes ------------------------------------------------------------------*/
28 #include "usbh_hid_core.h"
30 /** @addtogroup USBH_LIB
34 /** @addtogroup USBH_CLASS
38 /** @addtogroup USBH_HID_CLASS
42 /** @defgroup USBH_HID_KEYBD
43 * @brief This file is the Header file for USBH_HID_KEYBD.c
48 /** @defgroup USBH_HID_KEYBD_Exported_Types
57 /** @defgroup USBH_HID_KEYBD_Exported_Defines
60 //#define QWERTY_KEYBOARD
61 #define AZERTY_KEYBOARD
63 #define KBD_LEFT_CTRL 0x01
64 #define KBD_LEFT_SHIFT 0x02
65 #define KBD_LEFT_ALT 0x04
66 #define KBD_LEFT_GUI 0x08
67 #define KBD_RIGHT_CTRL 0x10
68 #define KBD_RIGHT_SHIFT 0x20
69 #define KBD_RIGHT_ALT 0x40
70 #define KBD_RIGHT_GUI 0x80
72 #define KBR_MAX_NBR_PRESSED 6
78 /** @defgroup USBH_HID_KEYBD_Exported_Macros
85 /** @defgroup USBH_HID_KEYBD_Exported_Variables
89 extern HID_cb_TypeDef HID_KEYBRD_cb;
94 /** @defgroup USBH_HID_KEYBD_Exported_FunctionsPrototype
97 void USR_KEYBRD_Init (void);
98 void USR_KEYBRD_ProcessData (uint8_t pbuf);
103 #endif /* __USBH_HID_KEYBD_H */
121 /******************* (C) COPYRIGHT 2011 STMicroelectronics *****END OF FILE****/