pub struct Switches0(pub u8);
Tuple Fields§
§0: u8
Implementations§
source§impl Switches0
impl Switches0
sourcepub fn with_pu_en2(self, value: bool) -> Self
pub fn with_pu_en2(self, value: bool) -> Self
Apply host pull up current to CC2 pin
sourcepub fn set_pu_en2(&mut self, value: bool)
pub fn set_pu_en2(&mut self, value: bool)
Apply host pull up current to CC2 pin
sourcepub fn with_pu_en1(self, value: bool) -> Self
pub fn with_pu_en1(self, value: bool) -> Self
Apply host pull up current to CC1 pin
sourcepub fn set_pu_en1(&mut self, value: bool)
pub fn set_pu_en1(&mut self, value: bool)
Apply host pull up current to CC1 pin
sourcepub fn with_vconn_cc2(self, value: bool) -> Self
pub fn with_vconn_cc2(self, value: bool) -> Self
Turn on the VCONN current to CC2 pin
sourcepub fn set_vconn_cc2(&mut self, value: bool)
pub fn set_vconn_cc2(&mut self, value: bool)
Turn on the VCONN current to CC2 pin
sourcepub fn with_vconn_cc1(self, value: bool) -> Self
pub fn with_vconn_cc1(self, value: bool) -> Self
Turn on the VCONN current to CC1 pin
sourcepub fn set_vconn_cc1(&mut self, value: bool)
pub fn set_vconn_cc1(&mut self, value: bool)
Turn on the VCONN current to CC1 pin
sourcepub fn with_meas_cc2(self, value: bool) -> Self
pub fn with_meas_cc2(self, value: bool) -> Self
Use the measure block to monitor or measure the voltage on CC2
sourcepub fn set_meas_cc2(&mut self, value: bool)
pub fn set_meas_cc2(&mut self, value: bool)
Use the measure block to monitor or measure the voltage on CC2
sourcepub fn with_meas_cc1(self, value: bool) -> Self
pub fn with_meas_cc1(self, value: bool) -> Self
Use the measure block to monitor or measure the voltage on CC1
sourcepub fn set_meas_cc1(&mut self, value: bool)
pub fn set_meas_cc1(&mut self, value: bool)
Use the measure block to monitor or measure the voltage on CC1
sourcepub fn with_pdwn2(self, value: bool) -> Self
pub fn with_pdwn2(self, value: bool) -> Self
Device pull down on CC2
sourcepub fn with_pdwn1(self, value: bool) -> Self
pub fn with_pdwn1(self, value: bool) -> Self
Device pull down on CC1
Trait Implementations§
source§impl PartialEq for Switches0
impl PartialEq for Switches0
impl Copy for Switches0
impl Eq for Switches0
impl StructuralPartialEq for Switches0
Auto Trait Implementations§
impl Freeze for Switches0
impl RefUnwindSafe for Switches0
impl Send for Switches0
impl Sync for Switches0
impl Unpin for Switches0
impl UnwindSafe for Switches0
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
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.