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