Enum lpc845_pac::ctimer0::ctcr::CTMODE_A [−][src]
#[repr(u8)]
pub enum CTMODE_A {
TIMER,
COUNTER_RISING_EDGE,
COUNTER_FALLING_EDGE,
COUNTER_DUAL_EDGE,
}
Expand description
Counter/Timer Mode This field selects which rising APB bus clock edges can increment Timer’s Prescale Counter (PC), or clear PC and increment Timer Counter (TC). Timer Mode: the TC is incremented when the Prescale Counter matches the Prescale Register.
Value on reset: 0
Variants
0: Timer Mode. Incremented every rising APB bus clock edge.
1: Counter Mode rising edge. TC is incremented on rising edges on the CAP input selected by bits 3:2.
2: Counter Mode falling edge. TC is incremented on falling edges on the CAP input selected by bits 3:2.
3: Counter Mode dual edge. TC is incremented on both edges on the CAP input selected by bits 3:2.