Struct stm32f4xx_hal::timer::Timer [−][src]
pub struct Timer<TIM> { /* fields omitted */ }
Expand description
Timer wrapper
Implementations
Configures this timer for PWM input. Accepts the best_guess
frequency of the signal
Note: this should be as close as possible to the frequency of the PWM waveform for best
accuracy.
This device will emit an interrupt on CC1, which occurs at two times in this mode:
- When a new cycle is started: the duty cycle will be
1.00
- When the period is captured. the duty cycle will be an observable value. See the pwm input example for an suitable interrupt handler.
Configures this timer for PWM input. Accepts the best_guess
frequency of the signal
Note: this should be as close as possible to the frequency of the PWM waveform for best
accuracy.
This device will emit an interrupt on CC1, which occurs at two times in this mode:
- When a new cycle is started: the duty cycle will be
1.00
- When the period is captured. the duty cycle will be an observable value. See the pwm input example for an suitable interrupt handler.
Configures this timer for PWM input. Accepts the best_guess
frequency of the signal
Note: this should be as close as possible to the frequency of the PWM waveform for best
accuracy.
This device will emit an interrupt on CC1, which occurs at two times in this mode:
- When a new cycle is started: the duty cycle will be
1.00
- When the period is captured. the duty cycle will be an observable value. See the pwm input example for an suitable interrupt handler.
Configures this timer for PWM input. Accepts the best_guess
frequency of the signal
Note: this should be as close as possible to the frequency of the PWM waveform for best
accuracy.
This device will emit an interrupt on CC1, which occurs at two times in this mode:
- When a new cycle is started: the duty cycle will be
1.00
- When the period is captured. the duty cycle will be an observable value. See the pwm input example for an suitable interrupt handler.
Configures this timer for PWM input. Accepts the best_guess
frequency of the signal
Note: this should be as close as possible to the frequency of the PWM waveform for best
accuracy.
This device will emit an interrupt on CC1, which occurs at two times in this mode:
- When a new cycle is started: the duty cycle will be
1.00
- When the period is captured. the duty cycle will be an observable value. See the pwm input example for an suitable interrupt handler.
Configures this timer for PWM input. Accepts the best_guess
frequency of the signal
Note: this should be as close as possible to the frequency of the PWM waveform for best
accuracy.
This device will emit an interrupt on CC1, which occurs at two times in this mode:
- When a new cycle is started: the duty cycle will be
1.00
- When the period is captured. the duty cycle will be an observable value. See the pwm input example for an suitable interrupt handler.
Configures this timer for PWM input. Accepts the best_guess
frequency of the signal
Note: this should be as close as possible to the frequency of the PWM waveform for best
accuracy.
This device will emit an interrupt on CC1, which occurs at two times in this mode:
- When a new cycle is started: the duty cycle will be
1.00
- When the period is captured. the duty cycle will be an observable value. See the pwm input example for an suitable interrupt handler.
Configures this timer for PWM input. Accepts the best_guess
frequency of the signal
Note: this should be as close as possible to the frequency of the PWM waveform for best
accuracy.
This device will emit an interrupt on CC1, which occurs at two times in this mode:
- When a new cycle is started: the duty cycle will be
1.00
- When the period is captured. the duty cycle will be an observable value. See the pwm input example for an suitable interrupt handler.
Creates Counter
with custom sampling
Creates Counter
with sampling of 1 MHz
Creates Counter
with sampling of 1 kHz
NOTE: don’t use this if your system frequency more than 65 MHz
Creates CountDownTimer
Starts timer in count down mode at a given frequency