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: MAX44000 PWM_Tone_Library nexpaq_mdk
Fork of LED_Demo by
USBHostHub Class Reference
A class to use a USB Hub. More...
#include <USBHostHub.h>
Inherits IUSBEnumerator.
| Public Member Functions | |
| USBHostHub () | |
| Constructor. | |
| bool | connected () | 
| Check if a USB Hub is connected. | |
| bool | connect (USBDeviceConnected *dev) | 
| Try to connect device. | |
| void | deviceConnected (USBDeviceConnected *dev) | 
| Automatically called by USBHost when a device has been enumerated by usb_thread. | |
| void | deviceDisconnected (USBDeviceConnected *dev) | 
| Automatically called by USBHost when a device has been disconnected from this hub. | |
| void | portReset (uint8_t port) | 
| Rest a specific port. | |
| void | hubDisconnected () | 
| Called by USBhost when a hub has been disconnected. | |
Detailed Description
A class to use a USB Hub.
Definition at line 34 of file USBHostHub.h.
Constructor & Destructor Documentation
| USBHostHub | ( | ) | 
Constructor.
Definition at line 53 of file USBHostHub.cpp.
Member Function Documentation
| bool connect | ( | USBDeviceConnected * | dev ) | 
Try to connect device.
- Parameters:
- 
  dev device to connect 
- Returns:
- true if connection was successful
Definition at line 82 of file USBHostHub.cpp.
| bool connected | ( | ) | 
Check if a USB Hub is connected.
- Returns:
- true if a serial device is connected
Definition at line 77 of file USBHostHub.cpp.
| void deviceConnected | ( | USBDeviceConnected * | dev ) | 
Automatically called by USBHost when a device has been enumerated by usb_thread.
- Parameters:
- 
  dev device connected 
Definition at line 164 of file USBHostHub.cpp.
| void deviceDisconnected | ( | USBDeviceConnected * | dev ) | 
Automatically called by USBHost when a device has been disconnected from this hub.
- Parameters:
- 
  dev device disconnected 
Definition at line 168 of file USBHostHub.cpp.
| void hubDisconnected | ( | ) | 
Called by USBhost when a hub has been disconnected.
Definition at line 172 of file USBHostHub.cpp.
| void portReset | ( | uint8_t | port ) | 
Generated on Tue Jul 12 2022 12:29:12 by
 1.7.2
 1.7.2 
    