Struct stm32_metapac::otg::regs::Glpmcfg
#[repr(transparent)]pub struct Glpmcfg(pub u32);
Expand description
Core LPM configuration register
Tuple Fields§
§0: u32
Implementations§
§impl Glpmcfg
impl Glpmcfg
pub fn set_lpmack(&mut self, val: bool)
pub fn set_lpmack(&mut self, val: bool)
LPM token acknowledge enable
pub fn set_remwake(&mut self, val: bool)
pub fn set_remwake(&mut self, val: bool)
bRemoteWake value
pub fn set_l1ssen(&mut self, val: bool)
pub fn set_l1ssen(&mut self, val: bool)
L1 Shallow Sleep enable
pub fn set_beslthrs(&mut self, val: u8)
pub fn set_beslthrs(&mut self, val: u8)
BESL threshold
pub fn set_l1dsen(&mut self, val: bool)
pub fn set_l1dsen(&mut self, val: bool)
L1 deep sleep enable
pub fn set_lpmrst(&mut self, val: u8)
pub fn set_lpmrst(&mut self, val: u8)
LPM response
pub fn set_slpsts(&mut self, val: bool)
pub fn set_slpsts(&mut self, val: bool)
Port sleep status
pub fn set_l1rsmok(&mut self, val: bool)
pub fn set_l1rsmok(&mut self, val: bool)
Sleep State Resume OK
pub fn set_lpmchidx(&mut self, val: u8)
pub fn set_lpmchidx(&mut self, val: u8)
LPM Channel Index
pub fn set_lpmrcnt(&mut self, val: u8)
pub fn set_lpmrcnt(&mut self, val: u8)
LPM retry count
pub fn set_sndlpm(&mut self, val: bool)
pub fn set_sndlpm(&mut self, val: bool)
Send LPM transaction
pub const fn lpmrcntsts(&self) -> u8
pub const fn lpmrcntsts(&self) -> u8
LPM retry count status
pub fn set_lpmrcntsts(&mut self, val: u8)
pub fn set_lpmrcntsts(&mut self, val: u8)
LPM retry count status
pub fn set_enbesl(&mut self, val: bool)
pub fn set_enbesl(&mut self, val: bool)
Enable best effort service latency
Trait Implementations§
impl Copy for Glpmcfg
impl Eq for Glpmcfg
impl StructuralEq for Glpmcfg
impl StructuralPartialEq for Glpmcfg
Auto Trait Implementations§
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