pub struct Reset(pub u8);
Tuple Fields§
§0: u8
Implementations§
source§impl Reset
impl Reset
sourcepub fn pd_reset(&self) -> bool
pub fn pd_reset(&self) -> bool
Reset just the PD logic for both the PD transmitter and receiver
sourcepub fn with_pd_reset(self, value: bool) -> Self
pub fn with_pd_reset(self, value: bool) -> Self
Reset just the PD logic for both the PD transmitter and receiver
sourcepub fn set_pd_reset(&mut self, value: bool)
pub fn set_pd_reset(&mut self, value: bool)
Reset just the PD logic for both the PD transmitter and receiver
sourcepub fn sw_reset(&self) -> bool
pub fn sw_reset(&self) -> bool
Reset the FUSB302B including the I2C registers to their default values
sourcepub fn with_sw_reset(self, value: bool) -> Self
pub fn with_sw_reset(self, value: bool) -> Self
Reset the FUSB302B including the I2C registers to their default values
sourcepub fn set_sw_reset(&mut self, value: bool)
pub fn set_sw_reset(&mut self, value: bool)
Reset the FUSB302B including the I2C registers to their default values
Trait Implementations§
impl Copy for Reset
impl Eq for Reset
impl StructuralPartialEq for Reset
Auto Trait Implementations§
impl Freeze for Reset
impl RefUnwindSafe for Reset
impl Send for Reset
impl Sync for Reset
impl Unpin for Reset
impl UnwindSafe for Reset
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
)source§impl<T, U> UnsafeFrom<U> for Twhere
U: Into<T>,
impl<T, U> UnsafeFrom<U> for Twhere
U: Into<T>,
source§unsafe fn unsafe_from(other: U) -> T
unsafe fn unsafe_from(other: U) -> T
Calls U::into(other)
.
That is, this conversion is whatever the implementation of Into
<T> for U
chooses to
do.
source§impl<T, U> UnsafeInto<U> for Twhere
U: UnsafeFrom<T>,
impl<T, U> UnsafeInto<U> for Twhere
U: UnsafeFrom<T>,
source§unsafe fn unsafe_into(self) -> U
unsafe fn unsafe_into(self) -> U
Calls U::unsafe_from(self)
.
That is, this conversion is whatever the implementation of UnsafeFrom
<T> for U
chooses to do.