#[repr(C)]pub struct mss_usbh_target_info {
pub addr: u8,
pub speed: mss_usb_device_speed_t,
pub state: mss_usb_state_t,
pub hub_addr: u8,
pub hub_port: u8,
pub hub_mtt: u8,
pub tdev_maxpktsz0: u16,
pub class_handle: *mut mss_usbh_class_cb_t,
}Expand description
The mss_usbh_tdev_info_t type provides the prototype for the detailed information of the attached device. Some of the parameters are only applicable when multi-point support is enabled on MSS USB. Multi-point support is currently not enabled in the USBH driver.
addr The addr parameter provides the device address assigned to the attached device by the USBH driver.
speed The speed parameter indicates the USB speed of operation at which the USBH driver is communicating with the attached device.
state The state parameter provides the current state of the attached device. E.g. address, Configured etc.
hub_addr The hub_addr parameter provides the address of the hub to which the device is attached. This parameter is meaningful only when Multi-Point support is enabled. Multi-point support is currently not enabled in the USBH driver.
hub_port The hub_port parameter provides the port number of the hub to which the device is attached. This parameter is meaningful only when Multi-Point support is enabled. Multi-point support is currently not enabled in the USBH driver.
hub_mtt The hub_mtt parameter indicates whether or not the hub to which the device is attached supports multiple transaction translators. This parameter is meaningful only when Multi-Point support is enabled. Multi-point support is currently not enabled in the USBH driver.
maxpktsz0 The maxpktsz0 parameter provides the maximum packet size of the control endpoint on the attached device.
state The state parameter provides the current state of the attached device. E.g. address, Configured etc.
class_handle The class_handle parameter is the class handle registered with the USBH driver using MSS_USBH_register_class_driver() function. This handle is used by the USBH driver to call the call-back functions implemented by the USBH-Class driver.
Fields§
§addr: u8§speed: mss_usb_device_speed_t§state: mss_usb_state_t§hub_addr: u8§hub_port: u8§hub_mtt: u8§tdev_maxpktsz0: u16§class_handle: *mut mss_usbh_class_cb_tTrait Implementations§
Source§impl Clone for mss_usbh_target_info
impl Clone for mss_usbh_target_info
Source§fn clone(&self) -> mss_usbh_target_info
fn clone(&self) -> mss_usbh_target_info
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more