pub struct EcmInfo {
pub comm_if: u8,
pub notif_ep: u8,
pub notif_mps: u16,
pub notif_interval: u8,
pub data_if: u8,
pub data_alt: u8,
pub bulk_in_ep: u8,
pub bulk_in_mps: u16,
pub bulk_out_ep: u8,
pub bulk_out_mps: u16,
pub mac_string_idx: Option<u8>,
pub max_segment_size: u16,
}Expand description
Descriptor-located info for CDC-ECM device.
Fields§
§comm_if: u8Control interface number.
notif_ep: u8Interrupt notification endpoint address.
notif_mps: u16Interrupt notification max packet size.
notif_interval: u8Interrupt notification poll interval in ms.
data_if: u8Data interface number.
data_alt: u8Data alternate setting ID with bulk endpoints.
bulk_in_ep: u8Bulk IN endpoint address.
bulk_in_mps: u16Bulk IN max packet size.
bulk_out_ep: u8Bulk OUT endpoint address.
bulk_out_mps: u16Bulk OUT max packet size.
mac_string_idx: Option<u8>MAC address string descriptor index, if provided.
max_segment_size: u16Maximum segment size (typically 1514).
Trait Implementations§
Auto Trait Implementations§
impl Forget for EcmInfo
impl Freeze for EcmInfo
impl Move for EcmInfo
impl RefUnwindSafe for EcmInfo
impl Send for EcmInfo
impl Sync for EcmInfo
impl Unpin for EcmInfo
impl UnsafeUnpin for EcmInfo
impl UnwindSafe for EcmInfo
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more