Home
last modified time | relevance | path

Searched refs:wValue (Results 1 – 25 of 34) sorted by relevance

12

/Zephyr-latest/subsys/usb/host/
Dusbh_ch9.c40 const uint16_t wValue, in usbh_req_setup() argument
48 .wValue = sys_cpu_to_le16(wValue), in usbh_req_setup()
94 const uint16_t wValue = (type << 8) | index; in usbh_req_desc() local
97 bmRequestType, bRequest, wValue, id, len, in usbh_req_desc()
229 const uint16_t wValue = alt; in usbh_req_set_alt() local
233 bmRequestType, bRequest, wValue, wIndex, 0, in usbh_req_set_alt()
241 const uint16_t wValue = USB_SFS_REMOTE_WAKEUP; in usbh_req_set_sfs_rwup() local
244 bmRequestType, bRequest, wValue, 0, 0, in usbh_req_set_sfs_rwup()
252 const uint16_t wValue = USB_SFS_REMOTE_WAKEUP; in usbh_req_clear_sfs_rwup() local
255 bmRequestType, bRequest, wValue, 0, 0, in usbh_req_clear_sfs_rwup()
[all …]
Dusbh_ch9.h18 const uint16_t wValue,
Dusbh_shell.c94 const uint16_t wValue = 0x0000; in cmd_vendor_in() local
106 ret = usbh_req_setup(udev, bmRequestType, bRequest, wValue, 0, wLength, buf); in cmd_vendor_in()
122 const uint16_t wValue = 0x0000; in cmd_vendor_out() local
135 ret = usbh_req_setup(udev, bmRequestType, bRequest, wValue, 0, wLength, buf); in cmd_vendor_out()
/Zephyr-latest/subsys/usb/device_next/
Dusbd_ch9.c63 ret = udc_set_address(uds_ctx->dev, setup->wValue); in post_status_stage()
65 LOG_ERR("Failed to set device address 0x%x", setup->wValue); in post_status_stage()
70 setup->wValue == USB_SFS_TEST_MODE) { in post_status_stage()
90 if (setup->wValue > 127 || setup->wIndex || setup->wLength) { in sreq_set_address()
108 ret = udc_set_address(uds_ctx->dev, setup->wValue); in sreq_set_address()
110 LOG_ERR("Failed to set device address 0x%x", setup->wValue); in sreq_set_address()
117 if (usbd_state_is_address(uds_ctx) && setup->wValue == 0) { in sreq_set_address()
133 LOG_INF("Set Configuration Request value %u", setup->wValue); in sreq_set_configuration()
136 if (setup->wValue > UINT8_MAX || setup->wLength) { in sreq_set_configuration()
151 if (setup->wValue && !usbd_config_exist(uds_ctx, speed, setup->wValue)) { in sreq_set_configuration()
[all …]
/Zephyr-latest/subsys/usb/device_next/class/
Dusbd_hid.c23 #define HID_GET_IDLE_DURATION(wValue) ((wValue) >> 8) argument
24 #define HID_GET_IDLE_ID(wValue) (wValue) argument
25 #define HID_GET_REPORT_TYPE(wValue) ((wValue) >> 8) argument
26 #define HID_GET_REPORT_ID(wValue) (wValue) argument
137 const uint32_t duration = HID_GET_IDLE_DURATION(setup->wValue); in handle_set_idle()
138 const uint8_t id = HID_GET_IDLE_ID(setup->wValue); in handle_set_idle()
162 const uint8_t id = HID_GET_IDLE_ID(setup->wValue); in handle_get_idle()
198 const uint8_t type = HID_GET_REPORT_TYPE(setup->wValue); in handle_set_report()
199 const uint8_t id = HID_GET_REPORT_ID(setup->wValue); in handle_set_report()
234 const uint8_t type = HID_GET_REPORT_TYPE(setup->wValue); in handle_get_report()
[all …]
Dusbd_hid_api.c78 .wValue = (type << 8) | id, in wrapper_get_report()
100 .wValue = (type << 8) | id, in wrapper_set_report()
Dusbd_cdc_ecm.c50 uint16_t wValue; member
324 .wValue = sys_cpu_to_le16((uint16_t)connected), in cdc_ecm_send_notification()
Dusbd_msc.c686 setup->wValue == 0 && setup->wLength == 0) { in msc_bot_control_to_dev()
704 setup->wValue == 0 && setup->wLength >= 1) { in msc_bot_control_to_host()
/Zephyr-latest/subsys/usb/device/
Dusb_device.c148 uint16_t wValue; member
170 setup->wValue, in usb_print_setup()
306 setup->wValue = sys_le16_to_cpu(setup_raw.wValue); in usb_handle_control_transfer()
468 type = USB_GET_DESCRIPTOR_TYPE(setup->wValue); in usb_get_descriptor()
469 index = USB_GET_DESCRIPTOR_INDEX(setup->wValue); in usb_get_descriptor()
512 LOG_DBG("Desc %x not found!", setup->wValue); in usb_get_descriptor()
687 LOG_DBG("Set Configuration %u request", setup->wValue); in usb_set_configuration()
689 if (setup->wValue == 0U) { in usb_set_configuration()
691 usb_dev.configuration = setup->wValue; in usb_set_configuration()
706 if (cur_config == setup->wValue) { in usb_set_configuration()
[all …]
Dos_desc.c24 if (USB_GET_DESCRIPTOR_TYPE(setup->wValue) == USB_DESC_STRING && in usb_handle_os_desc()
25 USB_GET_DESCRIPTOR_INDEX(setup->wValue) == USB_OSDESC_STRING_DESC_INDEX) { in usb_handle_os_desc()
Dbos.c57 if (USB_GET_DESCRIPTOR_TYPE(setup->wValue) == USB_DESC_BOS) { in usb_handle_bos()
/Zephyr-latest/include/zephyr/usb/
Dusb_ch9.h46 uint16_t wValue; member
281 #define USB_GET_DESCRIPTOR_TYPE(wValue) ((uint8_t)((wValue) >> 8)) argument
284 #define USB_GET_DESCRIPTOR_INDEX(wValue) ((uint8_t)(wValue)) argument
/Zephyr-latest/samples/subsys/usb/webusb/src/
Dmain.c262 if (USB_GET_DESCRIPTOR_TYPE(pSetup->wValue) == USB_DESC_STRING && in custom_handle_req()
263 USB_GET_DESCRIPTOR_INDEX(pSetup->wValue) == 0xEE) { in custom_handle_req()
302 uint8_t index = USB_GET_DESCRIPTOR_INDEX(pSetup->wValue); in vendor_handle_req()
/Zephyr-latest/subsys/usb/device/class/dfu/
Dusb_dfu.c507 setup->wValue, setup->wLength, dfu_data.state); in dfu_class_handle_to_host()
527 dfu_data.block_nr != setup->wValue) { in dfu_class_handle_to_host()
529 "len %d", setup->wValue, in dfu_class_handle_to_host()
639 setup->wValue, setup->wLength, dfu_data.state); in dfu_class_handle_to_device()
682 setup->wValue, dfu_data.state); in dfu_class_handle_to_device()
700 timeout = MIN(setup->wValue, CONFIG_USB_DFU_DETACH_TIMEOUT); in dfu_class_handle_to_device()
809 LOG_DBG("DFU alternate setting %d", setup->wValue); in dfu_custom_handle_req()
813 switch (setup->wValue) { in dfu_custom_handle_req()
834 dfu_data.alt_setting = setup->wValue; in dfu_custom_handle_req()
/Zephyr-latest/tests/subsys/usb/os_desc/src/
Dusb_osdesc.c96 setup.wValue = (USB_DESC_STRING & 0xFF) << 8; in test_handle_os_desc()
97 setup.wValue |= USB_OSDESC_STRING_DESC_INDEX; in test_handle_os_desc()
/Zephyr-latest/samples/subsys/usb/webusb-next/src/
Dwebusb.h71 uint8_t index = USB_GET_DESCRIPTOR_INDEX(setup->wValue); in webusb_to_host_cb()
/Zephyr-latest/subsys/usb/device/class/hid/
Dcore.c158 uint8_t report_id = (uint8_t)setup->wValue; in hid_on_get_idle()
204 if (setup->wValue) { in hid_on_get_protocol()
224 uint8_t rate = (uint8_t)(setup->wValue >> 8); in hid_on_set_idle()
225 uint8_t report_id = (uint8_t)setup->wValue; in hid_on_set_idle()
244 dev_data->idle_on = (bool)setup->wValue; in hid_on_set_idle()
268 uint16_t protocol = setup->wValue; in hid_on_set_protocol()
512 uint8_t value = (uint8_t)(setup->wValue >> 8); in hid_custom_handle_req()
/Zephyr-latest/subsys/usb/device/class/audio/
Daudio.c533 uint8_t ch = (setup->wValue) & 0xFF; in handle_fu_mute_req()
566 uint8_t ch = (setup->wValue) & 0xFF; in handle_fu_volume_req()
652 ch = (pSetup->wValue) & 0xFF; in handle_feature_unit_req()
653 cs = ((pSetup->wValue) >> 8) & 0xFF; in handle_feature_unit_req()
820 audio_dev_data->tx_enable = pSetup->wValue; in audio_custom_handler()
822 audio_dev_data->rx_enable = pSetup->wValue; in audio_custom_handler()
842 pSetup->bmRequestType, pSetup->bRequest, pSetup->wValue, in audio_class_handle_req()
/Zephyr-latest/drivers/usb/device/
Dusb_dc_native_posix_adapt.h72 uint16_t wValue; member
/Zephyr-latest/drivers/usb/common/nrf_usbd_common/
Dnrf_usbd_common.h269 uint16_t wValue; /*!< byte 2, 3 */ member
/Zephyr-latest/include/zephyr/usb/class/
Dusb_cdc.h214 uint16_t wValue; member
/Zephyr-latest/tests/subsys/usb/bos/src/
Dtest_bos.c207 setup.wValue = (USB_DESC_BOS & 0xFF) << 8; in test_usb_bos()
/Zephyr-latest/drivers/usb/udc/
Dudc_nrf.c386 setup->wValue &= 0x7F; in udc_event_xfer_setup()
399 setup->wValue = NRF_USBD->USBADDR; in udc_event_xfer_setup()
/Zephyr-latest/subsys/usb/device/class/netusb/
Dfunction_ecm.c211 setup->wIndex, setup->wValue); in ecm_class_handler()
/Zephyr-latest/subsys/usb/device/class/
Dcdc_acm.c190 dev_data->line_state = (uint8_t)setup->wValue; in cdc_acm_class_handle_req()
779 notification.wValue = 0U; in cdc_acm_send_notification()

12