#include <pas-co2-pal-pwm-ino.hpp>
Public Member Functions | |
PWMIno (GPIOIno *const pwmIn, TimerIno *const timer, Mode_t mode) | |
PWM Ino constructor. More... | |
~PWMIno () | |
PWM Ino destructor. More... | |
Public Member Functions inherited from pasco2::PWMSW | |
PWMSW (GPIO *const pwmIn, Timer *const timer, Mode_t mode) | |
PAS CO2 Software PWM Constructor. More... | |
~PWMSW () | |
PAS CO2 Software PWM Destructor. More... | |
Error_t | init () |
Initializes the PWM. More... | |
Error_t | deinit () |
Deinitializes the PWM. More... | |
Error_t | getDuty (double &duty) |
Gets the PWM input duty cycle in percentage. More... | |
Additional Inherited Members | |
Public Types inherited from pasco2::PWMSW | |
enum | Mode_t { MODE_POLLING, MODE_INTERRUPT } |
Measuring Mode. More... | |
Protected Member Functions inherited from pasco2::PWMSW | |
void | callback () |
Static Protected Member Functions inherited from pasco2::PWMSW | |
static void | int0Handler () |
Interrupt 0 Handler. More... | |
static void | int1Handler () |
Interrupt 1 Handler. More... | |
static void | int2Handler () |
Interrupt 2 Handler. More... | |
static void | int3Handler () |
Interrupt 3 Handler. More... | |
static void * | isrRegister (PWMSW *objPtr) |
Register a hardware interrupt for the PWMSW object passed by argument. More... | |
PWM Ino constructor.
Implemented based on the PAS CO2 PWM software class
[in] | *pwmIn | PWM input instance |
[in] | *timer | Timer instance |
[in] | mode | PWM input mode. Hardware interrupt or polling mode |
PWMIno::~PWMIno | ( | ) |
PWM Ino destructor.