#[repr(transparent)]pub struct Ctrl1(pub u32);Expand description
USB OTG Control 1
Tuple Fields§
§0: u32Implementations§
Source§impl Ctrl1
impl Ctrl1
Sourcepub const fn over_cur_dis(&self) -> OverCurDis
pub const fn over_cur_dis(&self) -> OverCurDis
Disable Overcurrent Detection
Sourcepub const fn set_over_cur_dis(&mut self, val: OverCurDis)
pub const fn set_over_cur_dis(&mut self, val: OverCurDis)
Disable Overcurrent Detection
Sourcepub const fn over_cur_pol(&self) -> OverCurPol
pub const fn over_cur_pol(&self) -> OverCurPol
Polarity of Overcurrent
Sourcepub const fn set_over_cur_pol(&mut self, val: OverCurPol)
pub const fn set_over_cur_pol(&mut self, val: OverCurPol)
Polarity of Overcurrent
Sourcepub const fn set_pwr_pol(&mut self, val: PwrPol)
pub const fn set_pwr_pol(&mut self, val: PwrPol)
Power Polarity
Sourcepub const fn wkup_sw_en(&self) -> WkupSwEn
pub const fn wkup_sw_en(&self) -> WkupSwEn
Software Wake-up Enable
Sourcepub const fn set_wkup_sw_en(&mut self, val: WkupSwEn)
pub const fn set_wkup_sw_en(&mut self, val: WkupSwEn)
Software Wake-up Enable
Sourcepub const fn set_wkup_sw(&mut self, val: WkupSw)
pub const fn set_wkup_sw(&mut self, val: WkupSw)
Software Wake-up
Sourcepub const fn wkup_id_en(&self) -> WkupIdEn
pub const fn wkup_id_en(&self) -> WkupIdEn
Wake-up on ID Change Enable
Sourcepub const fn set_wkup_id_en(&mut self, val: WkupIdEn)
pub const fn set_wkup_id_en(&mut self, val: WkupIdEn)
Wake-up on ID Change Enable
Sourcepub const fn wkup_vbus_en(&self) -> WkupVbusEn
pub const fn wkup_vbus_en(&self) -> WkupVbusEn
Wake-up on VBUS Change Enable
Sourcepub const fn set_wkup_vbus_en(&mut self, val: WkupVbusEn)
pub const fn set_wkup_vbus_en(&mut self, val: WkupVbusEn)
Wake-up on VBUS Change Enable
Sourcepub const fn wkup_dpdm_en(&self) -> WkupDpdmEn
pub const fn wkup_dpdm_en(&self) -> WkupDpdmEn
Wake-up on DPDM Change Enable
Sourcepub const fn set_wkup_dpdm_en(&mut self, val: WkupDpdmEn)
pub const fn set_wkup_dpdm_en(&mut self, val: WkupDpdmEn)
Wake-up on DPDM Change Enable
Trait Implementations§
impl Copy for Ctrl1
impl Eq for Ctrl1
impl StructuralPartialEq for Ctrl1
Auto Trait Implementations§
impl Freeze for Ctrl1
impl RefUnwindSafe for Ctrl1
impl Send for Ctrl1
impl Sync for Ctrl1
impl Unpin for Ctrl1
impl UnwindSafe for Ctrl1
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