PAS CO2 Sensor  1.0.3
C++ library for Infineon Photoacoustic Spectroscopy (PAS) XENSIV™ CO2 miniaturized sensor
PWMIno Class Reference

#include <pas-co2-pal-pwm-ino.hpp>

Inheritance diagram for PWMIno:
Collaboration diagram for PWMIno:

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...
 

Constructor & Destructor Documentation

◆ PWMIno()

PWMIno::PWMIno ( GPIOIno *const  pwmIn,
TimerIno *const  timer,
Mode_t  mode 
)

PWM Ino constructor.

Implemented based on the PAS CO2 PWM software class

Parameters
[in]*pwmInPWM input instance
[in]*timerTimer instance
[in]modePWM input mode. Hardware interrupt or polling mode
Precondition
None

◆ ~PWMIno()

PWMIno::~PWMIno ( )

PWM Ino destructor.


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