The implementation of IOutput.
More...
#include <PWMOutput.h>
|
| | PWMOutput (IHAL &hal, int pin) |
| | Configures a pin as a PWM output.
|
| float | getValue () override |
| | Returns the last value written to this output.
|
| void | setValue (float value) override |
| | Writes a value to this output.
|
| virtual | ~IOutput ()=default |
The implementation of IOutput.
◆ PWMOutput()
| PWMOutput::PWMOutput |
( |
IHAL & | hal, |
|
|
int | pin ) |
Configures a pin as a PWM output.
- Parameters
-
| hal | A reference to the hardware abstraction layer. |
| pin | The pin number. |
◆ getValue()
| float PWMOutput::getValue |
( |
| ) |
|
|
overridevirtual |
Returns the last value written to this output.
Implements IOutput.
◆ setValue()
| void PWMOutput::setValue |
( |
float | value | ) |
|
|
overridevirtual |
Writes a value to this output.
- Parameters
-
| value | The floating-point value to set. Must be in the range [0, 1]. |
Implements IOutput.
◆ m_hal
◆ m_pin
◆ m_value
The documentation for this class was generated from the following files: