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