24 #define KEYBOARD_PARSER_ID 0
25 #define MOUSE_PARSER_ID 1
37 BTHID(
BTD *p,
bool pair =
false,
const char *pin =
"0000");
61 return pRptParser[id];
105 pFuncOnInit = funcOnInit;
135 uint8_t protocolMode;
147 void (*pFuncOnInit)(void);
153 bool activeConnection;
157 uint32_t l2cap_event_flag;
160 uint8_t control_scid[2];
161 uint8_t control_dcid[2];
162 uint8_t interrupt_scid[2];
163 uint8_t interrupt_dcid[2];
virtual void OnInitBTHID()
virtual void ACLData(uint8_t *ACLData)
virtual void ResetBTHID()
void attachOnInit(void(*funcOnInit)(void))
virtual void disconnect()
virtual void ParseBTHID(BTHID *bthid, uint8_t len, uint8_t *buf)
HIDReportParser * GetReportParser(uint8_t id)
void setLeds(uint8_t data)
void setProtocolMode(uint8_t mode)
BTHID(BTD *p, bool pair=false, const char *pin="0000")
bool SetReportParser(uint8_t id, HIDReportParser *prs)