84 : timer(timer), channel(channel)
139 if (onTime == 0 || offTime == 0)
virtual void generateUpdate() final
Re-initializes the timer counter and generate an update of the registers (the prescaler is cleared to...
virtual void setPrescaler(uint16_t prescalerValue) final
Updated the prescaler value.
virtual void enableOnePulseMode() final
This driver does not provide a square wave signal but instead is a simple utility that provides long ...
void off()
Turns off the buzzer.
void on()
Turns on the buzzer.
Buzzer(TIM_TypeDef *timer, TimerUtils::Channel channel)
void continuouslyToggle(uint16_t onTime, uint16_t offTime)
Turns on and off the buzzer indefinitely with the given timings.
void oneTimeToggle(uint16_t ms)
Turns on the buzzer for the specified amount of time.
void enableCaptureCompareOutput(TimerUtils::Channel channel)
void setCaptureCompareRegister(TimerUtils::Channel channel, T value)
void setOutputCompareMode(TimerUtils::Channel channel, TimerUtils::OutputCompareMode modeChannel)
void setCaptureComparePolarity(TimerUtils::Channel channel, TimerUtils::OutputComparePolarity polarity)
void reset() override
Resets the timer configuration to the default state.
void setAutoReloadRegister(T autoReloadValue)
@ PWM_MODE_1
Output is active as long as the counter is smaller than the compare register (reverse when downcounti...
@ FORCE_ACTIVE
Output is forced high.
@ PWM_MODE_2
Output is active as long as the counter is greater than the compare register (reverse when downcounti...
uint16_t computePrescalerValue(TIM_TypeDef *timer, int targetFrequency)
Compute the prescaler value for the specified target frequency.
This file includes all the types the logdecoder script will decode.