pub struct Pwm<TIMER, PINS> { /* private fields */ }

Implementations

Configure the state which the output of the given channel should have when the channel is idle.

Configure the state which the complementary output of the given channel should have when the channel is idle.

Configure the polarity of the output for the given channel.

Configure the polarity of the complementary output for the given channel.

Split the timer into separate PWM channels.

Split the timer into separate PWM channels.

Stop the timer and release it and the pins to be used for something else.

Configure the given alignment mode, to control how pulses on different channels of this PWM module are aligned with each other.

Starts listening for an event.

Stops listening for an event.

Returns true if the given event interrupt is pending.

Clears the given event interrupt flag.

Disable PWM outputs, and prevent them from being automatically enabled.

Automatically enable outputs at the next update event, if the break input is not active.

Configure the given break mode.

Configure the run mode off-state.

Configure the idle mode off-state.

Configure the dead time for complementary chanels.

Split the timer into separate PWM channels.

Split the timer into separate PWM channels.

Stop the timer and release it and the pins to be used for something else.

Configure the given alignment mode, to control how pulses on different channels of this PWM module are aligned with each other.

Starts listening for an event.

Stops listening for an event.

Returns true if the given event interrupt is pending.

Clears the given event interrupt flag.

Split the timer into separate PWM channels.

Split the timer into separate PWM channels.

Stop the timer and release it and the pins to be used for something else.

Configure the given alignment mode, to control how pulses on different channels of this PWM module are aligned with each other.

Starts listening for an event.

Stops listening for an event.

Returns true if the given event interrupt is pending.

Clears the given event interrupt flag.

Trait Implementations

Enumeration of channels that can be used with this Pwm interface Read more

Type for the duty methods Read more

A time unit that can be converted into a human time unit (e.g. seconds)

Disables a PWM channel

Enables a PWM channel

Returns the current duty cycle

Sets a new duty cycle

Returns the maximum duty cycle value

Returns the current PWM period

Sets a new PWM period

Enumeration of channels that can be used with this Pwm interface Read more

Type for the duty methods Read more

A time unit that can be converted into a human time unit (e.g. seconds)

Disables a PWM channel

Enables a PWM channel

Returns the current duty cycle

Sets a new duty cycle

Returns the maximum duty cycle value

Returns the current PWM period

Sets a new PWM period

Enumeration of channels that can be used with this Pwm interface Read more

Type for the duty methods Read more

A time unit that can be converted into a human time unit (e.g. seconds)

Disables a PWM channel

Enables a PWM channel

Returns the current duty cycle

Sets a new duty cycle

Returns the maximum duty cycle value

Returns the current PWM period

Sets a new PWM period

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.