blob: df37b0de57f2a922ca3e8fe5856836f87eeb5bef (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
#ifndef __USBH_HID_KEYBD_H__
#define __USBH_HID_KEYBD_H__
#include <stdint.h>
#define KBD_LEFT_CTRL 0x01
#define KBD_LEFT_SHIFT 0x02
#define KBD_LEFT_ALT 0x04
#define KBD_LEFT_CMD 0x08
#define KBD_RIGHT_CTRL 0x10
#define KBD_RIGHT_SHIFT 0x20
#define KBD_RIGHT_ALT 0x40
#define KBD_RIGHT_CMD 0x80
extern USBH_HID_cb_t USBH_HID_KeyBD_cb;
void USBH_HID_KeyBD_Init(void);
void USBH_HID_KeyBD_Decode(uint8_t *pbuf);
__attribute__((weak))
void USBH_HID_KeyBD_Handle(uint8_t ctrl, char key);
#endif // __USBH_HID_KEYBD_H__
|