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: USBHost.h
- Revision:
- 3:a3872f7593e2
- Parent:
- 2:0cdac6bcc534
- Child:
- 4:21d651ad6987
diff -r 0cdac6bcc534 -r a3872f7593e2 USBHost.h
--- a/USBHost.h Thu Jan 23 08:32:54 2014 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,21 +0,0 @@
-// Simple USBHost for FRDM-KL46Z
-#pragma once
-#include "mbed.h"
-#include "USBHALHost.h"
-
-class USBHost : public USBHALHost {
-public:
- static USBHost* getHostInst();
- int InterruptRead(uint8_t* data, int size);
- int ControlRead(SETUP_PACKET* setup, uint8_t* data, int size);
- int ControlWrite(SETUP_PACKET* setup, uint8_t* data = NULL, int size = 0);
- int BulkRead(uint8_t* data, int size);
- int BulkWrite(const uint8_t* data, int size);
-
-private:
- USBHost();
- static USBHost* inst;
- virtual bool enumeration();
- int dev_addr;
-};
-
