27 #define PS5_VID 0x054C
28 #define PS5_PID 0x0CE6
58 pFuncOnInit = funcOnInit;
70 virtual void ParseHIDData(
USBHID *hid __attribute__((unused)),
bool is_rpt_id __attribute__((unused)), uint8_t len, uint8_t *buf) {
99 memset(buf, 0,
sizeof(buf));
130 buf[0x2D] = output->
r;
131 buf[0x2E] = output->
g;
132 buf[0x2F] = output->
b;
149 virtual bool VIDPIDOK(uint16_t vid, uint16_t pid) {
155 void (*pFuncOnInit)(void);
HIDInterface hidInterfaces[maxHidInterfaces]
EpInfo epInfo[totalEndpoints]
void setLed(uint8_t r, uint8_t g, uint8_t b)
void Parse(uint8_t len, uint8_t *buf)
void processTrigger(uint8_t *buffer)
Apply the trigger data to a PS5 update buffer.
virtual void sendOutputReport(PS5Output *output)
virtual bool VIDPIDOK(uint16_t vid, uint16_t pid)
virtual uint8_t OnInitSuccessful()
void attachOnInit(void(*funcOnInit)(void))
virtual void ParseHIDData(USBHID *hid, bool is_rpt_id, uint8_t len, uint8_t *buf)
static const uint8_t epInterruptOutIndex
uint8_t outTransfer(uint8_t addr, uint8_t ep, uint16_t nbytes, uint8_t *data)