Zephyr API Documentation 4.0.0-rc2
A Scalable Open Source RTOS
|
USB Interface Configuration. More...
#include <usb_device.h>
Data Fields | |
usb_request_handler | class_handler |
Handler for USB Class specific Control (EP 0) communications. | |
usb_request_handler | vendor_handler |
Handler for USB Vendor specific commands. | |
usb_request_handler | custom_handler |
The custom request handler gets a first chance at handling the request before it is handed over to the 'chapter 9' request handler. | |
USB Interface Configuration.
This structure contains USB interface configuration.
usb_request_handler usb_interface_cfg_data::class_handler |
Handler for USB Class specific Control (EP 0) communications.
usb_request_handler usb_interface_cfg_data::custom_handler |
The custom request handler gets a first chance at handling the request before it is handed over to the 'chapter 9' request handler.
return 0 on success, -EINVAL if the request has not been handled by the custom handler and instead needs to be handled by the core USB stack. Any other error code to denote failure within the custom handler.
usb_request_handler usb_interface_cfg_data::vendor_handler |
Handler for USB Vendor specific commands.