Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: BLE_API mbed-dev nRF51822
Diff: HIDServiceBase.h
- Revision:
- 66:a7c6fbe45cf5
- Parent:
- 59:2d6c0bff2151
- Child:
- 75:351d7ffe81d1
diff -r 391ce51e37cc -r a7c6fbe45cf5 HIDServiceBase.h
--- a/HIDServiceBase.h Fri Sep 02 03:24:36 2016 +0900
+++ b/HIDServiceBase.h Thu Sep 01 19:09:47 2016 +0000
@@ -142,6 +142,20 @@
*/
virtual void sendCallback(void) = 0;
+ /**
+ * Create the Gatt descriptor for a report characteristic
+ */
+ GattAttribute** inputReportDescriptors();
+ GattAttribute** outputReportDescriptors();
+ GattAttribute** featureReportDescriptors();
+ GattAttribute** reportMapDescriptors();
+
+
+ /**
+ * Create the HID information structure
+ */
+ HID_information_t* HIDInformation();
+
protected:
BLE &ble;
bool connected;
@@ -159,6 +173,14 @@
uint8_t controlPointCommand;
uint8_t protocolMode;
+ report_reference_t inputReportReferenceData;
+ report_reference_t outputReportReferenceData;
+ report_reference_t featureReportReferenceData;
+
+ GattAttribute inputReportReferenceDescriptor;
+ GattAttribute outputReportReferenceDescriptor;
+ GattAttribute featureReportReferenceDescriptor;
+
// Optional gatt characteristics:
GattCharacteristic protocolModeCharacteristic;
@@ -177,4 +199,4 @@
bool reportTickerIsActive;
};
-#endif /* !HID_SERVICE_BASE_H_ */
+#endif /* !HID_SERVICE_BASE_H_ */
\ No newline at end of file