24 #define HID_BUFFERSIZE 50 // Size of the buffer for the Playstation Motion Controller
41 PS3BT(
BTD *pBtd, uint8_t btadr5 = 0, uint8_t btadr4 = 0, uint8_t btadr3 = 0, uint8_t btadr2 = 0, uint8_t btadr1 = 0, uint8_t btadr0 = 0);
138 void setRumbleOn(uint8_t rightDuration, uint8_t rightPower, uint8_t leftDuration, uint8_t leftPower);
184 return lastMessageTime;
192 pFuncOnInit = funcOnInit;
213 void (*pFuncOnInit)(void);
219 uint8_t remote_name[30];
220 bool activeConnection;
224 uint32_t l2cap_event_flag;
226 uint32_t lastMessageTime;
230 uint32_t ButtonState;
231 uint32_t OldButtonState;
232 uint32_t ButtonClickState;
235 uint32_t timerBulbRumble;
242 uint8_t control_scid[2];
243 uint8_t control_dcid[2];
244 uint8_t interrupt_scid[2];
245 uint8_t interrupt_dcid[2];
249 void HID_Command(uint8_t* data, uint8_t nbytes);
250 void HIDMove_Command(uint8_t* data, uint8_t nbytes);
251 void enable_sixaxis();
bool PS3NavigationConnected
bool getStatus(StatusEnum c)
void moveSetRumble(uint8_t rumble)
bool getButtonPress(ButtonEnum b)
int16_t getSensor(SensorEnum a)
double getAngle(AngleEnum a)
void attachOnInit(void(*funcOnInit)(void))
uint8_t getAnalogHat(AnalogHatEnum a)
void moveSetBulb(uint8_t r, uint8_t g, uint8_t b)
void setRumbleOn(RumbleEnum mode)
virtual void ACLData(uint8_t *ACLData)
void setLedToggle(LEDEnum a)
virtual void disconnect()
double get9DOFValues(SensorEnum a)
uint8_t getAnalogButton(ButtonEnum a)
void setLedRaw(uint8_t value)
PS3BT(BTD *pBtd, uint8_t btadr5=0, uint8_t btadr4=0, uint8_t btadr3=0, uint8_t btadr2=0, uint8_t btadr1=0, uint8_t btadr0=0)
uint32_t getLastMessageTime()
bool getButtonClick(ButtonEnum b)