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