mirror of
https://github.com/ravinrabbid/DonCon2040.git
synced 2025-02-19 11:35:00 +01:00
31 lines
842 B
C
31 lines
842 B
C
#ifndef _USB_DEVICE_HID_KEYBOARD_DRIVER_H_
|
|
#define _USB_DEVICE_HID_KEYBOARD_DRIVER_H_
|
|
|
|
#include "usb/device_driver.h"
|
|
|
|
#include "class/hid/hid_device.h"
|
|
|
|
#include <stdint.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
typedef struct __attribute((packed, aligned(1))) {
|
|
uint8_t keycodes[32];
|
|
} hid_nkro_keyboard_report_t;
|
|
|
|
extern const usbd_driver_t hid_keyboard_device_driver;
|
|
|
|
extern const uint8_t keyboard_desc_hid_report[];
|
|
|
|
uint16_t hid_keyboard_get_report_cb(uint8_t itf, uint8_t report_id, hid_report_type_t report_type, uint8_t *buffer,
|
|
uint16_t reqlen);
|
|
void hid_keyboard_set_report_cb(uint8_t itf, uint8_t report_id, hid_report_type_t report_type, uint8_t const *buffer,
|
|
uint16_t bufsize);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif // _USB_DEVICE_HID_KEYBOARD_DRIVER_H_
|