Enum stm32_metapac::lptim::vals::Ckpol
#[repr(u8)]pub enum Ckpol {
RISING = 0,
FALLING = 1,
BOTH = 2,
_RESERVED_3 = 3,
}
Variants§
RISING = 0
the rising edge is the active edge used for counting. If the LPTIM is configured in Encoder mode (ENC bit is set), the encoder sub-mode 1 is active.
FALLING = 1
the falling edge is the active edge used for counting. If the LPTIM is configured in Encoder mode (ENC bit is set), the encoder sub-mode 2 is active.
BOTH = 2
both edges are active edges. When both external clock signal edges are considered active ones, the LPTIM must also be clocked by an internal clock source with a frequency equal to at least four times the external clock frequency. If the LPTIM is configured in Encoder mode (ENC bit is set), the encoder sub-mode 3 is active.
_RESERVED_3 = 3
Implementations§
Trait Implementations§
§impl Ord for Ckpol
impl Ord for Ckpol
§impl PartialOrd for Ckpol
impl PartialOrd for Ckpol
impl Copy for Ckpol
impl Eq for Ckpol
impl StructuralPartialEq for Ckpol
Auto Trait Implementations§
impl Freeze for Ckpol
impl RefUnwindSafe for Ckpol
impl Send for Ckpol
impl Sync for Ckpol
impl Unpin for Ckpol
impl UnwindSafe for Ckpol
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
)