#[repr(transparent)]pub struct GccfgV1(pub u32);
Expand description
General core configuration register
Tuple Fields§
§0: u32
Implementations§
Source§impl GccfgV1
impl GccfgV1
Sourcepub fn set_pwrdwn(&mut self, val: bool)
pub fn set_pwrdwn(&mut self, val: bool)
Power down
Sourcepub fn set_vbusasen(&mut self, val: bool)
pub fn set_vbusasen(&mut self, val: bool)
Enable the VBUS “A” sensing device
Sourcepub fn set_vbusbsen(&mut self, val: bool)
pub fn set_vbusbsen(&mut self, val: bool)
Enable the VBUS “B” sensing device
Sourcepub fn set_sofouten(&mut self, val: bool)
pub fn set_sofouten(&mut self, val: bool)
SOF output enable
Sourcepub const fn novbussens(&self) -> bool
pub const fn novbussens(&self) -> bool
VBUS sensing disable
Sourcepub fn set_novbussens(&mut self, val: bool)
pub fn set_novbussens(&mut self, val: bool)
VBUS sensing disable
Trait Implementations§
impl Copy for GccfgV1
impl Eq for GccfgV1
impl StructuralPartialEq for GccfgV1
Auto Trait Implementations§
impl Freeze for GccfgV1
impl RefUnwindSafe for GccfgV1
impl Send for GccfgV1
impl Sync for GccfgV1
impl Unpin for GccfgV1
impl UnwindSafe for GccfgV1
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
)