#[repr(transparent)]pub struct Hprt(pub u32);Expand description
Host Port Control and Status Register
Tuple Fields§
§0: u32Implementations§
Source§impl Hprt
impl Hprt
Sourcepub const fn prtconnsts(&self) -> bool
pub const fn prtconnsts(&self) -> bool
Port Connect Status (PrtConnSts)
Sourcepub const fn set_prtconnsts(&mut self, val: bool)
pub const fn set_prtconnsts(&mut self, val: bool)
Port Connect Status (PrtConnSts)
Sourcepub const fn prtconndet(&self) -> bool
pub const fn prtconndet(&self) -> bool
Port Connect Detected (PrtConnDet)
Sourcepub const fn set_prtconndet(&mut self, val: bool)
pub const fn set_prtconndet(&mut self, val: bool)
Port Connect Detected (PrtConnDet)
Sourcepub const fn set_prtena(&mut self, val: bool)
pub const fn set_prtena(&mut self, val: bool)
Port Enable (PrtEna)
Sourcepub const fn set_prtenchng(&mut self, val: bool)
pub const fn set_prtenchng(&mut self, val: bool)
Port Enable/Disable Change (PrtEnChng)
Sourcepub const fn prtovrcurract(&self) -> bool
pub const fn prtovrcurract(&self) -> bool
Port Overcurrent Active (PrtOvrCurrAct)
Sourcepub const fn set_prtovrcurract(&mut self, val: bool)
pub const fn set_prtovrcurract(&mut self, val: bool)
Port Overcurrent Active (PrtOvrCurrAct)
Sourcepub const fn prtovrcurrchng(&self) -> bool
pub const fn prtovrcurrchng(&self) -> bool
Port Overcurrent Change (PrtOvrCurrChng)
Sourcepub const fn set_prtovrcurrchng(&mut self, val: bool)
pub const fn set_prtovrcurrchng(&mut self, val: bool)
Port Overcurrent Change (PrtOvrCurrChng)
Sourcepub const fn set_prtres(&mut self, val: bool)
pub const fn set_prtres(&mut self, val: bool)
Port Resume (PrtRes)
Sourcepub const fn set_prtsusp(&mut self, val: bool)
pub const fn set_prtsusp(&mut self, val: bool)
Port Suspend (PrtSusp)
Sourcepub const fn set_prtrst(&mut self, val: bool)
pub const fn set_prtrst(&mut self, val: bool)
Port Reset (PrtRst)
Sourcepub const fn set_prtlnsts(&mut self, val: Prtlnsts)
pub const fn set_prtlnsts(&mut self, val: Prtlnsts)
Port Line Status (PrtLnSts)
Sourcepub const fn set_prtpwr(&mut self, val: bool)
pub const fn set_prtpwr(&mut self, val: bool)
Port Power (PrtPwr)
Sourcepub const fn set_prttstctl(&mut self, val: Prttstctl)
pub const fn set_prttstctl(&mut self, val: Prttstctl)
Port Test Control (PrtTstCtl)
Sourcepub const fn set_prtspd(&mut self, val: Prtspd)
pub const fn set_prtspd(&mut self, val: Prtspd)
Port Speed (PrtSpd)
Trait Implementations§
impl Copy for Hprt
impl Eq for Hprt
impl StructuralPartialEq for Hprt
Auto Trait Implementations§
impl Freeze for Hprt
impl RefUnwindSafe for Hprt
impl Send for Hprt
impl Sync for Hprt
impl Unpin for Hprt
impl UnwindSafe for Hprt
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)