-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathUSB_HID.h
37 lines (28 loc) · 778 Bytes
/
USB_HID.h
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
28
29
30
31
32
33
34
35
36
37
#ifndef _USB_HID_
#define _USB_HID_
#include <avr/power.h>
#include <avr/wdt.h>
#include "Descriptors.h"
#include "DS3Report.h"
#include "SwitchReport.h"
#include "XInputReport.h"
static InputMode currentInputMode;
/* Function Prototypes: */
#ifdef __cplusplus
extern "C" {
#endif
// Setup all necessary hardware, including USB initialization.
void SetupHardware(InputMode inputMode);
// Process and deliver data from IN and OUT endpoints.
void HID_Task(void);
// Supported report functions
void sendReport(void *data, uint8_t size);
// USB device event handlers.
void EVENT_USB_Device_Connect(void);
void EVENT_USB_Device_Disconnect(void);
void EVENT_USB_Device_ConfigurationChanged(void);
void EVENT_USB_Device_ControlRequest(void);
#ifdef __cplusplus
}
#endif
#endif