#[repr(transparent)]pub struct Usb1ChrgDetectMask(pub u32);Expand description
USB1_CHRG_DETECT 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 Usb1ChrgDetectMask
impl Usb1ChrgDetectMask
Sourcepub const fn detect_sec(&self) -> bool
pub const fn detect_sec(&self) -> bool
Secondary Detection Function Enable. Raw encoding: 0b - Disable; 1b - Enable.
Sourcepub const fn set_detect_sec(&mut self, val: bool)
pub const fn set_detect_sec(&mut self, val: bool)
Secondary Detection Function Enable. Raw encoding: 0b - Disable; 1b - Enable.
Sourcepub const fn pullup_dp(&self) -> bool
pub const fn pullup_dp(&self) -> bool
DP Pullup Resistor Enable Override Control. Raw encoding: 0b - Disable; 1b - Enable.
Sourcepub const fn set_pullup_dp(&mut self, val: bool)
pub const fn set_pullup_dp(&mut self, val: bool)
DP Pullup Resistor Enable Override Control. Raw encoding: 0b - Disable; 1b - Enable.
Sourcepub const fn vdm_src_enable(&self) -> bool
pub const fn vdm_src_enable(&self) -> bool
VDM_SRC Function Enable. Raw encoding: 0b - Disable; 1b - Enable.
Sourcepub const fn set_vdm_src_enable(&mut self, val: bool)
pub const fn set_vdm_src_enable(&mut self, val: bool)
VDM_SRC Function Enable. Raw encoding: 0b - Disable; 1b - Enable.
Sourcepub const fn chk_contact(&self) -> bool
pub const fn chk_contact(&self) -> bool
BC Data Contact Detect Function Enable. Raw encoding: 0b - Disable; 1b - Enable.
Sourcepub const fn set_chk_contact(&mut self, val: bool)
pub const fn set_chk_contact(&mut self, val: bool)
BC Data Contact Detect Function Enable. Raw encoding: 0b - Disable; 1b - Enable.
Sourcepub const fn chk_chrg_b(&self) -> bool
pub const fn chk_chrg_b(&self) -> bool
BC Charger Detection Function Enable. Raw encoding: 0b - Enable; 1b - Disable.
Sourcepub const fn set_chk_chrg_b(&mut self, val: bool)
pub const fn set_chk_chrg_b(&mut self, val: bool)
BC Charger Detection Function Enable. Raw encoding: 0b - Enable; 1b - Disable.
Sourcepub const fn en_b(&self) -> bool
pub const fn en_b(&self) -> bool
Selection of BC v1.2 Function Enable. Raw encoding: 0b - Enable; 1b - Disable.
Sourcepub const fn set_en_b(&mut self, val: bool)
pub const fn set_en_b(&mut self, val: bool)
Selection of BC v1.2 Function Enable. Raw encoding: 0b - Enable; 1b - Disable.
Sourcepub const fn dcdsel(&self) -> bool
pub const fn dcdsel(&self) -> bool
DCD Selection. Raw encoding: 0b - Fields in USB1_CHRG_DETECT; 1b - Fields and state machines in the USBHSDCD module.
Sourcepub const fn set_dcdsel(&mut self, val: bool)
pub const fn set_dcdsel(&mut self, val: bool)
DCD Selection. Raw encoding: 0b - Fields in USB1_CHRG_DETECT; 1b - Fields and state machines in the USBHSDCD module.
Trait Implementations§
Source§impl Clone for Usb1ChrgDetectMask
impl Clone for Usb1ChrgDetectMask
Source§fn clone(&self) -> Usb1ChrgDetectMask
fn clone(&self) -> Usb1ChrgDetectMask
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more