PAS CO2 Sensor  1.0.3
C++ library for Infineon Photoacoustic Spectroscopy (PAS) XENSIV™ CO2 miniaturized sensor
pas-co2-pal-gpio-ino.hpp
Go to the documentation of this file.
1 
10 #ifndef PAS_CO2_PAL_GPIO_INO_HPP_
11 #define PAS_CO2_PAL_GPIO_INO_HPP_
12 
13 #include <stdint.h>
14 #include "pas-co2-pal-gpio.hpp"
15 
16 using namespace pasco2;
17 
23 class GPIOIno : virtual public pasco2::GPIO
24 {
25  private:
26  uint8_t pin;
27  uint8_t mode;
28  VLogic_t logic;
30  public:
31 
32  static const uint8_t unusedPin = 0xFFU;
34  GPIOIno (uint8_t pin,
35  uint8_t mode,
36  VLogic_t logic);
37  ~GPIOIno ();
38  Error_t init ();
39  Error_t deinit ();
40  Error_t enableInt (void (*cback) (void *));
41  Error_t disableInt ();
42  IntEvent_t intEvent ();
43  VLevel_t read ();
44  Error_t write (VLevel_t level);
45  Error_t enable ();
46  Error_t disable ();
47 };
48 
51 #endif
Definition: pas-co2-i2c.hpp:21
Error_t
Definition: pas-co2-types.hpp:24
IntEvent_t
Definition: pas-co2-pal-gpio.hpp:33
VLevel_t
Definition: pas-co2-pal-gpio.hpp:44
Definition: pas-co2-pal-gpio-ino.hpp:23
Definition: pas-co2-pal-gpio.hpp:25
PAS CO2 GPIO Platform Abstraction Layer.