|
Zephyr API Documentation 4.3.99
A Scalable Open Source RTOS
|
USB HOST Core Layer API. More...
Data Structures | |
| struct | usbh_status |
| USB host support status. More... | |
| struct | usbh_context |
| USB host support runtime context. More... | |
| struct | usbh_class_filter |
| Information about a device, which is relevant for matching a particular class. More... | |
| struct | usbh_class_api |
| USB host class instance API. More... | |
| struct | usbh_class_data |
| USB host class instance data. More... | |
Macros | |
| #define | USBH_CONTROLLER_DEFINE(device_name, uhc_dev) |
| #define | USBH_DEFINE_CLASS(class_name, class_api, class_priv, filt) |
| Define USB host support class data. | |
Functions | |
| int | usbh_init (struct usbh_context *uhs_ctx) |
| Initialize the USB host support;. | |
| int | usbh_enable (struct usbh_context *uhs_ctx) |
| Enable the USB host support and class instances. | |
| int | usbh_disable (struct usbh_context *uhs_ctx) |
| Disable the USB host support. | |
| int | usbh_shutdown (struct usbh_context *const uhs_ctx) |
| Shutdown the USB host support. | |
USB HOST Core Layer API.
| #define USBH_CONTROLLER_DEFINE | ( | device_name, | |
| uhc_dev ) |
#include <zephyr/usb/usbh.h>
| #define USBH_DEFINE_CLASS | ( | class_name, | |
| class_api, | |||
| class_priv, | |||
| filt ) |
#include <zephyr/usb/usbh.h>
Define USB host support class data.
Macro defines class (function) data, as well as corresponding node structures used internally by the stack.
| [in] | class_name | Class name |
| [in] | class_api | Pointer to struct usbh_class_api |
| [in] | class_priv | Class private data |
| [in] | filt | Array of usbh_class_filter to match this class or NULL to match everything. When non-NULL, then it has to be terminated by an entry with flags set to 0. |
| int usbh_disable | ( | struct usbh_context * | uhs_ctx | ) |
#include <zephyr/usb/usbh.h>
Disable the USB host support.
This function disables the USB host support.
| [in] | uhs_ctx | Pointer to USB host support context |
| int usbh_enable | ( | struct usbh_context * | uhs_ctx | ) |
#include <zephyr/usb/usbh.h>
Enable the USB host support and class instances.
This function enables the USB host support.
| [in] | uhs_ctx | Pointer to USB host support context |
| int usbh_init | ( | struct usbh_context * | uhs_ctx | ) |
#include <zephyr/usb/usbh.h>
Initialize the USB host support;.
| [in] | uhs_ctx | Pointer to USB host support context |
| int usbh_shutdown | ( | struct usbh_context *const | uhs_ctx | ) |
#include <zephyr/usb/usbh.h>
Shutdown the USB host support.
This function completely disables the USB host support.
| [in] | uhs_ctx | Pointer to USB host support context |