#[repr(u8)]
pub enum MasterModeSelection {
    Reset,
    Enable,
    Update,
    ComparePulse,
    Compare1,
    Compare2,
    Compare3,
    Compare4,
}
Expand description

These bits allow selected information to be sent in master mode to slave timers for synchronization (TRGO). Sets CR2 register, MMS field.

Variants

Reset

Tthe UG bit from the TIMx_EGR register is used as trigger output (TRGO). If the reset is generated by the trigger input (slave mode controller configured in reset mode) then the signal on TRGO is delayed compared to the actual reset.

Enable

the Counter Enable signal CNT_EN is used as trigger output (TRGO). It is useful to start several timers at the same time or to control a window in which a slave timer is enable. The Counter Enable signal is generated by a logic AND between CEN control bit and the trigger input when configured in gated mode. When the Counter Enable signal is controlled by the trigger input, there is a delay on TRGO, except if the master/slave mode is selected (see the MSM bit description in TIMx_SMCR register).

Update

The update event is selected as trigger output (TRGO). For instance a master timer can then be used as a prescaler for a slave timer.

ComparePulse

Compare Pulse - The trigger output send a positive pulse when the CC1IF flag is to be set (even if it was already high), as soon as a capture or a compare match occurred. (TRGO).

Compare1

OC1REF signal is used as trigger output (TRGO)

Compare2

OC2REF signal is used as trigger output (TRGO)

Compare3

OC3REF signal is used as trigger output (TRGO)

Compare4

OC4REF signal is used as trigger output (TRGO)

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.