USB Host Shield 2.0
|
#include <PS5USB.h>
Protected Member Functions | |
HIDUniversal implementation | |
virtual void | ParseHIDData (USBHID *hid, bool is_rpt_id, uint8_t len, uint8_t *buf) |
virtual uint8_t | OnInitSuccessful () |
PS5Parser implementation | |
virtual void | sendOutputReport (PS5Output *output) |
USBDeviceConfig implementation | |
virtual bool | VIDPIDOK (uint16_t vid, uint16_t pid) |
![]() | |
uint16_t | GetHidClassDescrLen (uint8_t type, uint8_t num) |
void | Initialize () |
HIDInterface * | FindInterface (uint8_t iface, uint8_t alt, uint8_t proto) |
void | ZeroMemory (uint8_t len, uint8_t *buf) |
HIDReportParser * | GetReportParser (uint8_t id) |
![]() | |
void | PrintEndpointDescriptor (const USB_ENDPOINT_DESCRIPTOR *ep_ptr) |
void | PrintHidDescriptor (const USB_HID_DESCRIPTOR *pDesc) |
![]() | |
void | Parse (uint8_t len, uint8_t *buf) |
void | Reset () |
This class implements support for the PS5 controller via USB. It uses the HIDUniversal class for all the USB communication.
|
inline |
|
inline |
|
inlineprotectedvirtual |
Used to parse USB HID data.
hid | Pointer to the HID class. |
is_rpt_id | Only used for Hubs. |
len | The length of the incoming data. |
buf | Pointer to the data buffer. |
Reimplemented from HIDUniversal.
Called when a device is successfully initialized. Use attachOnInit(void (*funcOnInit)(void)) to call your own function. This is useful for instance if you want to set the LEDs in a specific way.
Reimplemented from HIDComposite.
Used by the USB core to check what this driver support.
vid | The device's VID. |
pid | The device's PID. |
Reimplemented from USBDeviceConfig.