24 #define PSBUZZ_VID 0x054C
25 #define PSBUZZ_PID 0x1000
35 } __attribute__((packed))
btn[4];
37 } __attribute__((packed));
67 pFuncOnInit = funcOnInit;
95 void setLedRaw(
bool value, uint8_t controller = 0);
99 for (uint8_t i = 1; i < 4; i++)
115 for (uint8_t i = 1; i < 4; i++)
133 setLedRaw(!ledState[controller], controller);
158 psbuzzButtons.
val = 0;
159 oldButtonState.
val = 0;
160 buttonClickState.
val = 0;
161 for (uint8_t i = 0; i <
sizeof(ledState); i++)
172 virtual bool VIDPIDOK(uint16_t vid, uint16_t pid) {
178 static int8_t getButtonIndexBuzz(
ButtonEnum b);
180 void (*pFuncOnInit)(void);
182 void PSBuzz_Command(uint8_t *data, uint16_t nbytes);
184 PSBUZZButtons psbuzzButtons, oldButtonState, buttonClickState;
void setLedOff(uint8_t controller=0)
void attachOnInit(void(*funcOnInit)(void))
bool getButtonPress(ButtonEnum b, uint8_t controller=0)
void setLedOn(uint8_t controller=0)
void ParseHIDData(USBHID *hid, bool is_rpt_id, uint8_t len, uint8_t *buf)
void setLedToggle(uint8_t controller=0)
bool getButtonClick(ButtonEnum b, uint8_t controller=0)
uint8_t OnInitSuccessful()
virtual bool VIDPIDOK(uint16_t vid, uint16_t pid)
void setLedRaw(bool value, uint8_t controller=0)