#[repr(u8)]pub enum TsPinOutputMode {
Disabled = 0,
DuringCharging = 1,
DuringAdcSampling = 2,
AlwaysEnabled = 3,
}
Variants§
Disabled = 0
TS pin current output is disabled.
DuringCharging = 1
TS pin current output enabled during charging.
DuringAdcSampling = 2
TS pin current output enabled only during ADC sampling (power saving).
AlwaysEnabled = 3
TS pin current output is always enabled.
Trait Implementations§
Source§impl Clone for TsPinOutputMode
impl Clone for TsPinOutputMode
Source§fn clone(&self) -> TsPinOutputMode
fn clone(&self) -> TsPinOutputMode
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 TsPinOutputMode
impl Debug for TsPinOutputMode
Source§impl From<TsPinOutputMode> for u8
impl From<TsPinOutputMode> for u8
Source§fn from(val: TsPinOutputMode) -> Self
fn from(val: TsPinOutputMode) -> Self
Converts to this type from the input type.
Source§impl Hash for TsPinOutputMode
impl Hash for TsPinOutputMode
Source§impl PartialEq for TsPinOutputMode
impl PartialEq for TsPinOutputMode
Source§impl TryFrom<u8> for TsPinOutputMode
impl TryFrom<u8> for TsPinOutputMode
impl Copy for TsPinOutputMode
impl Eq for TsPinOutputMode
impl StructuralPartialEq for TsPinOutputMode
Auto Trait Implementations§
impl Freeze for TsPinOutputMode
impl RefUnwindSafe for TsPinOutputMode
impl Send for TsPinOutputMode
impl Sync for TsPinOutputMode
impl Unpin for TsPinOutputMode
impl UnwindSafe for TsPinOutputMode
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