PiImageStreamer
Loading...
Searching...
No Matches
PWMGPIOPin.h
Go to the documentation of this file.
1
26#ifndef PWMGPIOPIN_H_
27#define PWMGPIOPIN_H_
28
29#include "PulsedGPIOPin.h"
30
31namespace SWE4211RPi {
32
37class PWMGPIOPin : public PulsedGPIOPin {
38public:
45 PWMGPIOPin(int number, std::string threadName, uint32_t period);
46
50 virtual ~PWMGPIOPin();
51
56 void setDutyCycle(int dc);
57
58private:
63};
64}
65#endif /* PWMGPIOPIN_H_ */
66
67
68
69
A continuously pulsed GPIO pin whose pulse width is set as a duty cycle.
Definition PWMGPIOPin.h:37
virtual ~PWMGPIOPin()
Definition PWMGPIOPin.cpp:45
void setDutyCycle(int dc)
Definition PWMGPIOPin.cpp:53
int dutyCycle
Definition PWMGPIOPin.h:62
A periodic task that generates timed pulses on a GPIO output pin.
Definition PulsedGPIOPin.h:41