USB Host Shield 2.0
|
#include "controllerEnums.h"
Go to the source code of this file.
Macros | |
#define | PS3_REPORT_BUFFER_SIZE 48 |
#define | MOVE_REPORT_BUFFER_SIZE 7 |
Enumerations | |
enum | StatusEnum { Plugged = (38 << 8) | 0x02 , Unplugged = (38 << 8) | 0x03 , Charging = (39 << 8) | 0xEE , NotCharging = (39 << 8) | 0xF1 , Shutdown = (39 << 8) | 0x01 , Dying = (39 << 8) | 0x02 , Low = (39 << 8) | 0x03 , High = (39 << 8) | 0x04 , Full = (39 << 8) | 0x05 , MoveCharging = (21 << 8) | 0xEE , MoveNotCharging = (21 << 8) | 0xF1 , MoveShutdown = (21 << 8) | 0x01 , MoveDying = (21 << 8) | 0x02 , MoveLow = (21 << 8) | 0x03 , MoveHigh = (21 << 8) | 0x04 , MoveFull = (21 << 8) | 0x05 , CableRumble = (40 << 8) | 0x10 , Cable = (40 << 8) | 0x12 , BluetoothRumble = (40 << 8) | 0x14 , Bluetooth = (40 << 8) | 0x16 } |
Functions | |
int8_t | getButtonIndexPS3 (ButtonEnum b) |
Variables | |
const uint8_t | PS3_REPORT_BUFFER [PS3_REPORT_BUFFER_SIZE] |
const uint8_t | PS3_LEDS [] |
const uint32_t | PS3_BUTTONS [] |
const uint8_t | PS3_ANALOG_BUTTONS [] |
#define PS3_REPORT_BUFFER_SIZE 48 |
Size of the output report buffer for the Dualshock and Navigation controllers
Definition at line 24 of file PS3Enums.h.
#define MOVE_REPORT_BUFFER_SIZE 7 |
Size of the output report buffer for the Move Controller
Definition at line 40 of file PS3Enums.h.
Enumerator | |
---|---|
Plugged | |
Unplugged | |
Charging | |
NotCharging | |
Shutdown | |
Dying | |
Low | |
High | |
Full | |
MoveCharging | |
MoveNotCharging | |
MoveShutdown | |
MoveDying | |
MoveLow | |
MoveHigh | |
MoveFull | |
CableRumble | |
Cable | |
BluetoothRumble | |
Bluetooth |
Definition at line 113 of file PS3Enums.h.
|
inline |
Definition at line 141 of file PS3Enums.h.
const uint8_t PS3_REPORT_BUFFER[PS3_REPORT_BUFFER_SIZE] |
Report buffer for all PS3 commands
Definition at line 27 of file PS3Enums.h.
Used to set the LEDs on the controllers
Definition at line 43 of file PS3Enums.h.
Buttons on the controllers. Note: that the location is shifted 9 when it's connected via USB.
Definition at line 62 of file PS3Enums.h.
Analog buttons on the controllers. Note: that the location is shifted 9 when it's connected via USB.
Definition at line 92 of file PS3Enums.h.