#[repr(transparent)]pub struct Doepctl0(pub u32);Expand description
Device Control OUT Endpoint 0 Control Register
Tuple Fields§
§0: u32Implementations§
Source§impl Doepctl0
impl Doepctl0
Sourcepub const fn mps(&self) -> Doepctl0Mps
pub const fn mps(&self) -> Doepctl0Mps
Maximum Packet Size (MPS)
Sourcepub const fn set_mps(&mut self, val: Doepctl0Mps)
pub const fn set_mps(&mut self, val: Doepctl0Mps)
Maximum Packet Size (MPS)
Sourcepub const fn set_usbactep(&mut self, val: bool)
pub const fn set_usbactep(&mut self, val: bool)
USB Active Endpoint (USBActEP)
Sourcepub const fn set_naksts(&mut self, val: bool)
pub const fn set_naksts(&mut self, val: bool)
NAK Status (NAKSts)
Sourcepub const fn eptype(&self) -> Doepctl0Eptype
pub const fn eptype(&self) -> Doepctl0Eptype
Endpoint Type (EPType)
Sourcepub const fn set_eptype(&mut self, val: Doepctl0Eptype)
pub const fn set_eptype(&mut self, val: Doepctl0Eptype)
Endpoint Type (EPType)
Trait Implementations§
impl Copy for Doepctl0
impl Eq for Doepctl0
impl StructuralPartialEq for Doepctl0
Auto Trait Implementations§
impl Freeze for Doepctl0
impl RefUnwindSafe for Doepctl0
impl Send for Doepctl0
impl Sync for Doepctl0
impl Unpin for Doepctl0
impl UnwindSafe for Doepctl0
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)