Lines Matching refs:setup
115 usbh_ctrl_send_setup(uhost, (uint8_t *)(&uhost->ctrl.setup), in usbh_ctrl_setup_handler()
135 dir = uhost->ctrl.setup.bmRequestType & USB_REQUEST_DIR_MASK; in usbh_ctrl_setup_wait_handler()
136 if(uhost->ctrl.setup.wLength != 0) in usbh_ctrl_setup_wait_handler()
544 uhost->ctrl.setup.bmRequestType = USB_DIR_D2H | req_type; in usbh_get_descriptor()
545 uhost->ctrl.setup.bRequest = USB_STD_REQ_GET_DESCRIPTOR; in usbh_get_descriptor()
546 uhost->ctrl.setup.wValue = wvalue; in usbh_get_descriptor()
547 uhost->ctrl.setup.wLength = length; in usbh_get_descriptor()
551 uhost->ctrl.setup.wIndex = 0x0409; in usbh_get_descriptor()
555 uhost->ctrl.setup.wIndex = 0; in usbh_get_descriptor()
827 uhost->ctrl.setup.bmRequestType = USB_DIR_H2D | bm_req; in usbh_set_configuration()
828 uhost->ctrl.setup.bRequest = USB_STD_REQ_SET_CONFIGURATION; in usbh_set_configuration()
829 uhost->ctrl.setup.wValue = config; in usbh_set_configuration()
830 uhost->ctrl.setup.wLength = 0; in usbh_set_configuration()
831 uhost->ctrl.setup.wIndex = 0; in usbh_set_configuration()
848 uhost->ctrl.setup.bmRequestType = USB_DIR_H2D | bm_req; in usbh_set_address()
849 uhost->ctrl.setup.bRequest = USB_STD_REQ_SET_ADDRESS; in usbh_set_address()
850 uhost->ctrl.setup.wValue = (uint16_t)address; in usbh_set_address()
851 uhost->ctrl.setup.wLength = 0; in usbh_set_address()
852 uhost->ctrl.setup.wIndex = 0; in usbh_set_address()
870 uhost->ctrl.setup.bmRequestType = USB_DIR_H2D | bm_req; in usbh_set_interface()
871 uhost->ctrl.setup.bRequest = USB_STD_REQ_SET_INTERFACE; in usbh_set_interface()
872 uhost->ctrl.setup.wValue = (uint16_t)altsetting; in usbh_set_interface()
873 uhost->ctrl.setup.wLength = 0; in usbh_set_interface()
874 uhost->ctrl.setup.wIndex = ept_num; in usbh_set_interface()
892 uhost->ctrl.setup.bmRequestType = USB_DIR_H2D | bm_req; in usbh_set_feature()
893 uhost->ctrl.setup.bRequest = USB_STD_REQ_SET_FEATURE; in usbh_set_feature()
894 uhost->ctrl.setup.wValue = (uint16_t)feature; in usbh_set_feature()
895 uhost->ctrl.setup.wLength = 0; in usbh_set_feature()
896 uhost->ctrl.setup.wIndex = index; in usbh_set_feature()
915 uhost->ctrl.setup.bmRequestType = USB_DIR_H2D | bm_req; in usbh_clear_dev_feature()
916 uhost->ctrl.setup.bRequest = USB_STD_REQ_CLEAR_FEATURE; in usbh_clear_dev_feature()
917 uhost->ctrl.setup.wValue = (uint16_t)feature; in usbh_clear_dev_feature()
918 uhost->ctrl.setup.wLength = 0; in usbh_clear_dev_feature()
919 uhost->ctrl.setup.wIndex = index; in usbh_clear_dev_feature()
939 uhost->ctrl.setup.bmRequestType = USB_DIR_H2D | bm_req; in usbh_clear_ept_feature()
940 uhost->ctrl.setup.bRequest = USB_STD_REQ_CLEAR_FEATURE; in usbh_clear_ept_feature()
941 uhost->ctrl.setup.wValue = USB_FEATURE_EPT_HALT; in usbh_clear_ept_feature()
942 uhost->ctrl.setup.wLength = 0; in usbh_clear_ept_feature()
943 uhost->ctrl.setup.wIndex = ept_num; in usbh_clear_ept_feature()