Home
last modified time | relevance | path

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

12

/components/drivers/usb/cherryusb/class/hid/
A Dusbd_hid.c20 … usbd_hid_get_report(busid, intf_num, LO_BYTE(setup->wValue), HI_BYTE(setup->wValue), data, len); in hid_class_interface_request_handler()
23 (*data)[0] = usbd_hid_get_idle(busid, intf_num, LO_BYTE(setup->wValue)); in hid_class_interface_request_handler()
32 … usbd_hid_set_report(busid, intf_num, LO_BYTE(setup->wValue), HI_BYTE(setup->wValue), *data, *len); in hid_class_interface_request_handler()
36 usbd_hid_set_idle(busid, intf_num, LO_BYTE(setup->wValue), HI_BYTE(setup->wValue)); in hid_class_interface_request_handler()
40 usbd_hid_set_protocol(busid, intf_num, LO_BYTE(setup->wValue)); in hid_class_interface_request_handler()
A Dusbh_hid.c64 setup->wValue = HID_DESCRIPTOR_TYPE_HID_REPORT << 8; in usbh_hid_get_report_descriptor()
82 setup->wValue = (duration << 8) | report_id; in usbh_hid_set_idle()
101 setup->wValue = 0; in usbh_hid_get_idle()
124 setup->wValue = protocol; in usbh_hid_set_protocol()
143 setup->wValue = 0; in usbh_hid_get_protocol()
166 setup->wValue = (uint16_t)(((uint32_t)report_type << 8U) | (uint32_t)report_id); in usbh_hid_set_report()
185 setup->wValue = (uint16_t)(((uint32_t)report_type << 8U) | (uint32_t)report_id); in usbh_hid_get_report()
/components/drivers/usb/cherryusb/class/aoa/
A Dusbh_aoa.c34 setup->wValue = 0; in usbh_aoa_switch()
47 setup->wValue = 0; in usbh_aoa_switch()
59 setup->wValue = 0; in usbh_aoa_switch()
71 setup->wValue = 0; in usbh_aoa_switch()
83 setup->wValue = 0; in usbh_aoa_switch()
95 setup->wValue = 0; in usbh_aoa_switch()
107 setup->wValue = 0; in usbh_aoa_switch()
119 setup->wValue = 0; in usbh_aoa_switch()
146 setup->wValue = id; in usbh_aoa_register_hid()
161 setup->wValue = id; in usbh_aoa_register_hid()
[all …]
/components/drivers/usb/cherryusb/port/template/
A Dusb_hc.c35 switch (setup->wValue) { in usbh_roothub_control()
45 switch (setup->wValue) { in usbh_roothub_control()
69 switch (setup->wValue) { in usbh_roothub_control()
95 switch (setup->wValue) { in usbh_roothub_control()
/components/drivers/usb/cherryusb/class/vendor/serial/
A Dusbh_cp210x.c54 setup->wValue = 1; in usbh_cp210x_enable()
72 setup->wValue = 0; in usbh_cp210x_set_flow()
92 setup->wValue = 0; in usbh_cp210x_set_chars()
114 setup->wValue = 0; in usbh_cp210x_set_baudrate()
136 setup->wValue = value; in usbh_cp210x_set_data_format()
157 setup->wValue = value; in usbh_cp210x_set_mhs()
A Dusbh_ftdi.c141 setup->wValue = 0; in usbh_ftdi_reset()
159 setup->wValue = value; in usbh_ftdi_set_modem()
201 setup->wValue = value; in usbh_ftdi_set_baudrate()
228 setup->wValue = value; in usbh_ftdi_set_data_format()
246 setup->wValue = value; in usbh_ftdi_set_latency_timer()
264 setup->wValue = value; in usbh_ftdi_set_flow_ctrl()
283 setup->wValue = 0x0000; in usbh_ftdi_read_modem_status()
A Dusbh_pl2303.c95 setup->wValue = PL2303_STATUS_REG_PL2303HX; in usbh_pl2303_get_chiptype()
143 setup->wValue = value; in usbh_pl2303_do()
161 setup->wValue = 0; in usbh_pl2303_set_line_coding()
182 setup->wValue = 0; in usbh_pl2303_get_line_coding()
205 setup->wValue = (dtr << 0) | (rts << 1); in usbh_pl2303_set_line_state()
240 setup->wValue = 0; in usbh_pl2303_connect()
A Dusbh_ch34x.c103 setup->wValue = 0; in usbh_ch34x_get_version()
127 setup->wValue = 0x2727; in usbh_ch34x_flow_ctrl()
200 setup->wValue = value; in usbh_ch34x_set_line_coding()
224 setup->wValue = 0x0f | (dtr << 5) | (rts << 6); in usbh_ch34x_set_line_state()
/components/drivers/usb/cherryusb/core/
A Dusbd_core.c102 setup->wValue, in usbd_print_setup()
582 uint16_t value = setup->wValue;
678 uint8_t type = HI_BYTE(setup->wValue);
761 g_usbd_core[busid].intf_altsetting[intf_num] = LO_BYTE(setup->wValue);
762 usbd_set_interface(busid, setup->wIndex, setup->wValue);
807 if (setup->wValue == USB_FEATURE_ENDPOINT_HALT) {
818 if (setup->wValue == USB_FEATURE_ENDPOINT_HALT) {
999 … *data = (uint8_t *)g_usbd_core[busid].msosv1_desc->comp_id_property[setup->wValue];
1000 desclen = g_usbd_core[busid].msosv1_desc->comp_id_property[setup->wValue][0] +
1067 if ((setup->bRequest == 0x06) && (setup->wValue == 0x0600)) {
[all …]
A Dusbh_core.c340 setup->wValue, in usbh_print_setup()
391 setup->wValue = (uint16_t)((USB_DESCRIPTOR_TYPE_DEVICE << 8) | 0); in usbh_enumerate()
432 setup->wValue = dev_addr; in usbh_enumerate()
451 setup->wValue = (uint16_t)((USB_DESCRIPTOR_TYPE_DEVICE << 8) | 0); in usbh_enumerate()
475 setup->wValue = (uint16_t)((USB_DESCRIPTOR_TYPE_CONFIGURATION << 8) | config_index); in usbh_enumerate()
502 setup->wValue = (uint16_t)((USB_DESCRIPTOR_TYPE_CONFIGURATION << 8) | config_index); in usbh_enumerate()
578 setup->wValue = config_value; in usbh_enumerate()
591 setup->wValue = 0; in usbh_enumerate()
749 setup->wValue = (uint16_t)((USB_DESCRIPTOR_TYPE_STRING << 8) | index); in usbh_get_string_desc()
781 setup->wValue = altsetting; in usbh_set_interface()
/components/legacy/usb/usbhost/class/
A Dhid.c51 setup.wValue = (duration << 8 )| report_id; in rt_usbh_hid_set_idle()
87 setup.wValue = (type << 8 ) + id; in rt_usbh_hid_get_report()
130 setup.wValue = 0x02 << 8; in rt_usbh_hid_set_report()
163 setup.wValue = protocol; in rt_usbh_hid_set_protocal()
199 setup.wValue = USB_DESC_TYPE_REPORT << 8; in rt_usbh_hid_get_report_descriptor()
/components/drivers/usb/cherryusb/class/wireless/
A Dusbh_rndis.c65 setup->wValue = 0; in usbh_rndis_init_msg_transfer()
81 setup->wValue = 0; in usbh_rndis_init_msg_transfer()
123 setup->wValue = 0; in usbh_rndis_query_msg_transfer()
139 setup->wValue = 0; in usbh_rndis_query_msg_transfer()
180 setup->wValue = 0; in usbh_rndis_set_msg_transfer()
196 setup->wValue = 0; in usbh_rndis_set_msg_transfer()
247 setup->wValue = 0; in usbh_rndis_keepalive()
263 setup->wValue = 0; in usbh_rndis_keepalive()
/components/drivers/usb/cherryusb/class/hub/
A Dusbh_hub.c68 setup->wValue = HUB_DESCRIPTOR_TYPE_HUB << 8; in _usbh_hub_get_hub_descriptor()
90 setup->wValue = HUB_DESCRIPTOR_TYPE_HUB3 << 8; in _usbh_hub_get_hub_ss_descriptor()
113 setup->wValue = 0; in _usbh_hub_get_portstatus()
133 setup->wValue = feature; in _usbh_hub_set_feature()
148 setup->wValue = feature; in _usbh_hub_clear_feature()
164 setup->wValue = depth; in _usbh_hub_set_depth()
228 setup->wValue = 0; in usbh_hub_get_portstatus()
246 setup->wValue = feature; in usbh_hub_set_feature()
264 setup->wValue = feature; in usbh_hub_clear_feature()
283 setup->wValue = depth; in usbh_hub_set_depth()
/components/drivers/usb/cherryusb/port/ohci/
A Dusb_hc_ohci.c150 switch (setup->wValue) { in ohci_roothub_control()
160 switch (setup->wValue) { in ohci_roothub_control()
184 switch (setup->wValue) { in ohci_roothub_control()
232 switch (setup->wValue) { in ohci_roothub_control()
/components/drivers/usb/cherryusb/class/audio/
A Dusbh_audio.c97 setup->wValue = altsetting; in usbh_audio_open()
111 setup->wValue = (AUDIO_EP_CONTROL_SAMPLING_FEQ << 8) | 0x00; in usbh_audio_open()
162 setup->wValue = 0; in usbh_audio_close()
220 setup->wValue = (AUDIO_FU_CONTROL_VOLUME << 8) | ch; in usbh_audio_set_volume()
233 setup->wValue = (AUDIO_FU_CONTROL_VOLUME << 8) | ch; in usbh_audio_set_volume()
246 setup->wValue = (AUDIO_FU_CONTROL_VOLUME << 8) | ch; in usbh_audio_set_volume()
258 setup->wValue = (AUDIO_FU_CONTROL_VOLUME << 8) | ch; in usbh_audio_set_volume()
270 setup->wValue = (AUDIO_FU_CONTROL_VOLUME << 8) | ch; in usbh_audio_set_volume()
334 setup->wValue = (AUDIO_FU_CONTROL_MUTE << 8) | ch; in usbh_audio_set_mute()
A Dusbd_audio.c28 control_selector = HI_BYTE(setup->wValue); in audio_class_endpoint_request_handler()
77 control_selector = HI_BYTE(setup->wValue); in audio_class_interface_request_handler()
78 ch = LO_BYTE(setup->wValue); in audio_class_interface_request_handler()
/components/drivers/usb/cherryusb/class/cdc/
A Dusbd_cdc_acm.c54 dtr = (setup->wValue & 0x0001); in cdc_acm_class_interface_request_handler()
55 rts = (setup->wValue & 0x0002); in cdc_acm_class_interface_request_handler()
A Dusbd_cdc_ecm.c44 notify->wValue = value; in usbd_cdc_ecm_send_notify()
54 notify->wValue = 0U; in usbd_cdc_ecm_send_notify()
63 notify->wValue = 0U; in usbd_cdc_ecm_send_notify()
A Dusbh_cdc_acm.c56 setup->wValue = 0; in usbh_cdc_acm_set_line_coding()
77 setup->wValue = 0; in usbh_cdc_acm_get_line_coding()
100 setup->wValue = (dtr << 0) | (rts << 1); in usbh_cdc_acm_set_line_state()
A Dusb_cdc.h351 uint16_t wValue; member
372 uint16_t wValue; member
/components/legacy/usb/usbhost/core/
A Dusbhost_core.c327 setup.wValue = type << 8; in rt_usbh_get_descriptor()
363 setup.wValue = device->index; in rt_usbh_set_address()
398 setup.wValue = config; in rt_usbh_set_configure()
432 setup.wValue = intf; in rt_usbh_set_interface()
463 setup.wValue = feature; in rt_usbh_clear_feature()
A Dhub.c136 setup.wValue = USB_DESC_TYPE_HUB << 8; in rt_usbh_hub_get_descriptor()
169 setup.wValue = 0; in rt_usbh_hub_get_status()
210 setup.wValue = 0; in rt_usbh_hub_get_port_status()
253 setup.wValue = feature; in rt_usbh_hub_clear_port_feature()
294 setup.wValue = feature; in rt_usbh_hub_set_port_feature()
/components/legacy/usb/usbdevice/core/
A Dusbdevice_core.c109 index = setup->wValue & 0xFF; in _get_string_descriptor()
195 switch(setup->wValue >> 8) in _get_descriptor()
311 rt_usbd_set_altsetting(intf, setup->wValue & 0xFF); in _set_interface()
387 if (setup->wValue > device->dev_desc.bNumConfigurations) in _set_config()
393 if (setup->wValue == 0) in _set_config()
402 rt_usbd_set_config(device, setup->wValue); in _set_config()
450 dcd_set_address(device->dcd, setup->wValue); in _set_address()
528 rt_usbd_set_feature(device, setup->wValue, setup->wIndex); in _standard_request()
590 if(USB_EP_HALT == setup->wValue && ep->stalled == RT_TRUE) in _standard_request()
611 if(USB_EP_HALT == setup->wValue) in _standard_request()
[all …]
/components/drivers/usb/cherryusb/class/video/
A Dusbh_video.c73 setup->wValue = cs << 8; in usbh_video_get()
109 setup->wValue = cs << 8; in usbh_video_set()
251 setup->wValue = altsetting; in usbh_video_open()
305 setup->wValue = 0; in usbh_video_close()
/components/legacy/usb/usbdevice/class/
A Dhid.c470 if((setup->wValue >> 8) == USB_DESC_TYPE_REPORT) in _interface_handler()
474 else if((setup->wValue >> 8) == USB_DESC_TYPE_HID) in _interface_handler()
508 data->protocol = setup->wValue; in _interface_handler()

Completed in 720 milliseconds

12