Struct Diepctl8
#[repr(transparent)]pub struct Diepctl8(pub u32);Expand description
Device Control IN Endpoint Control Register 8.
Tuple Fields§
§0: u32Implementations§
§impl Diepctl8
impl Diepctl8
pub const fn set_usbactep(&mut self, val: bool)
pub const fn set_usbactep(&mut self, val: bool)
USB Active Endpoint (USBActEP).
pub const fn dpid(&self) -> Diepctl8Dpid
pub const fn set_dpid(&mut self, val: Diepctl8Dpid)
pub const fn naksts(&self) -> Diepctl8Naksts
pub const fn naksts(&self) -> Diepctl8Naksts
NAK Status (NAKSts).
pub const fn set_naksts(&mut self, val: Diepctl8Naksts)
pub const fn set_naksts(&mut self, val: Diepctl8Naksts)
NAK Status (NAKSts).
pub const fn eptype(&self) -> Diepctl8Eptype
pub const fn eptype(&self) -> Diepctl8Eptype
Endpoint Type (EPType).
pub const fn set_eptype(&mut self, val: Diepctl8Eptype)
pub const fn set_eptype(&mut self, val: Diepctl8Eptype)
Endpoint Type (EPType).
pub const fn txfnum(&self) -> Diepctl8Txfnum
pub const fn txfnum(&self) -> Diepctl8Txfnum
TxFIFO Number (TxFNum).
pub const fn set_txfnum(&mut self, val: Diepctl8Txfnum)
pub const fn set_txfnum(&mut self, val: Diepctl8Txfnum)
TxFIFO Number (TxFNum).
pub const fn set_setd0pid(&mut self, val: bool)
pub const fn set_setd0pid(&mut self, val: bool)
Set DATA0 PID (SetD0PID).
pub const fn set_setd1pid(&mut self, val: bool)
pub const fn set_setd1pid(&mut self, val: bool)
Set DATA1 PID (SetD1PID).
Trait Implementations§
impl Copy for Diepctl8
impl Eq for Diepctl8
impl StructuralPartialEq for Diepctl8
Auto Trait Implementations§
impl Forget for Diepctl8
impl Freeze for Diepctl8
impl Move for Diepctl8
impl RefUnwindSafe for Diepctl8
impl Send for Diepctl8
impl Sync for Diepctl8
impl Unpin for Diepctl8
impl UnsafeUnpin for Diepctl8
impl UnwindSafe for Diepctl8
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