#[repr(transparent)]pub struct Ctrl2(pub u32);Expand description
USB OTG Control 2
Tuple Fields§
§0: u32Implementations§
Source§impl Ctrl2
impl Ctrl2
Sourcepub const fn vbus_source_sel(&self) -> VbusSourceSel
pub const fn vbus_source_sel(&self) -> VbusSourceSel
VBUS Source Select
Sourcepub const fn set_vbus_source_sel(&mut self, val: VbusSourceSel)
pub const fn set_vbus_source_sel(&mut self, val: VbusSourceSel)
VBUS Source Select
Sourcepub const fn auturesume_en(&self) -> bool
pub const fn auturesume_en(&self) -> bool
Auto Resume Enable
Sourcepub const fn set_auturesume_en(&mut self, val: bool)
pub const fn set_auturesume_en(&mut self, val: bool)
Auto Resume Enable
Sourcepub const fn lowspeed_en(&self) -> bool
pub const fn lowspeed_en(&self) -> bool
Low Speed Enable
Sourcepub const fn set_lowspeed_en(&mut self, val: bool)
pub const fn set_lowspeed_en(&mut self, val: bool)
Low Speed Enable
Sourcepub const fn utmi_clk_vld(&self) -> bool
pub const fn utmi_clk_vld(&self) -> bool
UTMI Clock Valid
Sourcepub const fn set_utmi_clk_vld(&mut self, val: bool)
pub const fn set_utmi_clk_vld(&mut self, val: bool)
UTMI Clock Valid
Trait Implementations§
impl Copy for Ctrl2
impl Eq for Ctrl2
impl StructuralPartialEq for Ctrl2
Auto Trait Implementations§
impl Freeze for Ctrl2
impl RefUnwindSafe for Ctrl2
impl Send for Ctrl2
impl Sync for Ctrl2
impl Unpin for Ctrl2
impl UnwindSafe for Ctrl2
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