![]() |
Ultibo API
C/C++ API for Ultibo Core
|
#include <usb.h>
Data Fields | |
| DEVICE | device |
| The Device entry for this USB Host. | |
| uint32_t | hostid |
| Unique Id of this Host in the Host table. | |
| uint32_t | hoststate |
| Host state (eg USBHOST_STATE_ENABLED). | |
| usb_host_start_proc | hoststart |
| A Host specific HostStart method implementing the standard USB host interface. | |
| usb_host_stop_proc | hoststop |
| A Host specific HostStop method implementing the standard USB host interface. | |
| usb_host_reset_proc | hostreset |
| A Host specific HostReset method implementing the standard USB host interface. | |
| usb_host_submit_proc | hostsubmit |
| A Host specific HostSubmit method implementing the standard USB host interface. | |
| usb_host_cancel_proc | hostcancel |
| A Host specific HostCancel method implementing the standard USB host interface. | |
| MUTEX_HANDLE | lock |
| Host lock. | |
| USB_DEVICE * | roothub |
| The Root hub for this Host (or nil if the Host has not yet been started). | |
| uint32_t | alignment |
| Host data buffer alignment (for DMA requests etc). | |
| uint32_t | multiplier |
| Host data buffer multiplier (for DMA requests etc). | |
| uint32_t | maxtransfer |
| Host maximum transfer size. | |
| uint32_t | requestcount |
| Number of USB requests that have been submitted to this host. | |
| uint32_t | requesterrors |
| Number of USB requests that have failed on this host. | |
| USB_HOST * | prev |
| Previous entry in Host table. | |
| USB_HOST * | next |
| Next entry in Host table. | |
| DEVICE device |
The Device entry for this USB Host.
| uint32_t hostid |
Unique Id of this Host in the Host table.
| uint32_t hoststate |
Host state (eg USBHOST_STATE_ENABLED).
| usb_host_start_proc hoststart |
A Host specific HostStart method implementing the standard USB host interface.
| usb_host_stop_proc hoststop |
A Host specific HostStop method implementing the standard USB host interface.
| usb_host_reset_proc hostreset |
A Host specific HostReset method implementing the standard USB host interface.
| usb_host_submit_proc hostsubmit |
A Host specific HostSubmit method implementing the standard USB host interface.
| usb_host_cancel_proc hostcancel |
A Host specific HostCancel method implementing the standard USB host interface.
| MUTEX_HANDLE lock |
Host lock.
| USB_DEVICE* roothub |
The Root hub for this Host (or nil if the Host has not yet been started).
| uint32_t alignment |
Host data buffer alignment (for DMA requests etc).
| uint32_t multiplier |
Host data buffer multiplier (for DMA requests etc).
| uint32_t maxtransfer |
Host maximum transfer size.
| uint32_t requestcount |
Number of USB requests that have been submitted to this host.
| uint32_t requesterrors |
Number of USB requests that have failed on this host.
| USB_HOST* prev |
Previous entry in Host table.
| USB_HOST* next |
Next entry in Host table.