18 #ifndef _switch_pro_usb_h_
19 #define _switch_pro_usb_h_
24 #define SWITCH_PRO_VID 0x057E // Nintendo Corporation
25 #define SWITCH_PRO_PID 0x2009 // Switch Pro Controller
55 pFuncOnInit = funcOnInit;
67 virtual void ParseHIDData(
USBHID *hid __attribute__((unused)),
bool is_rpt_id __attribute__((unused)), uint8_t len, uint8_t *buf) {
101 uint8_t buf[8 + len];
112 memcpy(buf + 8, data, len);
123 uint8_t buf[2] = { 0x80 , 0x02 };
134 uint8_t buf[2] = { 0x80 , 0x04 };
148 virtual bool VIDPIDOK(uint16_t vid, uint16_t pid) {
154 void (*pFuncOnInit)(void);