#[repr(transparent)]pub struct Usb2ChrgDetectStat(pub u32);Expand description
USB Charger Detect Status Register
Tuple Fields§
§0: u32Implementations§
Source§impl Usb2ChrgDetectStat
impl Usb2ChrgDetectStat
Sourcepub const fn plug_contact(&self) -> Usb2ChrgDetectStatPlugContact
pub const fn plug_contact(&self) -> Usb2ChrgDetectStatPlugContact
State of the USB plug contact detector.
Sourcepub const fn set_plug_contact(&mut self, val: Usb2ChrgDetectStatPlugContact)
pub const fn set_plug_contact(&mut self, val: Usb2ChrgDetectStatPlugContact)
State of the USB plug contact detector.
Sourcepub const fn chrg_detected(&self) -> Usb2ChrgDetectStatChrgDetected
pub const fn chrg_detected(&self) -> Usb2ChrgDetectStatChrgDetected
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: Usb2ChrgDetectStatChrgDetected)
pub const fn set_chrg_detected(&mut self, val: Usb2ChrgDetectStatChrgDetected)
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 Usb2ChrgDetectStat
impl Clone for Usb2ChrgDetectStat
Source§fn clone(&self) -> Usb2ChrgDetectStat
fn clone(&self) -> Usb2ChrgDetectStat
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 Usb2ChrgDetectStat
impl Debug for Usb2ChrgDetectStat
Source§impl Default for Usb2ChrgDetectStat
impl Default for Usb2ChrgDetectStat
Source§fn default() -> Usb2ChrgDetectStat
fn default() -> Usb2ChrgDetectStat
Returns the “default value” for a type. Read more
Source§impl PartialEq for Usb2ChrgDetectStat
impl PartialEq for Usb2ChrgDetectStat
impl Copy for Usb2ChrgDetectStat
impl Eq for Usb2ChrgDetectStat
impl StructuralPartialEq for Usb2ChrgDetectStat
Auto Trait Implementations§
impl Freeze for Usb2ChrgDetectStat
impl RefUnwindSafe for Usb2ChrgDetectStat
impl Send for Usb2ChrgDetectStat
impl Sync for Usb2ChrgDetectStat
impl Unpin for Usb2ChrgDetectStat
impl UnwindSafe for Usb2ChrgDetectStat
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