#[repr(transparent)]pub struct Usb1ChrgDetect(pub u32);Expand description
Charger Detect. F70RM 42.7.13 (text line 105740). DCDSEL selects manual PHY control (0) or USBHSDCD state machines (1). Disable charger detection before normal USB communication. EN_B and CHK_CHRG_B are active-low enables; CHK_CONTACT and DETECT_SEC are active-high. PULLUP_DP must remain 0 for normal USB and BC 1.2.
Tuple Fields§
§0: u32Implementations§
Source§impl Usb1ChrgDetect
impl Usb1ChrgDetect
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 Usb1ChrgDetect
impl Clone for Usb1ChrgDetect
Source§fn clone(&self) -> Usb1ChrgDetect
fn clone(&self) -> Usb1ChrgDetect
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more