Struct GccfgV1
#[repr(transparent)]pub struct GccfgV1(pub u32);
Expand description
General core configuration register
Tuple Fields§
§0: u32
Implementations§
§impl GccfgV1
impl GccfgV1
pub fn set_pwrdwn(&mut self, val: bool)
pub fn set_pwrdwn(&mut self, val: bool)
Power down
pub fn set_vbusasen(&mut self, val: bool)
pub fn set_vbusasen(&mut self, val: bool)
Enable the VBUS “A” sensing device
pub fn set_vbusbsen(&mut self, val: bool)
pub fn set_vbusbsen(&mut self, val: bool)
Enable the VBUS “B” sensing device
pub fn set_sofouten(&mut self, val: bool)
pub fn set_sofouten(&mut self, val: bool)
SOF output enable
pub const fn novbussens(&self) -> bool
pub const fn novbussens(&self) -> bool
VBUS sensing disable
pub 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
)