Struct stm32_metapac::otg::regs::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 PartialEq for GccfgV1
impl PartialEq for GccfgV1
impl Copy for GccfgV1
impl Eq for GccfgV1
impl StructuralEq for GccfgV1
impl StructuralPartialEq for GccfgV1
Auto Trait Implementationsยง
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