Enum stm32_metapac::timer::vals::CcmrInputCcs
#[repr(u8)]pub enum CcmrInputCcs {
_RESERVED_0 = 0,
TI4 = 1,
TI3 = 2,
TRC = 3,
}
Variants§
_RESERVED_0 = 0
TI4 = 1
CCx channel is configured as input, normal mapping: ICx mapped to TIx
TI3 = 2
CCx channel is configured as input, alternate mapping (switches 1 with 2, 3 with 4)
TRC = 3
CCx channel is configured as input, ICx is mapped on TRC
Implementations§
§impl CcmrInputCcs
impl CcmrInputCcs
pub const fn from_bits(val: u8) -> CcmrInputCcs
pub const fn to_bits(self) -> u8
Trait Implementations§
§impl Clone for CcmrInputCcs
impl Clone for CcmrInputCcs
§fn clone(&self) -> CcmrInputCcs
fn clone(&self) -> CcmrInputCcs
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<CcmrInputCcs> for u8
impl From<CcmrInputCcs> for u8
§fn from(val: CcmrInputCcs) -> u8
fn from(val: CcmrInputCcs) -> u8
Converts to this type from the input type.
§impl From<u8> for CcmrInputCcs
impl From<u8> for CcmrInputCcs
§fn from(val: u8) -> CcmrInputCcs
fn from(val: u8) -> CcmrInputCcs
Converts to this type from the input type.
§impl Ord for CcmrInputCcs
impl Ord for CcmrInputCcs
§impl PartialEq for CcmrInputCcs
impl PartialEq for CcmrInputCcs
§fn eq(&self, other: &CcmrInputCcs) -> bool
fn eq(&self, other: &CcmrInputCcs) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.§impl PartialOrd for CcmrInputCcs
impl PartialOrd for CcmrInputCcs
§fn partial_cmp(&self, other: &CcmrInputCcs) -> Option<Ordering>
fn partial_cmp(&self, other: &CcmrInputCcs) -> 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 CcmrInputCcs
impl Eq for CcmrInputCcs
impl StructuralPartialEq for CcmrInputCcs
Auto Trait Implementations§
impl Freeze for CcmrInputCcs
impl RefUnwindSafe for CcmrInputCcs
impl Send for CcmrInputCcs
impl Sync for CcmrInputCcs
impl Unpin for CcmrInputCcs
impl UnwindSafe for CcmrInputCcs
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