#[repr(transparent)]pub struct Usb2ChrgDetectSet(pub u32);Expand description
USB Charger Detect Register
Tuple Fields§
§0: u32Implementations§
Source§impl Usb2ChrgDetectSet
impl Usb2ChrgDetectSet
Sourcepub const fn chk_contact(&self) -> bool
pub const fn chk_contact(&self) -> bool
Check the contact of USB plug
Sourcepub const fn set_chk_contact(&mut self, val: bool)
pub const fn set_chk_contact(&mut self, val: bool)
Check the contact of USB plug
Sourcepub const fn chk_chrg_b(&self) -> Usb2ChrgDetectSetChkChrgB
pub const fn chk_chrg_b(&self) -> Usb2ChrgDetectSetChkChrgB
Check the charger connection
Sourcepub const fn set_chk_chrg_b(&mut self, val: Usb2ChrgDetectSetChkChrgB)
pub const fn set_chk_chrg_b(&mut self, val: Usb2ChrgDetectSetChkChrgB)
Check the charger connection
Sourcepub const fn en_b(&self) -> Usb2ChrgDetectSetEnB
pub const fn en_b(&self) -> Usb2ChrgDetectSetEnB
Control the charger detector.
Sourcepub const fn set_en_b(&mut self, val: Usb2ChrgDetectSetEnB)
pub const fn set_en_b(&mut self, val: Usb2ChrgDetectSetEnB)
Control the charger detector.
Trait Implementations§
Source§impl Clone for Usb2ChrgDetectSet
impl Clone for Usb2ChrgDetectSet
Source§fn clone(&self) -> Usb2ChrgDetectSet
fn clone(&self) -> Usb2ChrgDetectSet
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 Usb2ChrgDetectSet
impl Debug for Usb2ChrgDetectSet
Source§impl Default for Usb2ChrgDetectSet
impl Default for Usb2ChrgDetectSet
Source§fn default() -> Usb2ChrgDetectSet
fn default() -> Usb2ChrgDetectSet
Returns the “default value” for a type. Read more
Source§impl PartialEq for Usb2ChrgDetectSet
impl PartialEq for Usb2ChrgDetectSet
impl Copy for Usb2ChrgDetectSet
impl Eq for Usb2ChrgDetectSet
impl StructuralPartialEq for Usb2ChrgDetectSet
Auto Trait Implementations§
impl Freeze for Usb2ChrgDetectSet
impl RefUnwindSafe for Usb2ChrgDetectSet
impl Send for Usb2ChrgDetectSet
impl Sync for Usb2ChrgDetectSet
impl Unpin for Usb2ChrgDetectSet
impl UnwindSafe for Usb2ChrgDetectSet
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