#[repr(transparent)]pub struct Usb1ChrgDetectClr(pub u32);Expand description
USB PHY Charger Detect Control Register
Tuple Fields§
§0: u32Implementations§
Source§impl Usb1ChrgDetectClr
impl Usb1ChrgDetectClr
Sourcepub const fn pullup_dp(&self) -> bool
pub const fn pullup_dp(&self) -> bool
This bit is used to pull up DP, for digital charge detect.
Sourcepub const fn set_pullup_dp(&mut self, val: bool)
pub const fn set_pullup_dp(&mut self, val: bool)
This bit is used to pull up DP, for digital charge detect.
Sourcepub const fn bgr_ibias(&self) -> Usb1ChrgDetectClrBgrIbias
pub const fn bgr_ibias(&self) -> Usb1ChrgDetectClrBgrIbias
USB charge detector bias current reference This bit determines the reference for the bias current of the USB charge detector
Sourcepub const fn set_bgr_ibias(&mut self, val: Usb1ChrgDetectClrBgrIbias)
pub const fn set_bgr_ibias(&mut self, val: Usb1ChrgDetectClrBgrIbias)
USB charge detector bias current reference This bit determines the reference for the bias current of the USB charge detector
Trait Implementations§
Source§impl Clone for Usb1ChrgDetectClr
impl Clone for Usb1ChrgDetectClr
Source§fn clone(&self) -> Usb1ChrgDetectClr
fn clone(&self) -> Usb1ChrgDetectClr
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 Usb1ChrgDetectClr
impl Debug for Usb1ChrgDetectClr
Source§impl Default for Usb1ChrgDetectClr
impl Default for Usb1ChrgDetectClr
Source§fn default() -> Usb1ChrgDetectClr
fn default() -> Usb1ChrgDetectClr
Returns the “default value” for a type. Read more
Source§impl PartialEq for Usb1ChrgDetectClr
impl PartialEq for Usb1ChrgDetectClr
impl Copy for Usb1ChrgDetectClr
impl Eq for Usb1ChrgDetectClr
impl StructuralPartialEq for Usb1ChrgDetectClr
Auto Trait Implementations§
impl Freeze for Usb1ChrgDetectClr
impl RefUnwindSafe for Usb1ChrgDetectClr
impl Send for Usb1ChrgDetectClr
impl Sync for Usb1ChrgDetectClr
impl Unpin for Usb1ChrgDetectClr
impl UnwindSafe for Usb1ChrgDetectClr
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