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.
Dependents: F401RE-USBHostMIDI_RecieveExample
Fork of F401RE-USBHost by
Diff: USBHostHID/USBHostMouse.h
- Revision:
- 3:a3872f7593e2
- Parent:
- 0:5160ee0c522d
- Child:
- 8:6463cd1964c0
diff -r 0cdac6bcc534 -r a3872f7593e2 USBHostHID/USBHostMouse.h
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/USBHostHID/USBHostMouse.h Sat Jan 25 12:51:44 2014 +0000
@@ -0,0 +1,16 @@
+// Simple USBHost Mouse for FRDM-KL46Z
+#include "USBHost.h"
+
+class USBHostMouse {
+public:
+ USBHostMouse() {
+ host = USBHost::getHostInst();
+ }
+ int readReport(uint8_t* data) {
+ return host->InterruptRead(data, 4);
+ }
+
+private:
+ USBHost * host;
+};
+
