pdev->dev_state = USBD_STATE_ADDRESSED; }else{ pdev->dev_state = USBD_STATE_DEFAULT; } } }else{ USBD_CtlError(pdev , req); } } 开发者ID:Carrostic,项目名称:stm32plus,代码行数:41,代码来源:usbd_ctlreq.cpp 示例3: USBD_StdItfReq /** * @brief USBD_StdItfReq * Handle stand...
USB_STATE_NOTATTACHED = 0, /* chapter 9 and authentication (wireless) device states */ USB_STATE_ATTACHED, USB_STATE_POWERED, /* wired */ USB_STATE_RECONNECTING, /* auth */ USB_STATE_UNAUTHENTICATED, /* auth */ USB_STATE_DEFAULT, /* limited function */ USB_STATE_ADDRESS, USB_STATE...
sc->sc_rts = onoff;break;default:return; }/* build a usb request */ls = (sc->sc_dtr ? UCDC_LINE_DTR :0) | (sc->sc_rts ? UCDC_LINE_RTS :0); req.bmRequestType = UT_WRITE_CLASS_INTERFACE; req.bRequest = UCDC_SET_CONTROL_LINE_STATE; USETW(req.wValue, ls); USETW(req.w...
This function does not return the status of the pipe from the device perspective (for example: reflected endpoint state). A USB client driver might obtain this status by sending a USB Standard GetStatus device request which refers to the wanted endpoint address to the default control pipe of ...
Wakeup On LAN 网络唤醒:该选项设置允许在网络信号接入时将电脑从休眠状态唤醒。该设置对待机状态(Standby state)无效。只能在操作系统中唤醒待机状态。该设置仅在接有交流电源适配器时有效。 Auto On Mod 自动开机模式:注意若交流电源适配器没有接好,该设置将无法生效。该选项可设置计算机自动开机时间,可以设置将计算...
Search or jump to... Search code, repositories, users, issues, pull requests... Provide feedback We read every piece of feedback, and take your input very seriously. Include my email address so I can be contacted Cancel Submit feedback Saved searches Use saved searches to filter your...
uint32_t dev_default_config; uint32_t dev_config_status; USBD_SpeedTypeDef dev_speed; USBD_EndpointTypeDef ep_in[16]; USBD_EndpointTypeDef ep_out[16]; uint32_t ep0_state; uint32_t ep0_data_len; uint8_t dev_state; uint8_t dev_old_state; ...
(String function, boolean makeDefault) { mContext.enforceCallingOrSelfPermission(android.Manifest.permission.MANAGE_USB, null); if (mDeviceManager != null) { mDeviceManager.setCurrentFunctions(function, makeDefault); } else { throw new IllegalStateException("USB device mode not supported"); } }...
GetStateInvalidParams GetStateInvalidParams GetSubscribedMessageAfterTimeout GetTransmissionRate GPIO WinRT 功能和壓力測試 I2C WinRT 進階功能測試 (需要 mbed LPC1768) I2C WinRT IO 壓力測試 (需要 EEPROM) I2C WinRT 不存在從屬位址測試 I2C WinRT 讀取測試 (需要 EEPROM) I2C WinRT 寫入測試 (需要 EEPROM...
应用配置代码 static void hid_key_data_send(usb_dev *udev) { standard_hid_handler *hid = (standard_hid_handler*)udev->class_data[USBD_HID_INTERFACE]; if (hid->prev_transfer_complete) { switch (key_state()) { case CHAR_A: hid->data[2] = 0x04U; break; case CHAR_B: hid->data...