Struct stm32_hal2::timer::BasicTimer [−][src]
pub struct BasicTimer<R> {
pub regs: R,
// some fields omitted
}
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.
Check if the timer is enabled.
Set the timer period, in seconds. Overrides the period or frequency set
in the constructor. If you use center
aligned PWM, make sure to
enter twice the freq you normally would.
Set the timer frequency, in Hz. Overrides the period or frequency set
in the constructor. If you use center
aligned PWM, make sure to
enter twice the freq you normally would.
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.
Allow selected information to be sent in master mode to slave timers for synchronization (TRGO).