Treehopper C++ API
Pwm Class Referenceabstract

#include <Pwm.h>

Inheritance diagram for Pwm:
HardwarePwm

Public Member Functions

virtual ~Pwm ()
 
virtual double dutyCycle ()
 Gets the duty cycle. More...
 
virtual void dutyCycle (double value)
 Sets the duty cycle. More...
 
virtual bool enabled ()=0
 
virtual void enabled (bool value)=0
 
virtual double pulseWidth ()
 Gets the pulse width. More...
 
virtual void pulseWidth (double value)
 Sets the pulse width. More...
 

Constructor & Destructor Documentation

◆ ~Pwm()

virtual ~Pwm ( )
inlinevirtual

Member Function Documentation

◆ dutyCycle() [1/2]

virtual double dutyCycle ( )
inlinevirtual

◆ dutyCycle() [2/2]

virtual void dutyCycle ( double  value)
inlinevirtual

◆ enabled() [1/2]

virtual bool enabled ( )
pure virtual

Implemented in HardwarePwm.

◆ enabled() [2/2]

virtual void enabled ( bool  value)
pure virtual

Implemented in HardwarePwm.

◆ pulseWidth() [1/2]

virtual double pulseWidth ( )
inlinevirtual

◆ pulseWidth() [2/2]

virtual void pulseWidth ( double  value)
inlinevirtual

The documentation for this class was generated from the following file: