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);
187 pFuncOnInit = funcOnInit;
208 void (*pFuncOnInit)(void);
214 uint8_t remote_name[30];
215 bool activeConnection;
219 uint32_t l2cap_event_flag;
223 uint32_t ButtonState;
224 uint32_t OldButtonState;
225 uint32_t ButtonClickState;
228 uint32_t timerBulbRumble;
235 uint8_t control_scid[2];
236 uint8_t control_dcid[2];
237 uint8_t interrupt_scid[2];
238 uint8_t interrupt_dcid[2];
242 void HID_Command(uint8_t* data, uint8_t nbytes);
243 void HIDMove_Command(uint8_t* data, uint8_t nbytes);
244 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)
bool getButtonClick(ButtonEnum b)