#[repr(transparent)]pub struct Glpmcfg(pub u32);Expand description
LPM Config Register
Tuple Fields§
§0: u32Implementations§
Source§impl Glpmcfg
impl Glpmcfg
Sourcepub const fn set_lpmcap(&mut self, val: bool)
pub const fn set_lpmcap(&mut self, val: bool)
LPM-Capable (LPMCap)
Sourcepub const fn appl1res(&self) -> Appl1res
pub const fn appl1res(&self) -> Appl1res
Mode: Device only. LPM response programmed by application (AppL1Res)
Sourcepub const fn set_appl1res(&mut self, val: Appl1res)
pub const fn set_appl1res(&mut self, val: Appl1res)
Mode: Device only. LPM response programmed by application (AppL1Res)
Sourcepub const fn bremotewake(&self) -> bool
pub const fn bremotewake(&self) -> bool
RemoteWakeEnable (bRemoteWake)
Sourcepub const fn set_bremotewake(&mut self, val: bool)
pub const fn set_bremotewake(&mut self, val: bool)
RemoteWakeEnable (bRemoteWake)
Sourcepub const fn set_enblslpm(&mut self, val: bool)
pub const fn set_enblslpm(&mut self, val: bool)
Enable utmi_sleep_n (EnblSlpM)
Sourcepub const fn set_hirdthres(&mut self, val: u8)
pub const fn set_hirdthres(&mut self, val: u8)
BESL/HIRD Threshold (HIRD_Thres)
Sourcepub const fn set_corel1res(&mut self, val: Corel1res)
pub const fn set_corel1res(&mut self, val: Corel1res)
LPM Response (CoreL1Res)
Sourcepub const fn set_slpsts(&mut self, val: Slpsts)
pub const fn set_slpsts(&mut self, val: Slpsts)
Port Sleep Status (SlpSts)
Sourcepub const fn l1resumeok(&self) -> bool
pub const fn l1resumeok(&self) -> bool
Sleep State Resume OK (L1ResumeOK)
Sourcepub const fn set_l1resumeok(&mut self, val: bool)
pub const fn set_l1resumeok(&mut self, val: bool)
Sleep State Resume OK (L1ResumeOK)
Sourcepub const fn lpmchnlindx(&self) -> Lpmchnlindx
pub const fn lpmchnlindx(&self) -> Lpmchnlindx
LPM Channel Index
Sourcepub const fn set_lpmchnlindx(&mut self, val: Lpmchnlindx)
pub const fn set_lpmchnlindx(&mut self, val: Lpmchnlindx)
LPM Channel Index
Sourcepub const fn lpmretrycnt(&self) -> Lpmretrycnt
pub const fn lpmretrycnt(&self) -> Lpmretrycnt
LPM Retry Count (LPM_Retry_Cnt)
Sourcepub const fn set_lpmretrycnt(&mut self, val: Lpmretrycnt)
pub const fn set_lpmretrycnt(&mut self, val: Lpmretrycnt)
LPM Retry Count (LPM_Retry_Cnt)
Sourcepub const fn set_sndlpm(&mut self, val: bool)
pub const fn set_sndlpm(&mut self, val: bool)
Send LPM Transaction (SndLPM)
Sourcepub const fn lpmretrycntsts(&self) -> Lpmretrycntsts
pub const fn lpmretrycntsts(&self) -> Lpmretrycntsts
LPM Retry Count Status (LPM_RetryCnt_Sts)
Sourcepub const fn set_lpmretrycntsts(&mut self, val: Lpmretrycntsts)
pub const fn set_lpmretrycntsts(&mut self, val: Lpmretrycntsts)
LPM Retry Count Status (LPM_RetryCnt_Sts)
Sourcepub const fn set_lpmenbesl(&mut self, val: bool)
pub const fn set_lpmenbesl(&mut self, val: bool)
LPM Enable BESL (LPM_EnBESL)
Sourcepub const fn lpmrestoreslpsts(&self) -> bool
pub const fn lpmrestoreslpsts(&self) -> bool
LPM Restore Sleep Status (LPM_RestoreSlpSts)
Sourcepub const fn set_lpmrestoreslpsts(&mut self, val: bool)
pub const fn set_lpmrestoreslpsts(&mut self, val: bool)
LPM Restore Sleep Status (LPM_RestoreSlpSts)
Trait Implementations§
impl Copy for Glpmcfg
impl Eq for Glpmcfg
impl StructuralPartialEq for Glpmcfg
Auto Trait Implementations§
impl Freeze for Glpmcfg
impl RefUnwindSafe for Glpmcfg
impl Send for Glpmcfg
impl Sync for Glpmcfg
impl Unpin for Glpmcfg
impl UnwindSafe for Glpmcfg
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)