#include <PWM.h>
Public Member Functions | |
| PWM (uint32_t pwmChipNo, uint32_t pwmPinNo, bool shouldPrint) | |
| virtual | ~PWM () |
| bool | setup (uint64_t nSecPeriod, uint64_t nSecDutyCycle) |
| bool | destroy () |
| bool | start () |
| bool | stop () |
| bool | updateDutyCycle (uint64_t nSecDutyCycle) |
| bool | changeDutyCycle (uint32_t percent) |
| uint32_t | getDutyCyclePercent () |
| uint64_t | getDutyCycleInNSec () |
| apra::PWM::PWM | ( | uint32_t | pwmChipNo, |
| uint32_t | pwmPinNo, | ||
| bool | shouldPrint | ||
| ) |
Definition at line 32 of file PWM.cpp.
References apra::Utils::directoryExists().
| bool apra::PWM::changeDutyCycle | ( | uint32_t | percent | ) |
Definition at line 167 of file PWM.cpp.
References PWM_DUTYCYCLE.
| bool apra::PWM::destroy | ( | ) |
| bool apra::PWM::setup | ( | uint64_t | nSecPeriod, |
| uint64_t | nSecDutyCycle | ||
| ) |
Definition at line 51 of file PWM.cpp.
References PWM_DUTYCYCLE, PWM_PERIOD, and stop().
| bool apra::PWM::start | ( | ) |
Definition at line 138 of file PWM.cpp.
References PWM_ENABLE.
| bool apra::PWM::stop | ( | ) |
Definition at line 149 of file PWM.cpp.
References PWM_ENABLE.
| bool apra::PWM::updateDutyCycle | ( | uint64_t | nSecDutyCycle | ) |
Definition at line 160 of file PWM.cpp.
References PWM_DUTYCYCLE.