18 #ifndef _xboxonesbt_h_ 19 #define _xboxonesbt_h_ 79 virtual void sendOutputReport(uint8_t *data, uint8_t nbytes) {
81 uint8_t buf[nbytes + 2];
86 memcpy(buf + 2, data, nbytes);
89 for (uint8_t i = 0; i <
sizeof(buf); i++) {
90 D_PrintHex<uint8_t > (buf[i], 0x80);
virtual void ParseBTHIDData(uint8_t len, uint8_t *buf)
virtual void ResetBTHID()
void Parse(uint8_t len, uint8_t *buf)
XBOXONESBT(BTD *p, bool pair=false)
void(* pFuncOnInit)(void)
void L2CAP_Command(uint16_t handle, uint8_t *data, uint8_t nbytes, uint8_t channelLow=0x01, uint8_t channelHigh=0x00)
virtual void OnInitBTHID()