pub struct PwmActions<const IS_A: bool>(_);
Expand description

Settings for what actions should be taken on timing events

Note:

The hardware supports using a timestamp A event to trigger an action on output B or vice versa. For clearer ownership semantics this HAL does not support such configurations.

Implementations§

Using this setting together with a timer configured with PwmWorkingMode::Increase will set the output high for a duration proportional to the set timestamp.

Using this setting together with a timer configured with PwmWorkingMode::UpDown will set the output high for a duration proportional to the set timestamp.

PwmActions with no UpdateActions set

Choose an UpdateAction for an UTEZ event

Choose an UpdateAction for an UTEP event

Choose an UpdateAction for an UTEA/UTEB event

Choose an UpdateAction for an DTEZ event

Choose an UpdateAction for an DTEP event

Choose an UpdateAction for an DTEA/DTEB event

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.