Struct GccfgV1
#[repr(transparent)]pub struct GccfgV1(pub u32);Expand description
General core configuration register
Tuple Fields§
§0: u32Implementations§
§impl GccfgV1
impl GccfgV1
pub const fn set_pwrdwn(&mut self, val: bool)
pub const fn set_pwrdwn(&mut self, val: bool)
Power down
pub const fn i2cpaden(&self) -> bool
pub const fn i2cpaden(&self) -> bool
Enable I2C bus connection for the external I2C PHY interface (OTG_HS only)
pub const fn set_i2cpaden(&mut self, val: bool)
pub const fn set_i2cpaden(&mut self, val: bool)
Enable I2C bus connection for the external I2C PHY interface (OTG_HS only)
pub const fn set_vbusasen(&mut self, val: bool)
pub const fn set_vbusasen(&mut self, val: bool)
Enable the VBUS “A” sensing device
pub const fn set_vbusbsen(&mut self, val: bool)
pub const fn set_vbusbsen(&mut self, val: bool)
Enable the VBUS “B” sensing device
pub const fn set_sofouten(&mut self, val: bool)
pub const 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 (not available on F105/F107)
pub const fn set_novbussens(&mut self, val: bool)
pub const fn set_novbussens(&mut self, val: bool)
VBUS sensing disable (not available on F105/F107)
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 UnsafeUnpin 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