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
§impl PartialOrd for EncoderMode
impl PartialOrd for EncoderMode
impl Copy for EncoderMode
impl Eq for EncoderMode
impl StructuralPartialEq for EncoderMode
Auto Trait Implementations§
impl Freeze for EncoderMode
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
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
)