#[repr(transparent)]pub struct UsbChrgDetStatClr(pub u32);Expand description
Charger Detect Status.
Tuple Fields§
§0: u32Implementations§
Source§impl UsbChrgDetStatClr
impl UsbChrgDetStatClr
Sourcepub const fn plug_contact(&self) -> bool
pub const fn plug_contact(&self) -> bool
Battery Charging Data Contact Detection Phase Output.
Sourcepub const fn set_plug_contact(&mut self, val: bool)
pub const fn set_plug_contact(&mut self, val: bool)
Battery Charging Data Contact Detection Phase Output.
Sourcepub const fn chrg_detected(&self) -> bool
pub const fn chrg_detected(&self) -> bool
Battery Charging Primary Detection Phase Output.
Sourcepub const fn set_chrg_detected(&mut self, val: bool)
pub const fn set_chrg_detected(&mut self, val: bool)
Battery Charging Primary Detection Phase Output.
Sourcepub const fn set_dm_state(&mut self, val: bool)
pub const fn set_dm_state(&mut self, val: bool)
DM Voltage.
Sourcepub const fn set_dp_state(&mut self, val: bool)
pub const fn set_dp_state(&mut self, val: bool)
DP Voltage.
Sourcepub const fn secdet_dcp(&self) -> bool
pub const fn secdet_dcp(&self) -> bool
Battery Charging Secondary Detection Phase Output.
Sourcepub const fn set_secdet_dcp(&mut self, val: bool)
pub const fn set_secdet_dcp(&mut self, val: bool)
Battery Charging Secondary Detection Phase Output.
Trait Implementations§
Source§impl Clone for UsbChrgDetStatClr
impl Clone for UsbChrgDetStatClr
Source§fn clone(&self) -> UsbChrgDetStatClr
fn clone(&self) -> UsbChrgDetStatClr
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 UsbChrgDetStatClr
impl Default for UsbChrgDetStatClr
Source§fn default() -> UsbChrgDetStatClr
fn default() -> UsbChrgDetStatClr
Returns the “default value” for a type. Read more
Source§impl PartialEq for UsbChrgDetStatClr
impl PartialEq for UsbChrgDetStatClr
impl Copy for UsbChrgDetStatClr
impl Eq for UsbChrgDetStatClr
impl StructuralPartialEq for UsbChrgDetStatClr
Auto Trait Implementations§
impl Freeze for UsbChrgDetStatClr
impl RefUnwindSafe for UsbChrgDetStatClr
impl Send for UsbChrgDetStatClr
impl Sync for UsbChrgDetStatClr
impl Unpin for UsbChrgDetStatClr
impl UnwindSafe for UsbChrgDetStatClr
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