Hall Switch  2.1.0
C++ library of Infineon single Hall-effect switch family for magnetic sensing applications
hall-pal-gpio.hpp
Go to the documentation of this file.
1 
10 #ifndef HALL_PAL_GPIO_HPP_
11 #define HALL_PAL_GPIO_HPP_
12 
13 #include "../corelib/hall-switch.hpp"
14 
21 {
22  public:
23 
29  {
32  };
39  enum VLevel_t
40  {
41  GPIO_LOW = 0,
42  GPIO_HIGH = 1
43  };
50  enum VLogic_t
51  {
52  NEGATIVE = 1,
53  POSITIVE = 2,
54  };
63  virtual HallSwitch::Error_t init () = 0;
64 
71  virtual HallSwitch::Error_t deinit () = 0;
72 
80  virtual HallSwitch::Error_t enableInt (HallSwitch *ptr) = 0;
81 
88  virtual HallSwitch::Error_t disableInt () = 0;
89 
96  virtual IntEvent_t intEvent () = 0;
97 
104  virtual VLevel_t read () = 0;
105 
113  virtual HallSwitch::Error_t write (VLevel_t level) = 0;
114 
123  virtual HallSwitch::Error_t enable () = 0;
124 
133  virtual HallSwitch::Error_t disable () = 0;
134 };
135 
138 #endif
virtual HallSwitch::Error_t write(VLevel_t level)=0
Writes the GPIO output voltage level.
Definition: hall-pal-gpio.hpp:53
Definition: hall-pal-gpio.hpp:42
Error_t
Definition: hall-switch.hpp:30
Definition: hall-pal-gpio.hpp:52
virtual HallSwitch::Error_t enableInt(HallSwitch *ptr)=0
Enables the hardware interrupt.
virtual IntEvent_t intEvent()=0
Gets the latest interrupt event.
Definition: hall-pal-gpio.hpp:30
virtual HallSwitch::Error_t deinit()=0
Deinitializes the GPIO.
virtual HallSwitch::Error_t enable()=0
Enables the GPIO output according to the GPIO logic.
VLevel_t
Definition: hall-pal-gpio.hpp:39
Definition: hall-pal-gpio.hpp:41
virtual HallSwitch::Error_t disable()=0
Disables the GPIO output according to the GPIO logic.
virtual HallSwitch::Error_t disableInt()=0
Disables the hardware interrupt.
Definition: hall-switch.hpp:22
VLogic_t
Definition: hall-pal-gpio.hpp:50
virtual HallSwitch::Error_t init()=0
Initializes the GPIO.
virtual VLevel_t read()=0
Reads the GPIO voltage level.
IntEvent_t
Definition: hall-pal-gpio.hpp:28
Definition: hall-pal-gpio.hpp:31
Definition: hall-pal-gpio.hpp:20