#[repr(transparent)]pub struct Usb1ChrgDetectStat(pub u32);Expand description
USB Charger Detect Status Register
Tuple Fields§
§0: u32Implementations§
Source§impl Usb1ChrgDetectStat
impl Usb1ChrgDetectStat
Sourcepub const fn plug_contact(&self) -> Usb1ChrgDetectStatPlugContact
pub const fn plug_contact(&self) -> Usb1ChrgDetectStatPlugContact
State of the USB plug contact detector.
Sourcepub const fn set_plug_contact(&mut self, val: Usb1ChrgDetectStatPlugContact)
pub const fn set_plug_contact(&mut self, val: Usb1ChrgDetectStatPlugContact)
State of the USB plug contact detector.
Sourcepub const fn chrg_detected(&self) -> Usb1ChrgDetectStatChrgDetected
pub const fn chrg_detected(&self) -> Usb1ChrgDetectStatChrgDetected
State of charger detection. This bit is a read only version of the state of the analog signal.
Sourcepub const fn set_chrg_detected(&mut self, val: Usb1ChrgDetectStatChrgDetected)
pub const fn set_chrg_detected(&mut self, val: Usb1ChrgDetectStatChrgDetected)
State of charger detection. This bit is a read only version of the state of the analog signal.
Sourcepub const fn set_dm_state(&mut self, val: bool)
pub const fn set_dm_state(&mut self, val: bool)
DM line state output of the charger detector.
Sourcepub const fn set_dp_state(&mut self, val: bool)
pub const fn set_dp_state(&mut self, val: bool)
DP line state output of the charger detector.
Trait Implementations§
Source§impl Clone for Usb1ChrgDetectStat
impl Clone for Usb1ChrgDetectStat
Source§fn clone(&self) -> Usb1ChrgDetectStat
fn clone(&self) -> Usb1ChrgDetectStat
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 Usb1ChrgDetectStat
impl Debug for Usb1ChrgDetectStat
Source§impl Default for Usb1ChrgDetectStat
impl Default for Usb1ChrgDetectStat
Source§fn default() -> Usb1ChrgDetectStat
fn default() -> Usb1ChrgDetectStat
Returns the “default value” for a type. Read more
Source§impl PartialEq for Usb1ChrgDetectStat
impl PartialEq for Usb1ChrgDetectStat
impl Copy for Usb1ChrgDetectStat
impl Eq for Usb1ChrgDetectStat
impl StructuralPartialEq for Usb1ChrgDetectStat
Auto Trait Implementations§
impl Freeze for Usb1ChrgDetectStat
impl RefUnwindSafe for Usb1ChrgDetectStat
impl Send for Usb1ChrgDetectStat
impl Sync for Usb1ChrgDetectStat
impl Unpin for Usb1ChrgDetectStat
impl UnwindSafe for Usb1ChrgDetectStat
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