#[repr(transparent)]pub struct CtrlMask(pub u32);Expand description
CTRL SCT command mask. Zero construction default ensures only explicitly selected bits are written. Register-map hardware reset values are not command payload defaults. Source conflict: RM 42.8 (text lines 106616-106618) says SCT aliases always read 0, must be write-only, and cannot exist for read-only primaries; RM 42.7.1 maps writable primary aliases as RW and also lists aliases of read-only status registers. Mapped access is retained; no reliable alias readback is inferred.
Tuple Fields§
§0: u32Implementations§
Source§impl CtrlMask
impl CtrlMask
Sourcepub const fn enotg_id_chg_irq(&self) -> bool
pub const fn enotg_id_chg_irq(&self) -> bool
OTG ID Change Interrupt Enable. Raw encoding: 0b - Disable; 1b - Enable.
Sourcepub const fn set_enotg_id_chg_irq(&mut self, val: bool)
pub const fn set_enotg_id_chg_irq(&mut self, val: bool)
OTG ID Change Interrupt Enable. Raw encoding: 0b - Disable; 1b - Enable.
Sourcepub const fn enhostdiscondetect(&self) -> bool
pub const fn enhostdiscondetect(&self) -> bool
Host Disconnect Detection Enable. Raw encoding: 0b - Disable; 1b - Enable.
Sourcepub const fn set_enhostdiscondetect(&mut self, val: bool)
pub const fn set_enhostdiscondetect(&mut self, val: bool)
Host Disconnect Detection Enable. Raw encoding: 0b - Disable; 1b - Enable.
Sourcepub const fn enirqhostdiscon(&self) -> bool
pub const fn enirqhostdiscon(&self) -> bool
Enable Interrupt for Host Disconnect. Raw encoding: 0b - Disable; 1b - Enable.
Sourcepub const fn set_enirqhostdiscon(&mut self, val: bool)
pub const fn set_enirqhostdiscon(&mut self, val: bool)
Enable Interrupt for Host Disconnect. Raw encoding: 0b - Disable; 1b - Enable.
Sourcepub const fn hostdiscondetect_irq(&self) -> bool
pub const fn hostdiscondetect_irq(&self) -> bool
Host Disconnect Detection Interrupt. Raw encoding: 0b - Connected; 1b - Disconnected.
Sourcepub const fn set_hostdiscondetect_irq(&mut self, val: bool)
pub const fn set_hostdiscondetect_irq(&mut self, val: bool)
Host Disconnect Detection Interrupt. Raw encoding: 0b - Connected; 1b - Disconnected.
Sourcepub const fn endevplugindetect(&self) -> bool
pub const fn endevplugindetect(&self) -> bool
Enable Nonstandard Resistive Plugged-In Detection. Raw encoding: 0b - Disable; 1b - Enable.
Sourcepub const fn set_endevplugindetect(&mut self, val: bool)
pub const fn set_endevplugindetect(&mut self, val: bool)
Enable Nonstandard Resistive Plugged-In Detection. Raw encoding: 0b - Disable; 1b - Enable.
Sourcepub const fn devplugin_polarity(&self) -> bool
pub const fn devplugin_polarity(&self) -> bool
Device Plug-In Polarity. Raw encoding: 0b - Plugged in; 1b - Unplugged.
Sourcepub const fn set_devplugin_polarity(&mut self, val: bool)
pub const fn set_devplugin_polarity(&mut self, val: bool)
Device Plug-In Polarity. Raw encoding: 0b - Plugged in; 1b - Unplugged.
Sourcepub const fn otg_id_chg_irq(&self) -> bool
pub const fn otg_id_chg_irq(&self) -> bool
OTG ID Change Interrupt. Raw encoding: 0b - No ID change interrupt; 1b - ID change interrupt.
Sourcepub const fn set_otg_id_chg_irq(&mut self, val: bool)
pub const fn set_otg_id_chg_irq(&mut self, val: bool)
OTG ID Change Interrupt. Raw encoding: 0b - No ID change interrupt; 1b - ID change interrupt.
Sourcepub const fn enotgiddetect(&self) -> bool
pub const fn enotgiddetect(&self) -> bool
Enable Internal OTG ID Detector. Raw encoding: 0b - Disable; 1b - Enable.
Sourcepub const fn set_enotgiddetect(&mut self, val: bool)
pub const fn set_enotgiddetect(&mut self, val: bool)
Enable Internal OTG ID Detector. Raw encoding: 0b - Disable; 1b - Enable.
Sourcepub const fn resumeirqsticky(&self) -> bool
pub const fn resumeirqsticky(&self) -> bool
Resume Interrupt Sticky. Raw encoding: 0b - During the resume or reset state signaling period; 1b - Until you write 0 to it.
Sourcepub const fn set_resumeirqsticky(&mut self, val: bool)
pub const fn set_resumeirqsticky(&mut self, val: bool)
Resume Interrupt Sticky. Raw encoding: 0b - During the resume or reset state signaling period; 1b - Until you write 0 to it.
Sourcepub const fn enirqresumedetect(&self) -> bool
pub const fn enirqresumedetect(&self) -> bool
Resume Detection Interrupt Enable. Raw encoding: 0b - Disable; 1b - Enable.
Sourcepub const fn set_enirqresumedetect(&mut self, val: bool)
pub const fn set_enirqresumedetect(&mut self, val: bool)
Resume Detection Interrupt Enable. Raw encoding: 0b - Disable; 1b - Enable.
Sourcepub const fn resume_irq(&self) -> bool
pub const fn resume_irq(&self) -> bool
Resume Interrupt. Raw encoding: 0b - No resume interrupt; 1b - Resume interrupt.
Sourcepub const fn set_resume_irq(&mut self, val: bool)
pub const fn set_resume_irq(&mut self, val: bool)
Resume Interrupt. Raw encoding: 0b - No resume interrupt; 1b - Resume interrupt.
Sourcepub const fn enirqdevplugin(&self) -> bool
pub const fn enirqdevplugin(&self) -> bool
Enable Interrupt for Nonstandard Resistive Plugged-In Detection. Raw encoding: 0b - Disable; 1b - Enable.
Sourcepub const fn set_enirqdevplugin(&mut self, val: bool)
pub const fn set_enirqdevplugin(&mut self, val: bool)
Enable Interrupt for Nonstandard Resistive Plugged-In Detection. Raw encoding: 0b - Disable; 1b - Enable.
Sourcepub const fn devplugin_irq(&self) -> bool
pub const fn devplugin_irq(&self) -> bool
Device Plug-In Interrupt.
Sourcepub const fn set_devplugin_irq(&mut self, val: bool)
pub const fn set_devplugin_irq(&mut self, val: bool)
Device Plug-In Interrupt.
Sourcepub const fn data_on_lradc(&self) -> bool
pub const fn data_on_lradc(&self) -> bool
APB Clock Switch Option.
Sourcepub const fn set_data_on_lradc(&mut self, val: bool)
pub const fn set_data_on_lradc(&mut self, val: bool)
APB Clock Switch Option.
Sourcepub const fn enutmilevel2(&self) -> bool
pub const fn enutmilevel2(&self) -> bool
UTMI Level 2 Enable. Raw encoding: 0b - Disable; 1b - Enable.
Sourcepub const fn set_enutmilevel2(&mut self, val: bool)
pub const fn set_enutmilevel2(&mut self, val: bool)
UTMI Level 2 Enable. Raw encoding: 0b - Disable; 1b - Enable.
Sourcepub const fn enutmilevel3(&self) -> bool
pub const fn enutmilevel3(&self) -> bool
UTMI Level 3 Enable. Raw encoding: 0b - Disable; 1b - Enable.
Sourcepub const fn set_enutmilevel3(&mut self, val: bool)
pub const fn set_enutmilevel3(&mut self, val: bool)
UTMI Level 3 Enable. Raw encoding: 0b - Disable; 1b - Enable.
Sourcepub const fn enirqwakeup(&self) -> bool
pub const fn enirqwakeup(&self) -> bool
Wake-Up Interrupt Enable. Raw encoding: 0b - Disable; 1b - Enable.
Sourcepub const fn set_enirqwakeup(&mut self, val: bool)
pub const fn set_enirqwakeup(&mut self, val: bool)
Wake-Up Interrupt Enable. Raw encoding: 0b - Disable; 1b - Enable.
Sourcepub const fn wakeup_irq(&self) -> bool
pub const fn wakeup_irq(&self) -> bool
Wake-Up Interrupt.
Sourcepub const fn set_wakeup_irq(&mut self, val: bool)
pub const fn set_wakeup_irq(&mut self, val: bool)
Wake-Up Interrupt.
Sourcepub const fn autoresume_en(&self) -> bool
pub const fn autoresume_en(&self) -> bool
Autoresume Enable. Raw encoding: 0b - Disable; 1b - Enable.
Sourcepub const fn set_autoresume_en(&mut self, val: bool)
pub const fn set_autoresume_en(&mut self, val: bool)
Autoresume Enable. Raw encoding: 0b - Disable; 1b - Enable.
Sourcepub const fn enautoclr_clkgate(&self) -> bool
pub const fn enautoclr_clkgate(&self) -> bool
Autoclear Clock Gate Enable. Raw encoding: 0b - Disable; 1b - Enable.
Sourcepub const fn set_enautoclr_clkgate(&mut self, val: bool)
pub const fn set_enautoclr_clkgate(&mut self, val: bool)
Autoclear Clock Gate Enable. Raw encoding: 0b - Disable; 1b - Enable.
Sourcepub const fn enautoclr_phy_pwd(&self) -> bool
pub const fn enautoclr_phy_pwd(&self) -> bool
PHY PWD Autoclear Enable. Raw encoding: 0b - Disable; 1b - Enable.
Sourcepub const fn set_enautoclr_phy_pwd(&mut self, val: bool)
pub const fn set_enautoclr_phy_pwd(&mut self, val: bool)
PHY PWD Autoclear Enable. Raw encoding: 0b - Disable; 1b - Enable.
Sourcepub const fn otg_id_value(&self) -> bool
pub const fn otg_id_value(&self) -> bool
OTG ID Value. Read-only status/value; writes do not configure this field. Raw encoding: 0b - Host; 1b - Device.
Sourcepub const fn set_otg_id_value(&mut self, val: bool)
pub const fn set_otg_id_value(&mut self, val: bool)
OTG ID Value. Read-only status/value; writes do not configure this field. Raw encoding: 0b - Host; 1b - Device.
Sourcepub const fn utmi_suspendm(&self) -> bool
pub const fn utmi_suspendm(&self) -> bool
UTMI Suspend. Read-only status/value; writes do not configure this field. Raw encoding: 0b - Suspended; 1b - Not suspended.
Sourcepub const fn set_utmi_suspendm(&mut self, val: bool)
pub const fn set_utmi_suspendm(&mut self, val: bool)
UTMI Suspend. Read-only status/value; writes do not configure this field. Raw encoding: 0b - Suspended; 1b - Not suspended.
Sourcepub const fn clkgate(&self) -> bool
pub const fn clkgate(&self) -> bool
UTMI Clock Gate. Raw encoding: 0b - Run clocks; 1b - Gate clocks.
Sourcepub const fn set_clkgate(&mut self, val: bool)
pub const fn set_clkgate(&mut self, val: bool)
UTMI Clock Gate. Raw encoding: 0b - Run clocks; 1b - Gate clocks.
Sourcepub const fn sftrst(&self) -> bool
pub const fn sftrst(&self) -> bool
Software Reset. Raw encoding: 0b - Release from reset; 1b - Soft-reset.
Sourcepub const fn set_sftrst(&mut self, val: bool)
pub const fn set_sftrst(&mut self, val: bool)
Software Reset. Raw encoding: 0b - Release from reset; 1b - Soft-reset.