#[repr(transparent)]pub struct UsbOtg2Ctrl(pub u32);Expand description
USB OTG2 Control Register
Tuple Fields§
§0: u32Implementations§
Source§impl UsbOtg2Ctrl
impl UsbOtg2Ctrl
Sourcepub const fn over_cur_dis(&self) -> OverCurDis
pub const fn over_cur_dis(&self) -> OverCurDis
Disable OTG2 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 OTG2 Overcurrent Detection
Sourcepub const fn over_cur_pol(&self) -> OverCurPol
pub const fn over_cur_pol(&self) -> OverCurPol
OTG2 Polarity of Overcurrent The polarity of OTG2 port overcurrent event
Sourcepub const fn set_over_cur_pol(&mut self, val: OverCurPol)
pub const fn set_over_cur_pol(&mut self, val: OverCurPol)
OTG2 Polarity of Overcurrent The polarity of OTG2 port overcurrent event
Sourcepub const fn pwr_pol(&self) -> PwrPol
pub const fn pwr_pol(&self) -> PwrPol
OTG2 Power Polarity This bit should be set according to PMIC Power Pin polarity.
Sourcepub const fn set_pwr_pol(&mut self, val: PwrPol)
pub const fn set_pwr_pol(&mut self, val: PwrPol)
OTG2 Power Polarity This bit should be set according to PMIC Power Pin polarity.
Sourcepub const fn wie(&self) -> Wie
pub const fn wie(&self) -> Wie
OTG2 Wake-up Interrupt Enable This bit enables or disables the OTG2 wake-up interrupt
Sourcepub const fn set_wie(&mut self, val: Wie)
pub const fn set_wie(&mut self, val: Wie)
OTG2 Wake-up Interrupt Enable This bit enables or disables the OTG2 wake-up interrupt
Sourcepub const fn wkup_sw_en(&self) -> WkupSwEn
pub const fn wkup_sw_en(&self) -> WkupSwEn
OTG2 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)
OTG2 Software Wake-up Enable
Sourcepub const fn set_wkup_sw(&mut self, val: WkupSw)
pub const fn set_wkup_sw(&mut self, val: WkupSw)
OTG2 Software Wake-up
Sourcepub const fn wkup_id_en(&self) -> WkupIdEn
pub const fn wkup_id_en(&self) -> WkupIdEn
OTG2 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)
OTG2 Wake-up on ID change enable
Sourcepub const fn wkup_vbus_en(&self) -> WkupVbusEn
pub const fn wkup_vbus_en(&self) -> WkupVbusEn
OTG2 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)
OTG2 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§
Source§impl Clone for UsbOtg2Ctrl
impl Clone for UsbOtg2Ctrl
Source§fn clone(&self) -> UsbOtg2Ctrl
fn clone(&self) -> UsbOtg2Ctrl
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more