#[repr(transparent)]pub struct Overridevalues(pub u32);Expand description
Values that are used to override the input signals to the PHY.
Tuple Fields§
§0: u32Implementations§
Source§impl Overridevalues
impl Overridevalues
Sourcepub const fn dppulldown(&self) -> bool
pub const fn dppulldown(&self) -> bool
This field controls the pull-down resistor on D+
Sourcepub const fn set_dppulldown(&mut self, val: bool)
pub const fn set_dppulldown(&mut self, val: bool)
This field controls the pull-down resistor on D+
Sourcepub const fn dmpulldown(&self) -> bool
pub const fn dmpulldown(&self) -> bool
This field controls the pull-down resistor on D-
Sourcepub const fn set_dmpulldown(&mut self, val: bool)
pub const fn set_dmpulldown(&mut self, val: bool)
This field controls the pull-down resistor on D-
Sourcepub const fn vbusvalid(&self) -> bool
pub const fn vbusvalid(&self) -> bool
Signals to the PHY that VBUS is valid, and enables the pull-up resistor on D+
Sourcepub const fn set_vbusvalid(&mut self, val: bool)
pub const fn set_vbusvalid(&mut self, val: bool)
Signals to the PHY that VBUS is valid, and enables the pull-up resistor on D+
Trait Implementations§
Source§impl Clone for Overridevalues
impl Clone for Overridevalues
Source§fn clone(&self) -> Overridevalues
fn clone(&self) -> Overridevalues
Returns a copy 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 Overridevalues
impl Debug for Overridevalues
Source§impl Default for Overridevalues
impl Default for Overridevalues
Source§fn default() -> Overridevalues
fn default() -> Overridevalues
Returns the “default value” for a type. Read more
Source§impl PartialEq for Overridevalues
impl PartialEq for Overridevalues
impl Copy for Overridevalues
impl Eq for Overridevalues
impl StructuralPartialEq for Overridevalues
Auto Trait Implementations§
impl Freeze for Overridevalues
impl RefUnwindSafe for Overridevalues
impl Send for Overridevalues
impl Sync for Overridevalues
impl Unpin for Overridevalues
impl UnwindSafe for Overridevalues
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)