added USB host
Dependencies: FATFileSystem mbed-rtos
Fork of USBHost by
Diff: USBHostHub/USBHostHub.h
- Revision:
- 24:868cbfe611a7
- Parent:
- 8:93da8ea2708b
diff -r 759ec18ee1a7 -r 868cbfe611a7 USBHostHub/USBHostHub.h --- a/USBHostHub/USBHostHub.h Fri Mar 07 16:00:46 2014 +0000 +++ b/USBHostHub/USBHostHub.h Tue Jun 03 11:30:38 2014 +0100 @@ -28,7 +28,7 @@ class USBDeviceConnected; class USBEndpoint; -/** +/** * A class to use a USB Hub */ class USBHostHub : public IUSBEnumerator { @@ -52,7 +52,7 @@ * @return true if connection was successful */ bool connect(USBDeviceConnected * dev); - + /** * Automatically called by USBHost when a device * has been enumerated by usb_thread @@ -60,7 +60,7 @@ * @param dev device connected */ void deviceConnected(USBDeviceConnected * dev); - + /** * Automatically called by USBHost when a device * has been disconnected from this hub @@ -68,21 +68,21 @@ * @param dev device disconnected */ void deviceDisconnected(USBDeviceConnected * dev); - + /** * Rest a specific port * * @param port port number */ void portReset(uint8_t port); - + /* * Called by USBHost to set the instance of USBHost * * @param host host instance */ void setHost(USBHost * host); - + /** * Called by USBhost when a hub has been disconnected */ @@ -114,7 +114,7 @@ uint32_t getPortStatus(uint8_t port); USBDeviceConnected * device_children[MAX_HUB_PORT]; - + void init(); void disconnect();