![]() |
Ultibo API
C/C++ API for Ultibo Core
|
#include <usb.h>
Data Fields | |
| DEVICE | device |
| The Device entry for this Hub. | |
| uint32_t | hubid |
| Unique Id of this Hub in the Hub table. | |
| uint32_t | hubstate |
| Hub state (eg USBHUB_STATE_ATTACHED). | |
| MUTEX_HANDLE | lock |
| Hub lock. | |
| USB_HUB_DESCRIPTOR * | descriptor |
| Class specific Descriptor for this hub. | |
| USB_PORT * | ports |
| Ports on this hub (Set by USBHubCreatePorts using the value in Descriptor.bNbrPorts). | |
| uint32_t | receivecount |
| uint32_t | receiveerrors |
| USB_HUB_DATA * | statusdata |
| Hub status change data buffer. | |
| USB_REQUEST * | statusrequest |
| Hub status change request. | |
| USB_ENDPOINT_DESCRIPTOR * | statusendpoint |
| Hub Interrupt IN Endpoint. | |
| uint32_t | pendingcount |
| Number of USB requests pending for this hub. | |
| THREAD_ID | waiterthread |
| Thread waiting for pending requests to complete (for hub detachment). | |
| USB_HUB * | prev |
| Previous entry in Hub table. | |
| USB_HUB * | next |
| Next entry in Hub table. | |
USB Hub Methods None
| DEVICE device |
The Device entry for this Hub.
| uint32_t hubid |
Unique Id of this Hub in the Hub table.
| uint32_t hubstate |
Hub state (eg USBHUB_STATE_ATTACHED).
| MUTEX_HANDLE lock |
Hub lock.
| USB_HUB_DESCRIPTOR* descriptor |
Class specific Descriptor for this hub.
| USB_PORT* ports |
Ports on this hub (Set by USBHubCreatePorts using the value in Descriptor.bNbrPorts).
| uint32_t receivecount |
| uint32_t receiveerrors |
| USB_HUB_DATA* statusdata |
Hub status change data buffer.
| USB_REQUEST* statusrequest |
Hub status change request.
| USB_ENDPOINT_DESCRIPTOR* statusendpoint |
Hub Interrupt IN Endpoint.
| uint32_t pendingcount |
Number of USB requests pending for this hub.
| THREAD_ID waiterthread |
Thread waiting for pending requests to complete (for hub detachment).
| USB_HUB* prev |
Previous entry in Hub table.
| USB_HUB* next |
Next entry in Hub table.