Enum stm32_metapac::syscfg::vals::EncoderMode
#[repr(u8)]pub enum EncoderMode {
NOREDIRECTION = 0,
MAPTIM2TIM15 = 1,
MAPTIM3TIM15 = 2,
_RESERVED_3 = 3,
}
Variants§
NOREDIRECTION = 0
No redirection
MAPTIM2TIM15 = 1
TIM2 IC1 and TIM2 IC2 are connected to TIM15 IC1 and TIM15 IC2 respectively
MAPTIM3TIM15 = 2
TIM3 IC1 and TIM3 IC2 are connected to TIM15 IC1 and TIM15 IC2 respectively
_RESERVED_3 = 3
Implementations§
§impl EncoderMode
impl EncoderMode
pub const fn from_bits(val: u8) -> EncoderMode
pub const fn to_bits(self) -> u8
Trait Implementations§
§impl Clone for EncoderMode
impl Clone for EncoderMode
§fn clone(&self) -> EncoderMode
fn clone(&self) -> EncoderMode
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 more§impl From<EncoderMode> for u8
impl From<EncoderMode> for u8
§fn from(val: EncoderMode) -> u8
fn from(val: EncoderMode) -> u8
Converts to this type from the input type.
§impl From<u8> for EncoderMode
impl From<u8> for EncoderMode
§fn from(val: u8) -> EncoderMode
fn from(val: u8) -> EncoderMode
Converts to this type from the input type.
§impl Ord for EncoderMode
impl Ord for EncoderMode
§impl PartialEq for EncoderMode
impl PartialEq for EncoderMode
§fn eq(&self, other: &EncoderMode) -> bool
fn eq(&self, other: &EncoderMode) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.§impl PartialOrd for EncoderMode
impl PartialOrd for EncoderMode
§fn partial_cmp(&self, other: &EncoderMode) -> Option<Ordering>
fn partial_cmp(&self, other: &EncoderMode) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for EncoderMode
impl Eq for EncoderMode
impl StructuralEq for EncoderMode
impl StructuralPartialEq for EncoderMode
Auto Trait Implementations§
impl RefUnwindSafe for EncoderMode
impl Send for EncoderMode
impl Sync for EncoderMode
impl Unpin for EncoderMode
impl UnwindSafe for EncoderMode
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