26 #define EP_MAXPKTSIZE 64
29 #define PS3_CONTROL_PIPE 0
30 #define PS3_OUTPUT_PIPE 1
31 #define PS3_INPUT_PIPE 2
34 #define PS3_VID 0x054C
35 #define PS3_PID 0x0268
36 #define PS3NAVIGATION_PID 0x042F
37 #define PS3MOVE_PID 0x03D5
39 #define PS3_MAX_ENDPOINTS 3
58 PS3USB(
USB *
pUsb, uint8_t btadr5 = 0, uint8_t btadr4 = 0, uint8_t btadr3 = 0, uint8_t btadr2 = 0, uint8_t btadr1 = 0, uint8_t btadr0 = 0);
68 uint8_t
Init(uint8_t parent, uint8_t port,
bool lowspeed);
102 virtual bool VIDPIDOK(uint16_t vid, uint16_t pid) {
206 void setRumbleOn(uint8_t rightDuration, uint8_t rightPower, uint8_t leftDuration, uint8_t leftPower);
255 pFuncOnInit = funcOnInit;
281 void (*pFuncOnInit)(void);
287 uint32_t ButtonState;
288 uint32_t OldButtonState;
289 uint32_t ButtonClickState;
291 uint8_t my_bdaddr[6];
299 void PS3_Command(uint8_t *data, uint16_t nbytes);
300 void enable_sixaxis();
301 void Move_Command(uint8_t *data, uint16_t nbytes);
#define PS3_MAX_ENDPOINTS
#define PS3NAVIGATION_PID
uint8_t Init(uint8_t parent, uint8_t port, bool lowspeed)
virtual uint8_t GetAddress()
uint8_t getAnalogHat(AnalogHatEnum a)
void getBdaddr(uint8_t *bdaddr)
virtual bool VIDPIDOK(uint16_t vid, uint16_t pid)
EpInfo epInfo[PS3_MAX_ENDPOINTS]
float getAngle(AngleEnum a)
void setMoveBdaddr(uint8_t *bdaddr)
bool PS3NavigationConnected
void moveSetRumble(uint8_t rumble)
uint8_t getAnalogButton(ButtonEnum a)
void getMoveBdaddr(uint8_t *bdaddr)
void setRumbleOn(RumbleEnum mode)
void setLedToggle(LEDEnum a)
bool getButtonPress(ButtonEnum b)
uint16_t getSensor(SensorEnum a)
void setLedRaw(uint8_t value)
void getMoveCalibration(uint8_t *data)
bool getButtonClick(ButtonEnum b)
PS3USB(USB *pUsb, uint8_t btadr5=0, uint8_t btadr4=0, uint8_t btadr3=0, uint8_t btadr2=0, uint8_t btadr1=0, uint8_t btadr0=0)
void attachOnInit(void(*funcOnInit)(void))
bool getStatus(StatusEnum c)
void setBdaddr(uint8_t *bdaddr)
void moveSetBulb(uint8_t r, uint8_t g, uint8_t b)