Struct stm32_metapac::otg::regs::Diepctl
#[repr(transparent)]pub struct Diepctl(pub u32);
Expand description
Device endpoint control register
Tuple Fields§
§0: u32
Implementations§
§impl Diepctl
impl Diepctl
pub fn set_usbaep(&mut self, val: bool)
pub fn set_usbaep(&mut self, val: bool)
USBAEP
pub const fn eonum_dpid(&self) -> bool
pub const fn eonum_dpid(&self) -> bool
EONUM/DPID
pub fn set_eonum_dpid(&mut self, val: bool)
pub fn set_eonum_dpid(&mut self, val: bool)
EONUM/DPID
pub fn set_naksts(&mut self, val: bool)
pub fn set_naksts(&mut self, val: bool)
NAKSTS
pub fn set_txfnum(&mut self, val: u8)
pub fn set_txfnum(&mut self, val: u8)
TXFNUM
pub const fn sd0pid_sevnfrm(&self) -> bool
pub const fn sd0pid_sevnfrm(&self) -> bool
SD0PID/SEVNFRM
pub fn set_sd0pid_sevnfrm(&mut self, val: bool)
pub fn set_sd0pid_sevnfrm(&mut self, val: bool)
SD0PID/SEVNFRM
pub const fn soddfrm_sd1pid(&self) -> bool
pub const fn soddfrm_sd1pid(&self) -> bool
SODDFRM/SD1PID
pub fn set_soddfrm_sd1pid(&mut self, val: bool)
pub fn set_soddfrm_sd1pid(&mut self, val: bool)
SODDFRM/SD1PID
Trait Implementations§
impl Copy for Diepctl
impl Eq for Diepctl
impl StructuralEq for Diepctl
impl StructuralPartialEq for Diepctl
Auto Trait Implementations§
impl RefUnwindSafe for Diepctl
impl Send for Diepctl
impl Sync for Diepctl
impl Unpin for Diepctl
impl UnwindSafe for Diepctl
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