#[repr(transparent)]pub struct UsbChrgDetectClr(pub u32);Expand description
Charger Detect.
Tuple Fields§
§0: u32Implementations§
Source§impl UsbChrgDetectClr
impl UsbChrgDetectClr
Sourcepub const fn detect_sec(&self) -> bool
pub const fn detect_sec(&self) -> bool
Secondary Detection Function 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.
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.
Sourcepub const fn vdm_src_enable(&self) -> bool
pub const fn vdm_src_enable(&self) -> bool
VDM_SRC Function 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.
Sourcepub const fn chk_contact(&self) -> bool
pub const fn chk_contact(&self) -> bool
BC Data Contact Detect Function 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.
Sourcepub const fn chk_chrg_b(&self) -> bool
pub const fn chk_chrg_b(&self) -> bool
BC Charger Detection Function Enable.
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.
Sourcepub const fn set_dcdsel(&mut self, val: bool)
pub const fn set_dcdsel(&mut self, val: bool)
DCD Selection.
Trait Implementations§
Source§impl Clone for UsbChrgDetectClr
impl Clone for UsbChrgDetectClr
Source§fn clone(&self) -> UsbChrgDetectClr
fn clone(&self) -> UsbChrgDetectClr
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for UsbChrgDetectClr
impl Default for UsbChrgDetectClr
Source§fn default() -> UsbChrgDetectClr
fn default() -> UsbChrgDetectClr
Returns the “default value” for a type. Read more
Source§impl PartialEq for UsbChrgDetectClr
impl PartialEq for UsbChrgDetectClr
impl Copy for UsbChrgDetectClr
impl Eq for UsbChrgDetectClr
impl StructuralPartialEq for UsbChrgDetectClr
Auto Trait Implementations§
impl Freeze for UsbChrgDetectClr
impl RefUnwindSafe for UsbChrgDetectClr
impl Send for UsbChrgDetectClr
impl Sync for UsbChrgDetectClr
impl Unpin for UsbChrgDetectClr
impl UnwindSafe for UsbChrgDetectClr
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more