Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
#ifndef USB_DEVICE_HID_SWITCH_DRIVER_H_
#define USB_DEVICE_HID_SWITCH_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))) {
uint16_t buttons;
uint8_t hat;
uint8_t lx;
uint8_t ly;
uint8_t rx;
uint8_t ry;
uint8_t vendor;
} hid_switch_report_t;
extern const uint8_t switch_desc_hid_report[];
const usbd_driver_t *get_hid_switch_horipad_device_driver();
const usbd_driver_t *get_hid_switch_tatacon_device_driver();
uint16_t hid_switch_get_report_cb(uint8_t itf, uint8_t report_id, hid_report_type_t report_type, uint8_t *buffer,
uint16_t reqlen);
void hid_switch_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_SWITCH_DRIVER_H_f6edcc2edThis file is pinned to the selected release. Download the original to open it in your design tool.