pub struct Operator<const OP: u8, PWM> { /* private fields */ }
Expand description

A MCPWM operator

The PWM Operator submodule has the following functions:

  • Generates a PWM signal pair, based on timing references obtained from the corresponding PWM timer.
  • Each signal out of the PWM signal pair includes a specific pattern of dead time. (Not yet implemented)
  • Superimposes a carrier on the PWM signal, if configured to do so. (Not yet implemented)
  • Handles response under fault conditions. (Not yet implemented)

Implementations§

Select a Timer to be the timing reference for this operator

Note:

By default TIMER0 is used

Use the A output with the given pin and configuration

Use the B output with the given pin and configuration

Use both the A and the B output with the given pins and configurations

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.