#[repr(transparent)]pub struct UsbncAlphaFieldsetAlpha(pub u32);Expand description
USB OTG Control 1.
Tuple Fields§
§0: u32Implementations§
Source§impl UsbncAlphaFieldsetAlpha
impl UsbncAlphaFieldsetAlpha
Sourcepub const fn over_cur_dis(&self) -> bool
pub const fn over_cur_dis(&self) -> bool
Disable Overcurrent Detection. Raw bit values: false (0) = OvrcrntDetctEn: Enables.; true (1) = OvrcrntDetctDis: Disables.
Sourcepub const fn set_over_cur_dis(&mut self, val: bool)
pub const fn set_over_cur_dis(&mut self, val: bool)
Disable Overcurrent Detection. Raw bit values: false (0) = OvrcrntDetctEn: Enables.; true (1) = OvrcrntDetctDis: Disables.
Sourcepub const fn over_cur_pol(&self) -> bool
pub const fn over_cur_pol(&self) -> bool
Polarity of Overcurrent. Raw bit values: false (0) = ActiveHiOvrcrnt: High active (high on this signal represents an overcurrent condition).; true (1) = ActiveLowOvrcrnt: Low active (low on this signal represents an overcurrent condition).
Sourcepub const fn set_over_cur_pol(&mut self, val: bool)
pub const fn set_over_cur_pol(&mut self, val: bool)
Polarity of Overcurrent. Raw bit values: false (0) = ActiveHiOvrcrnt: High active (high on this signal represents an overcurrent condition).; true (1) = ActiveLowOvrcrnt: Low active (low on this signal represents an overcurrent condition).
Sourcepub const fn pwr_pol(&self) -> bool
pub const fn pwr_pol(&self) -> bool
Power Polarity. Raw bit values: false (0) = ActiveLoPmic: PMIC Power Pin is Low active.; true (1) = ActiveHiPmic: PMIC Power Pin is High active.
Sourcepub const fn set_pwr_pol(&mut self, val: bool)
pub const fn set_pwr_pol(&mut self, val: bool)
Power Polarity. Raw bit values: false (0) = ActiveLoPmic: PMIC Power Pin is Low active.; true (1) = ActiveHiPmic: PMIC Power Pin is High active.
Sourcepub const fn wie(&self) -> bool
pub const fn wie(&self) -> bool
Wake-up Interrupt Enable. Raw bit values: false (0) = IntDis: Interrupt Disabled.; true (1) = IntEn: Interrupt Enabled.
Sourcepub const fn set_wie(&mut self, val: bool)
pub const fn set_wie(&mut self, val: bool)
Wake-up Interrupt Enable. Raw bit values: false (0) = IntDis: Interrupt Disabled.; true (1) = IntEn: Interrupt Enabled.
Sourcepub const fn wkup_sw_en(&self) -> bool
pub const fn wkup_sw_en(&self) -> bool
Software Wake-up Enable. Raw bit values: false (0) = SwWkupDis: Disables.; true (1) = SwWkupEn: Enables.
Sourcepub const fn set_wkup_sw_en(&mut self, val: bool)
pub const fn set_wkup_sw_en(&mut self, val: bool)
Software Wake-up Enable. Raw bit values: false (0) = SwWkupDis: Disables.; true (1) = SwWkupEn: Enables.
Sourcepub const fn wkup_sw(&self) -> bool
pub const fn wkup_sw(&self) -> bool
Software Wake-up. Raw bit values: false (0) = Inactive: Inactive.; true (1) = ForceWkup: Force wake-up.
Sourcepub const fn set_wkup_sw(&mut self, val: bool)
pub const fn set_wkup_sw(&mut self, val: bool)
Software Wake-up. Raw bit values: false (0) = Inactive: Inactive.; true (1) = ForceWkup: Force wake-up.
Sourcepub const fn wkup_id_en(&self) -> bool
pub const fn wkup_id_en(&self) -> bool
Wake-up on ID Change Enable. Raw bit values: false (0) = WkupIdDis: Disables.; true (1) = WkupIdEn: Enables.
Sourcepub const fn set_wkup_id_en(&mut self, val: bool)
pub const fn set_wkup_id_en(&mut self, val: bool)
Wake-up on ID Change Enable. Raw bit values: false (0) = WkupIdDis: Disables.; true (1) = WkupIdEn: Enables.
Sourcepub const fn wkup_vbus_en(&self) -> bool
pub const fn wkup_vbus_en(&self) -> bool
Wake-up on VBUS Change Enable. Raw bit values: false (0) = WkupVbusDis: Disables.; true (1) = WkupVbusEn: Enables.
Sourcepub const fn set_wkup_vbus_en(&mut self, val: bool)
pub const fn set_wkup_vbus_en(&mut self, val: bool)
Wake-up on VBUS Change Enable. Raw bit values: false (0) = WkupVbusDis: Disables.; true (1) = WkupVbusEn: Enables.
Sourcepub const fn wkup_dpdm_en(&self) -> bool
pub const fn wkup_dpdm_en(&self) -> bool
Wake-up on DPDM Change Enable. Raw bit values: false (0) = DpdmWkupDis: DPDM changes wake-up to be disabled only when VBUS is 0.; true (1) = DpdmWkupEn: DPDM changes wake-up to be enabled, it is for device only.
Sourcepub const fn set_wkup_dpdm_en(&mut self, val: bool)
pub const fn set_wkup_dpdm_en(&mut self, val: bool)
Wake-up on DPDM Change Enable. Raw bit values: false (0) = DpdmWkupDis: DPDM changes wake-up to be disabled only when VBUS is 0.; true (1) = DpdmWkupEn: DPDM changes wake-up to be enabled, it is for device only.
Trait Implementations§
Source§impl Clone for UsbncAlphaFieldsetAlpha
impl Clone for UsbncAlphaFieldsetAlpha
Source§fn clone(&self) -> UsbncAlphaFieldsetAlpha
fn clone(&self) -> UsbncAlphaFieldsetAlpha
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more