#[repr(u8)]pub enum SMS {
Disabled = 0,
ResetMode = 4,
GatedMode = 5,
TriggerMode = 6,
ExtClockMode = 7,
}
Expand description
Slave mode selection
Value on reset: 0
Variants§
Disabled = 0
0: Slave mode disabled - if CEN = ‘1 then the prescaler is clocked directly by the internal clock.
ResetMode = 4
4: Reset Mode - Rising edge of the selected trigger input (TRGI) reinitializes the counter and generates an update of the registers.
GatedMode = 5
5: Gated Mode - The counter clock is enabled when the trigger input (TRGI) is high. The counter stops (but is not reset) as soon as the trigger becomes low. Both start and stop of the counter are controlled.
TriggerMode = 6
6: Trigger Mode - The counter starts at a rising edge of the trigger TRGI (but it is not reset). Only the start of the counter is controlled.
ExtClockMode = 7
7: External Clock Mode 1 - Rising edges of the selected trigger (TRGI) clock the counter.
Trait Implementations§
impl Copy for SMS
impl Eq for SMS
impl IsEnum for SMS
impl StructuralPartialEq for SMS
Auto Trait Implementations§
impl Freeze for SMS
impl RefUnwindSafe for SMS
impl Send for SMS
impl Sync for SMS
impl Unpin for SMS
impl UnwindSafe for SMS
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