PAS CO2 Sensor  1.0.3
C++ library for Infineon Photoacoustic Spectroscopy (PAS) XENSIV™ CO2 miniaturized sensor
pas-co2-pal-pwm.hpp
Go to the documentation of this file.
1 
10 #ifndef PAS_CO2_PAL_PWM_HPP_
11 #define PAS_CO2_PAL_PWM_HPP_
12 
13 #include "pas-co2-types.hpp"
14 #undef PWM
15 namespace pasco2
16 {
17 
23 class PWM
24 {
25  public:
26 
33  virtual Error_t init () = 0;
34 
41  virtual Error_t deinit () = 0;
42 
62  virtual Error_t getDuty (double & duty) = 0;
63 
64 };
65 
68 }
69 
70 #endif
Definition: pas-co2-pal-pwm.hpp:23
Definition: pas-co2-i2c.hpp:21
Error_t
Definition: pas-co2-types.hpp:24
virtual Error_t deinit()=0
Deinitializes the PWM.
virtual Error_t init()=0
Initializes the PWM.
PAS CO2 Types.
virtual Error_t getDuty(double &duty)=0
Gets the PWM input duty cycle in percentage.