#[repr(transparent)]pub struct Hcfg(pub u32);Expand description
Host Configuration Register
Tuple Fields§
§0: u32Implementations§
Source§impl Hcfg
impl Hcfg
Sourcepub const fn fslspclksel(&self) -> Fslspclksel
pub const fn fslspclksel(&self) -> Fslspclksel
FS/LS PHY Clock Select (FSLSPclkSel)
Sourcepub const fn set_fslspclksel(&mut self, val: Fslspclksel)
pub const fn set_fslspclksel(&mut self, val: Fslspclksel)
FS/LS PHY Clock Select (FSLSPclkSel)
Sourcepub const fn set_fslssupp(&mut self, val: Fslssupp)
pub const fn set_fslssupp(&mut self, val: Fslssupp)
FS- and LS-Only Support (FSLSSupp)
Sourcepub const fn set_ena32khzs(&mut self, val: bool)
pub const fn set_ena32khzs(&mut self, val: bool)
Enable 32 KHz Suspend mode (Ena32KHzS)
Sourcepub const fn set_resvalid(&mut self, val: u8)
pub const fn set_resvalid(&mut self, val: u8)
Resume Validation Period (ResValid)
Sourcepub const fn modechtimen(&self) -> Modechtimen
pub const fn modechtimen(&self) -> Modechtimen
Mode Change Ready Timer Enable (ModeChTimEn)
Sourcepub const fn set_modechtimen(&mut self, val: Modechtimen)
pub const fn set_modechtimen(&mut self, val: Modechtimen)
Mode Change Ready Timer Enable (ModeChTimEn)
Trait Implementations§
impl Copy for Hcfg
impl Eq for Hcfg
impl StructuralPartialEq for Hcfg
Auto Trait Implementations§
impl Freeze for Hcfg
impl RefUnwindSafe for Hcfg
impl Send for Hcfg
impl Sync for Hcfg
impl Unpin for Hcfg
impl UnwindSafe for Hcfg
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)