USBHost library. NOTE: This library is only officially supported on the LPC1768 platform. For more information, please see the handbook page.

Dependencies:   FATFileSystem mbed-rtos

Dependents:   BTstack WallbotWii SD to Flash Data Transfer USBHost-MSD_HelloWorld ... more

Legacy Warning

This is an mbed 2 library. To learn more about mbed OS 5, visit the docs.

Pull requests against this repository are no longer supported. Please raise against mbed OS 5 as documented above.

Revision:
23:759ec18ee1a7
Parent:
16:ab8c9118524e
Child:
24:868cbfe611a7
--- a/USBHost/USBHost.h	Fri Jan 31 10:30:17 2014 +0000
+++ b/USBHost/USBHost.h	Fri Mar 07 16:00:46 2014 +0000
@@ -187,6 +187,18 @@
         }
     }
     
+    /**
+     * Instantiate to protect USB thread from accessing shared objects (USBConnectedDevices and Interfaces)
+     */
+    class Lock
+    {
+    public:
+      Lock(USBHost* pHost);  
+      ~Lock();  
+    private:
+      USBHost* m_pHost;
+    };
+    
     friend class USBHostHub;
 
 protected: