libopencm3
A free/libre/open-source firmware library for various ARM Cortex-M3 microcontrollers.
|
Generic USB Standard Request Interface More...
Generic USB Standard Request Interface
LGPL License Terms libopencm3 License
|
static |
Definition at line 68 of file usb_standard.c.
References usb_interface::altsetting, usb_config_descriptor::bLength, usb_interface_descriptor::bLength, usb_endpoint_descriptor::bLength, usb_iface_assoc_descriptor::bLength, usb_interface_descriptor::bNumEndpoints, usb_config_descriptor::bNumInterfaces, usb_interface_descriptor::endpoint, usb_interface_descriptor::extra, usb_endpoint_descriptor::extra, usb_interface_descriptor::extralen, usb_endpoint_descriptor::extralen, usb_interface::iface_assoc, usb_config_descriptor::interface, usb_interface::num_altsetting, and usbd_dev.
Referenced by usb_standard_get_descriptor().
|
static |
Definition at line 147 of file usb_standard.c.
Referenced by usb_standard_get_descriptor().
|
static |
Definition at line 142 of file usb_standard.c.
Referenced by usb_standard_get_descriptor().
|
static |
Definition at line 407 of file usb_standard.c.
References usbd_dev, and USBD_REQ_HANDLED.
Referenced by _usbd_standard_request_device().
|
static |
Definition at line 444 of file usb_standard.c.
References usbd_dev, usbd_ep_stall_get(), USBD_REQ_HANDLED, and usb_setup_data::wIndex.
Referenced by _usbd_standard_request_endpoint().
|
static |
Definition at line 460 of file usb_standard.c.
References usbd_dev, usbd_ep_stall_set(), USBD_REQ_HANDLED, and usb_setup_data::wIndex.
Referenced by _usbd_standard_request_endpoint().
|
static |
Definition at line 473 of file usb_standard.c.
References usbd_dev, usbd_ep_stall_set(), USBD_REQ_HANDLED, and usb_setup_data::wIndex.
Referenced by _usbd_standard_request_endpoint().
|
static |
Definition at line 328 of file usb_standard.c.
References usb_config_descriptor::bConfigurationValue, usbd_dev, and USBD_REQ_HANDLED.
Referenced by _usbd_standard_request_device().
|
static |
Definition at line 153 of file usb_standard.c.
References usb_string_descriptor::bDescriptorType, usb_string_descriptor::bLength, build_config_descriptor(), usb_descriptor_index(), usb_descriptor_type(), USB_DT_CONFIGURATION, USB_DT_DEVICE, USB_DT_STRING, USB_LANGID_ENGLISH_US, usbd_dev, USBD_REQ_HANDLED, USBD_REQ_NOTSUPP, usb_string_descriptor::wData, usb_setup_data::wIndex, and usb_setup_data::wValue.
Referenced by _usbd_standard_request_device().
|
static |
Definition at line 387 of file usb_standard.c.
References usb_config_descriptor::bNumInterfaces, usb_interface::cur_altsetting, usb_config_descriptor::interface, usbd_dev, USBD_REQ_HANDLED, USBD_REQ_NOTSUPP, and usb_setup_data::wIndex.
Referenced by _usbd_standard_request_interface().
|
static |
Definition at line 426 of file usb_standard.c.
References usbd_dev, and USBD_REQ_HANDLED.
Referenced by _usbd_standard_request_interface().
|
static |
Definition at line 239 of file usb_standard.c.
References usb_setup_data::bmRequestType, usbd_dev, USBD_REQ_HANDLED, USBD_REQ_NOTSUPP, and usb_setup_data::wValue.
Referenced by _usbd_standard_request_device().
|
static |
Definition at line 266 of file usb_standard.c.
References usb_config_descriptor::bNumInterfaces, usb_interface::cur_altsetting, usb_config_descriptor::interface, usbd_dev, USBD_REQ_HANDLED, USBD_REQ_NOTSUPP, and usb_setup_data::wValue.
Referenced by _usbd_standard_request_device().
|
static |
Definition at line 349 of file usb_standard.c.
References usb_config_descriptor::bNumInterfaces, usb_interface::cur_altsetting, usb_config_descriptor::interface, usb_interface::num_altsetting, usbd_dev, USBD_REQ_HANDLED, USBD_REQ_NOTSUPP, usb_setup_data::wIndex, and usb_setup_data::wValue.
Referenced by _usbd_standard_request_interface().
void usbd_register_set_altsetting_callback | ( | usbd_device * | usbd_dev, |
usbd_set_altsetting_callback | callback | ||
) |
Registers a "Set Interface" (alternate setting) callback.
usbd_dev | the usb device handle returned from usbd_init |
callback | your desired callback function |
Definition at line 62 of file usb_standard.c.
References usbd_dev.
int usbd_register_set_config_callback | ( | usbd_device * | usbd_dev, |
usbd_set_config_callback | callback | ||
) |
Registers a "Set Config" callback.
usbd_dev | the usb device handle returned from usbd_init |
callback | your desired callback function |
Definition at line 42 of file usb_standard.c.
References usbd_dev.
Referenced by usb_msc_init().