PAS CO2 Sensor  1.0.3
C++ library for Infineon Photoacoustic Spectroscopy (PAS) XENSIV™ CO2 miniaturized sensor
pas-co2-pal-timer.hpp
Go to the documentation of this file.
1 
10 #ifndef PAS_CO2_PAL_TIMER_HPP_
11 #define PAS_CO2_PAL_TIMER_HPP_
12 
13 #include <stdint.h>
14 #include "pas-co2-types.hpp"
15 
16 namespace pasco2
17 {
18 
24 class Timer
25 {
26  public:
27 
34  virtual Error_t init () = 0;
35 
42  virtual Error_t deinit () = 0;
43 
50  virtual Error_t start () = 0;
51 
59  virtual Error_t elapsed (uint32_t & elapsed) = 0;
60 
68  virtual Error_t elapsedMicro (uint32_t & elapsed) = 0;
69 
76  virtual Error_t stop () = 0;
77 
85  virtual Error_t delay (const uint32_t timeout) = 0;
86 };
87 
90 }
91 
92 #endif
virtual Error_t init()=0
Initialiazes the timer.
Definition: pas-co2-i2c.hpp:21
Error_t
Definition: pas-co2-types.hpp:24
virtual Error_t start()=0
Starts the timer.
virtual Error_t deinit()=0
Deinitialiazes the timer.
virtual Error_t stop()=0
Stops the timer.
Definition: pas-co2-pal-timer.hpp:24
PAS CO2 Types.
virtual Error_t elapsedMicro(uint32_t &elapsed)=0
Elapsed time since the timer was started in microseconds.
virtual Error_t elapsed(uint32_t &elapsed)=0
Elapsed time since the timer was started in milliseconds.
virtual Error_t delay(const uint32_t timeout)=0
Introduces a delay during the specified time.