|
USB Host Shield 2.0
|
#include <PS4USB.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 () |
PS4Parser implementation | |
| virtual void | sendOutputReport (PS4Output *output) |
USBDeviceConfig implementation | |
| virtual bool | VIDPIDOK (uint16_t vid, uint16_t pid) |
Protected Member Functions inherited from HIDComposite | |
| 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) |
Protected Member Functions inherited from USBHID | |
| void | PrintEndpointDescriptor (const USB_ENDPOINT_DESCRIPTOR *ep_ptr) |
| void | PrintHidDescriptor (const USB_HID_DESCRIPTOR *pDesc) |
Protected Member Functions inherited from PS4Parser | |
| void | Parse (uint8_t len, uint8_t *buf) |
| void | Reset () |
Additional Inherited Members | |
Protected Attributes inherited from HIDComposite | |
| struct HIDComposite::ReportParser | rptParsers [MAX_REPORT_PARSERS] |
| HID_CLASS_DESCRIPTOR_LEN_AND_TYPE | descrInfo [HID_MAX_HID_CLASS_DESCRIPTORS] |
| uint8_t | bConfNum |
| uint8_t | bNumIface |
| uint8_t | bNumEP |
| uint32_t | qNextPollTime |
| uint8_t | pollInterval |
| bool | bPollEnable |
| EpInfo | epInfo [totalEndpoints] |
| HIDInterface | hidInterfaces [maxHidInterfaces] |
| bool | bHasReportId |
| uint16_t | PID |
| uint16_t | VID |
Protected Attributes inherited from USBHID | |
| USB * | pUsb |
| uint8_t | bAddress |
Static Protected Attributes inherited from HIDComposite | |
| static const uint16_t | constBuffLen = 64 |
Static Protected Attributes inherited from USBHID | |
| static const uint8_t | epInterruptInIndex = 1 |
| static const uint8_t | epInterruptOutIndex = 2 |
| static const uint8_t | maxHidInterfaces = 5 |
| static const uint8_t | maxEpPerInterface = 2 |
| static const uint8_t | totalEndpoints = (maxHidInterfaces * maxEpPerInterface + 1) |
This class implements support for the PS4 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.