#[repr(transparent)]pub struct Gpwrdn(pub u32);Expand description
Global Power Down Register
Tuple Fields§
§0: u32Implementations§
Source§impl Gpwrdn
impl Gpwrdn
Sourcepub const fn set_pmuintsel(&mut self, val: bool)
pub const fn set_pmuintsel(&mut self, val: bool)
PMU Interrupt Select (PMUIntSel)
Sourcepub const fn set_pmuactv(&mut self, val: bool)
pub const fn set_pmuactv(&mut self, val: bool)
PMU Active (PMUActv)
Sourcepub const fn set_restore(&mut self, val: bool)
pub const fn set_restore(&mut self, val: bool)
Restore
Sourcepub const fn set_pwrdnclmp(&mut self, val: bool)
pub const fn set_pwrdnclmp(&mut self, val: bool)
Power Down Clamp (PwrDnClmp)
Sourcepub const fn set_pwrdnrstn(&mut self, val: bool)
pub const fn set_pwrdnrstn(&mut self, val: bool)
Power Down ResetN (PwrDnRst_n)
Sourcepub const fn pwrdnswtch(&self) -> Pwrdnswtch
pub const fn pwrdnswtch(&self) -> Pwrdnswtch
Power Down Switch (PwrDnSwtch)
Sourcepub const fn set_pwrdnswtch(&mut self, val: Pwrdnswtch)
pub const fn set_pwrdnswtch(&mut self, val: Pwrdnswtch)
Power Down Switch (PwrDnSwtch)
Sourcepub const fn disablevbus(&self) -> bool
pub const fn disablevbus(&self) -> bool
DisableVBUS
Sourcepub const fn set_disablevbus(&mut self, val: bool)
pub const fn set_disablevbus(&mut self, val: bool)
DisableVBUS
Sourcepub const fn set_lnstschng(&mut self, val: bool)
pub const fn set_lnstschng(&mut self, val: bool)
Line State Change (LnStsChng)
Sourcepub const fn linestagechangemsk(&self) -> bool
pub const fn linestagechangemsk(&self) -> bool
LineStageChangeMsk
Sourcepub const fn set_linestagechangemsk(&mut self, val: bool)
pub const fn set_linestagechangemsk(&mut self, val: bool)
LineStageChangeMsk
Sourcepub const fn resetdetected(&self) -> bool
pub const fn resetdetected(&self) -> bool
ResetDetected
Sourcepub const fn set_resetdetected(&mut self, val: bool)
pub const fn set_resetdetected(&mut self, val: bool)
ResetDetected
Sourcepub const fn resetdetmsk(&self) -> bool
pub const fn resetdetmsk(&self) -> bool
ResetDetMsk
Sourcepub const fn set_resetdetmsk(&mut self, val: bool)
pub const fn set_resetdetmsk(&mut self, val: bool)
ResetDetMsk
Sourcepub const fn disconnectdetect(&self) -> bool
pub const fn disconnectdetect(&self) -> bool
DisconnectDetect
Sourcepub const fn set_disconnectdetect(&mut self, val: bool)
pub const fn set_disconnectdetect(&mut self, val: bool)
DisconnectDetect
Sourcepub const fn disconnectdetectmsk(&self) -> bool
pub const fn disconnectdetectmsk(&self) -> bool
DisconnectDetectMsk
Sourcepub const fn set_disconnectdetectmsk(&mut self, val: bool)
pub const fn set_disconnectdetectmsk(&mut self, val: bool)
DisconnectDetectMsk
Sourcepub const fn connectdet(&self) -> bool
pub const fn connectdet(&self) -> bool
ConnectDet
Sourcepub const fn set_connectdet(&mut self, val: bool)
pub const fn set_connectdet(&mut self, val: bool)
ConnectDet
Sourcepub const fn conndetmsk(&self) -> bool
pub const fn conndetmsk(&self) -> bool
ConnDetMsk
Sourcepub const fn set_conndetmsk(&mut self, val: bool)
pub const fn set_conndetmsk(&mut self, val: bool)
ConnDetMsk
Sourcepub const fn set_srpdetect(&mut self, val: bool)
pub const fn set_srpdetect(&mut self, val: bool)
SRPDetect
Sourcepub const fn srpdetectmsk(&self) -> bool
pub const fn srpdetectmsk(&self) -> bool
SRPDetectMsk
Sourcepub const fn set_srpdetectmsk(&mut self, val: bool)
pub const fn set_srpdetectmsk(&mut self, val: bool)
SRPDetectMsk
Sourcepub const fn stschngint(&self) -> bool
pub const fn stschngint(&self) -> bool
Status Change Interrupt (StsChngInt)
Sourcepub const fn set_stschngint(&mut self, val: bool)
pub const fn set_stschngint(&mut self, val: bool)
Status Change Interrupt (StsChngInt)
Sourcepub const fn stschngintmsk(&self) -> bool
pub const fn stschngintmsk(&self) -> bool
StsChngIntMsk
Sourcepub const fn set_stschngintmsk(&mut self, val: bool)
pub const fn set_stschngintmsk(&mut self, val: bool)
StsChngIntMsk
Sourcepub const fn set_linestate(&mut self, val: Linestate)
pub const fn set_linestate(&mut self, val: Linestate)
LineState
Sourcepub const fn iddig(&self) -> bool
pub const fn iddig(&self) -> bool
This bit indicates the status of the signal IDDIG. The application must read this bit after receiving GPWRDN.StsChngInt and decode based on the previous value stored by the application.
Sourcepub const fn set_iddig(&mut self, val: bool)
pub const fn set_iddig(&mut self, val: bool)
This bit indicates the status of the signal IDDIG. The application must read this bit after receiving GPWRDN.StsChngInt and decode based on the previous value stored by the application.
Sourcepub const fn set_bsessvld(&mut self, val: bool)
pub const fn set_bsessvld(&mut self, val: bool)
B Session Valid (BSessVld)
Sourcepub const fn multvalidbc(&self) -> GpwrdnMultvalidbc
pub const fn multvalidbc(&self) -> GpwrdnMultvalidbc
MultValIdBC
Sourcepub const fn set_multvalidbc(&mut self, val: GpwrdnMultvalidbc)
pub const fn set_multvalidbc(&mut self, val: GpwrdnMultvalidbc)
MultValIdBC
Trait Implementations§
impl Copy for Gpwrdn
impl Eq for Gpwrdn
impl StructuralPartialEq for Gpwrdn
Auto Trait Implementations§
impl Freeze for Gpwrdn
impl RefUnwindSafe for Gpwrdn
impl Send for Gpwrdn
impl Sync for Gpwrdn
impl Unpin for Gpwrdn
impl UnwindSafe for Gpwrdn
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
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)
clone_to_uninit)