24 #define KEYBOARD_PARSER_ID 0
25 #define MOUSE_PARSER_ID 1
37 BTHID(
BTD *p,
bool pair =
false,
const char *pin =
"0000");
52 return pRptParser[id];
102 return lastBtDataInputIntMillis;
134 virtual void ParseBTHIDData(uint8_t len __attribute__((unused)), uint8_t *buf __attribute__((unused))) {
167 void SDP_Command(uint8_t* data, uint8_t nbytes);
168 void serviceNotSupported(uint8_t transactionIDHigh, uint8_t transactionIDLow);
172 uint8_t protocolMode;
177 bool activeConnection;
181 uint8_t control_dcid[2];
182 uint8_t interrupt_dcid[2];
186 uint32_t lastBtDataInputIntMillis;
uint32_t getLastMessageTime()
bool SetReportParser(uint8_t id, HIDReportParser *prs)
uint8_t interrupt_scid[2]
virtual void ParseBTHIDData(uint8_t len, uint8_t *buf)
BTHID(BTD *p, bool pair=false, const char *pin="0000")
virtual void OnInitBTHID()
void ACLData(uint8_t *ACLData)
virtual void ResetBTHID()
virtual void ParseBTHIDControlData(uint8_t len, uint8_t *buf)
void setLeds(struct KBDLEDS data)
HIDReportParser * GetReportParser(uint8_t id)
void setProtocolMode(uint8_t mode)
void(* pFuncOnInit)(void)