10#ifndef SEMF_OUTPUT_PWM_H_
11#define SEMF_OUTPUT_PWM_H_
42 virtual void set(
unsigned int value,
bool inverted =
false) = 0;
47 virtual unsigned int value()
const = 0;
Class to interface pwm's hardware module of the microcontroller.
virtual unsigned int value() const =0
Returns the current PWM value.
virtual void set(unsigned int value, bool inverted=false)=0
Set a PWM value. Duty cycle is value / maxValue.
virtual bool isEnabled() const =0
Returns the current status of PWM module.
virtual void setMaxValue(unsigned int maxValue)=0
Set the maximum possible PWM value.
virtual unsigned int maxValue() const =0
Returns the maximum possible PWM value.
Signal for lightweight signal/slot implementation. One signal can be connected to multiple slots and ...