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