|
|
|
|
|
|
|
|
// your best effort to read chapter 4 before asking USB questions! |
|
|
// your best effort to read chapter 4 before asking USB questions! |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//#define USBHOST_PRINT_DEBUG |
|
|
|
|
|
|
|
|
#define USBHOST_PRINT_DEBUG |
|
|
|
|
|
|
|
|
/************************************************/ |
|
|
/************************************************/ |
|
|
/* Data Types */ |
|
|
/* Data Types */ |
|
|
|
|
|
|
|
|
virtual void hid_input_end(); |
|
|
virtual void hid_input_end(); |
|
|
virtual void disconnect_collection(Device_t *dev); |
|
|
virtual void disconnect_collection(Device_t *dev); |
|
|
void add_to_list(); |
|
|
void add_to_list(); |
|
|
USBHIDInput *next; |
|
|
|
|
|
|
|
|
USBHIDInput *next = NULL; |
|
|
friend class USBHIDParser; |
|
|
friend class USBHIDParser; |
|
|
protected: |
|
|
protected: |
|
|
Device_t *mydevice = NULL; |
|
|
Device_t *mydevice = NULL; |
|
|
|
|
|
|
|
|
virtual bool process_bluetooth_HID_data(const uint8_t *data, uint16_t length) {return false;} |
|
|
virtual bool process_bluetooth_HID_data(const uint8_t *data, uint16_t length) {return false;} |
|
|
virtual void release_bluetooth() {}; |
|
|
virtual void release_bluetooth() {}; |
|
|
void add_to_list(); |
|
|
void add_to_list(); |
|
|
BTHIDInput *next; |
|
|
|
|
|
|
|
|
BTHIDInput *next = NULL; |
|
|
friend class BluetoothController; |
|
|
friend class BluetoothController; |
|
|
protected: |
|
|
protected: |
|
|
Device_t *btdevice = NULL; |
|
|
Device_t *btdevice = NULL; |