24 #define PS4_VID 0x054C
25 #define PS4_PID 0x05C4
26 #define PS4_PID_SLIM 0x09CC
56 pFuncOnInit = funcOnInit;
68 virtual void ParseHIDData(
USBHID *hid __attribute__((unused)),
bool is_rpt_id __attribute__((unused)), uint8_t len, uint8_t *buf) {
93 memset(buf, 0,
sizeof(buf));
123 virtual bool VIDPIDOK(uint16_t vid, uint16_t pid) {
129 void (*pFuncOnInit)(void);
EpInfo epInfo[totalEndpoints]
void setLed(uint8_t r, uint8_t g, uint8_t b)
void Parse(uint8_t len, uint8_t *buf)
virtual uint8_t OnInitSuccessful()
virtual void sendOutputReport(PS4Output *output)
virtual void ParseHIDData(USBHID *hid, bool is_rpt_id, uint8_t len, uint8_t *buf)
virtual bool VIDPIDOK(uint16_t vid, uint16_t pid)
void attachOnInit(void(*funcOnInit)(void))
static const uint8_t epInterruptOutIndex
uint8_t outTransfer(uint8_t addr, uint8_t ep, uint16_t nbytes, uint8_t *data)