mss_usbh_target_info

Struct mss_usbh_target_info 

Source
#[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_t

Trait Implementations§

Source§

impl Clone for mss_usbh_target_info

Source§

fn clone(&self) -> mss_usbh_target_info

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for mss_usbh_target_info

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Copy for mss_usbh_target_info

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.