Zephyr API 3.6.99
Loading...
Searching...
No Matches
usb_interface_cfg_data Struct Reference

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.
 

Detailed Description

USB Interface Configuration.

This structure contains USB interface configuration.

Field Documentation

◆ class_handler

usb_request_handler usb_interface_cfg_data::class_handler

Handler for USB Class specific Control (EP 0) communications.

◆ custom_handler

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.

◆ vendor_handler

usb_request_handler usb_interface_cfg_data::vendor_handler

Handler for USB Vendor specific commands.


The documentation for this struct was generated from the following file: