pub struct BasicTimer<R> {
    pub regs: R,
    /* private fields */
}
Expand description

Represents a Basic timer, used primarily to trigger the onboard DAC. Eg Tim6 or Tim7.

Fields

regs: R

Implementations

Initialize a Basic timer, including enabling and resetting its RCC peripheral clock.

Enable the timer.

Disable the timer.

Check if the timer is enabled.

Set the timer period, in seconds. Overrides the period or frequency set in the constructor.

Set the timer frequency, in Hz. Overrides the period or frequency set in the constructor.

Return the integer associated with the maximum duty period.

Set the auto-reload register value. Used for adjusting frequency.

Set the prescaler value. Used for adjusting frequency.

Reset the countdown; set the counter to 0.

Read the current counter value.

Allow selected information to be sent in master mode to slave timers for synchronization (TRGO).

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.