#[repr(u8)]
pub enum MMS2_A {
Show 16 variants Reset = 0, Enable = 1, Update = 2, ComparePulse = 3, CompareOc1 = 4, CompareOc2 = 5, CompareOc3 = 6, CompareOc4 = 7, CompareOc5 = 8, CompareOc6 = 9, PulseOc4 = 10, PulseOc6 = 11, RisingOc46 = 12, RisingOc4FallingOc6 = 13, RisingOc56 = 14, RisingOc5FallingOc6 = 15,
}
Available on crate feature stm32wl5x_cm4 only.
Expand description

Master mode selection 2

Value on reset: 0

Variants§

§

Reset = 0

0: Reset - the UG bit from the TIMx_EGR register is used as trigger output (TRGO2). If the reset is generated by the trigger input (slave mode controller configured in reset mode), the signal on TRGO2 is delayed compared to the actual reset

§

Enable = 1

1: Enable - the Counter Enable signal CNT_EN is used as trigger output (TRGO2). It is useful to start several timers at the same time or to control a window in which a slave timer is enabled. The Counter Enable signal is generated by a logic AND between the 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 TRGO2, except if the Master/Slave mode is selected (see the MSM bit description in TIMx_SMCR register)

§

Update = 2

2: Update - the update event is selected as trigger output (TRGO2). For instance, a master timer can then be used as a prescaler for a slave timer

§

ComparePulse = 3

3: Compare pulse - the trigger output sends a positive pulse when the CC1IF flag is to be set (even if it was already high), as soon as a capture or compare match occurs (TRGO2)

§

CompareOc1 = 4

4: Compare - OC1REFC signal is used as trigger output (TRGO2)

§

CompareOc2 = 5

5: Compare - OC2REFC signal is used as trigger output (TRGO2)

§

CompareOc3 = 6

6: Compare - OC3REFC signal is used as trigger output (TRGO2)

§

CompareOc4 = 7

7: Compare - OC4REFC signal is used as trigger output (TRGO2)

§

CompareOc5 = 8

8: Compare - OC5REFC signal is used as trigger output (TRGO2)

§

CompareOc6 = 9

9: Compare - OC6REFC signal is used as trigger output (TRGO2)

§

PulseOc4 = 10

10: Compare Pulse - OC4REFC rising or falling edges generate pulses on TRGO2

§

PulseOc6 = 11

11: Compare Pulse - OC6REFC rising or falling edges generate pulses on TRGO2

§

RisingOc46 = 12

12: Compare Pulse - OC4REFC or OC6REFC rising edges generate pulses on TRGO2

§

RisingOc4FallingOc6 = 13

13: Compare Pulse - OC4REFC rising or OC6REFC falling edges generate pulses on TRGO2

§

RisingOc56 = 14

14: Compare Pulse - OC5REFC or OC6REFC rising edges generate pulses on TRGO2

§

RisingOc5FallingOc6 = 15

15: Compare Pulse - OC5REFC rising or OC6REFC falling edges generate pulses on TRGO2

Trait Implementations§

§

impl Clone for MMS2_A

§

fn clone(&self) -> MMS2_A

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for MMS2_A

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl PartialEq for MMS2_A

§

fn eq(&self, other: &MMS2_A) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
§

impl Copy for MMS2_A

§

impl StructuralPartialEq for MMS2_A

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

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

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.