#[repr(transparent)]pub struct NcCtrl1(pub u32);Expand description
USB Control 1. F70RM 44.5.1.2 (text line 110945). Preserve reserved bits. WIR is read-only and clears by disabling WIE, not W1C. WKUP_DPDM_EN is Device-mode only (disable only while VBUS invalid); REMOTE_WAKEUP_EN is Host-mode only.
Tuple Fields§
§0: u32Implementations§
Source§impl NcCtrl1
impl NcCtrl1
Sourcepub const fn over_cur_dis(&self) -> bool
pub const fn over_cur_dis(&self) -> bool
Overcurrent Disable. Raw encoding: 0b - Enables; 1b - Disables.
Sourcepub const fn set_over_cur_dis(&mut self, val: bool)
pub const fn set_over_cur_dis(&mut self, val: bool)
Overcurrent Disable. Raw encoding: 0b - Enables; 1b - Disables.
Sourcepub const fn over_cur_pol(&self) -> bool
pub const fn over_cur_pol(&self) -> bool
Overcurrent Polarity. Raw encoding: 1b - Active low.
Sourcepub const fn set_over_cur_pol(&mut self, val: bool)
pub const fn set_over_cur_pol(&mut self, val: bool)
Overcurrent Polarity. Raw encoding: 1b - Active low.
Sourcepub const fn pwr_pol(&self) -> bool
pub const fn pwr_pol(&self) -> bool
Power Polarity. Raw encoding: 0b - Active low; 1b - Active high.
Sourcepub const fn set_pwr_pol(&mut self, val: bool)
pub const fn set_pwr_pol(&mut self, val: bool)
Power Polarity. Raw encoding: 0b - Active low; 1b - Active high.
Sourcepub const fn wie(&self) -> bool
pub const fn wie(&self) -> bool
Wake-Up Interrupt Enable. Raw encoding: 0b - Disables; 1b - Enables.
Sourcepub const fn set_wie(&mut self, val: bool)
pub const fn set_wie(&mut self, val: bool)
Wake-Up Interrupt Enable. Raw encoding: 0b - Disables; 1b - Enables.
Sourcepub const fn wkup_sw_en(&self) -> bool
pub const fn wkup_sw_en(&self) -> bool
Software Wake-Up Enable. Raw encoding: 0b - Disables; 1b - 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 encoding: 0b - Disables; 1b - Enables.
Sourcepub const fn wkup_sw(&self) -> bool
pub const fn wkup_sw(&self) -> bool
Software Wake-Up. Raw encoding: 0b - Inactive; 1b - 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 encoding: 0b - Inactive; 1b - Force wake-up.
Sourcepub const fn wkup_id_en(&self) -> bool
pub const fn wkup_id_en(&self) -> bool
Wake-Up After ID Change Enable. Raw encoding: 0b - Disables; 1b - 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 After ID Change Enable. Raw encoding: 0b - Disables; 1b - Enables.
Sourcepub const fn wkup_vbus_en(&self) -> bool
pub const fn wkup_vbus_en(&self) -> bool
Wake-Up After VBUS Change Enable. Raw encoding: 1b - 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 After VBUS Change Enable. Raw encoding: 1b - Enables.
Sourcepub const fn remote_wakeup_en(&self) -> bool
pub const fn remote_wakeup_en(&self) -> bool
Remote Wake-Up Enable. Raw encoding: 0b - Disables; 1b - Enables.
Sourcepub const fn set_remote_wakeup_en(&mut self, val: bool)
pub const fn set_remote_wakeup_en(&mut self, val: bool)
Remote Wake-Up Enable. Raw encoding: 0b - Disables; 1b - Enables.
Sourcepub const fn wkup_dpdm_en(&self) -> bool
pub const fn wkup_dpdm_en(&self) -> bool
Wake-Up After DP or DM Change Enable. Raw encoding: 0b - Disable only when VBUS is invalid; 1b - Enable (default).
Sourcepub const fn set_wkup_dpdm_en(&mut self, val: bool)
pub const fn set_wkup_dpdm_en(&mut self, val: bool)
Wake-Up After DP or DM Change Enable. Raw encoding: 0b - Disable only when VBUS is invalid; 1b - Enable (default).