|
USB Host Shield 2.0
|
#include <PS5BT.h>


Protected Member Functions | |
BTHID implementation | |
| virtual void | ParseBTHIDData (uint8_t len, uint8_t *buf) |
| virtual void | OnInitBTHID () |
| virtual void | ResetBTHID () |
PS5Parser implementation | |
| virtual void | sendOutputReport (PS5Output *output) |
Protected Member Functions inherited from BTHID | |
| virtual void | ParseBTHIDControlData (uint8_t len, uint8_t *buf) |
| void | ACLData (uint8_t *ACLData) |
| void | Run () |
| void | Reset () |
| void | onInit () |
Protected Member Functions inherited from BluetoothService | |
| bool | checkHciHandle (uint8_t *buf, uint16_t handle) |
Protected Member Functions inherited from PS5Parser | |
| void | Parse (uint8_t len, uint8_t *buf) |
| void | Reset () |
Additional Inherited Members | |
Public Attributes inherited from BTHID | |
| bool | connected |
Public Attributes inherited from PS5Parser | |
| PS5Trigger | leftTrigger |
| PS5Trigger | rightTrigger |
Protected Attributes inherited from BTHID | |
| uint8_t | control_scid [2] |
| uint8_t | interrupt_scid [2] |
| uint8_t | l2cap_sdp_state |
| uint8_t | sdp_scid [2] |
Protected Attributes inherited from BluetoothService | |
| void(* | pFuncOnInit )(void) |
| BTD * | pBtd |
| uint16_t | hci_handle |
| uint32_t | l2cap_event_flag |
| uint8_t | identifier |
This class implements support for the PS5 controller via Bluetooth. It uses the BTHID class for all the Bluetooth communication.
Constructor for the PS5BT class.
| p | Pointer to the BTD class instance. |
| pair | Set this to true in order to pair with the device. If the argument is omitted then it will not pair with it. One can use PAIR to set it to true. |
| pin | Write the pin to BTD::btdPin. If argument is omitted, then "0000" will be used. |
|
inline |