#[repr(transparent)]pub struct Usb1ChrgDetStatClr(pub u32);Expand description
Charger Detect Status
Tuple Fields§
§0: u32Implementations§
Source§impl Usb1ChrgDetStatClr
impl Usb1ChrgDetStatClr
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 Usb1ChrgDetStatClr
impl Clone for Usb1ChrgDetStatClr
Source§fn clone(&self) -> Usb1ChrgDetStatClr
fn clone(&self) -> Usb1ChrgDetStatClr
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 Debug for Usb1ChrgDetStatClr
impl Debug for Usb1ChrgDetStatClr
Source§impl Default for Usb1ChrgDetStatClr
impl Default for Usb1ChrgDetStatClr
Source§fn default() -> Usb1ChrgDetStatClr
fn default() -> Usb1ChrgDetStatClr
Returns the “default value” for a type. Read more
Source§impl PartialEq for Usb1ChrgDetStatClr
impl PartialEq for Usb1ChrgDetStatClr
impl Copy for Usb1ChrgDetStatClr
impl Eq for Usb1ChrgDetStatClr
impl StructuralPartialEq for Usb1ChrgDetStatClr
Auto Trait Implementations§
impl Freeze for Usb1ChrgDetStatClr
impl RefUnwindSafe for Usb1ChrgDetStatClr
impl Send for Usb1ChrgDetStatClr
impl Sync for Usb1ChrgDetStatClr
impl Unpin for Usb1ChrgDetStatClr
impl UnwindSafe for Usb1ChrgDetStatClr
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