Hall Switch 2.1.0
C++ library of Infineon single Hall-effect switch family for magnetic sensing applications
 
Loading...
Searching...
No Matches
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
40 {
42 GPIO_HIGH = 1
43 };
51 {
54 };
63 virtual HallSwitch::Error_t init () = 0;
64
72
81
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
124
134};
135
138#endif
Definition hall-pal-gpio.hpp:21
virtual VLevel_t read()=0
Reads the GPIO voltage level.
VLevel_t
Definition hall-pal-gpio.hpp:40
@ GPIO_HIGH
Definition hall-pal-gpio.hpp:42
@ GPIO_LOW
Definition hall-pal-gpio.hpp:41
virtual HallSwitch::Error_t write(VLevel_t level)=0
Writes the GPIO output voltage level.
virtual HallSwitch::Error_t init()=0
Initializes the GPIO.
virtual HallSwitch::Error_t deinit()=0
Deinitializes the GPIO.
IntEvent_t
Definition hall-pal-gpio.hpp:29
@ INT_RISING_EDGE
Definition hall-pal-gpio.hpp:31
@ INT_FALLING_EDGE
Definition hall-pal-gpio.hpp:30
virtual HallSwitch::Error_t enable()=0
Enables the GPIO output according to the GPIO logic.
virtual IntEvent_t intEvent()=0
Gets the latest interrupt event.
virtual HallSwitch::Error_t disableInt()=0
Disables the hardware interrupt.
virtual HallSwitch::Error_t disable()=0
Disables the GPIO output according to the GPIO logic.
virtual HallSwitch::Error_t enableInt(HallSwitch *ptr)=0
Enables the hardware interrupt.
VLogic_t
Definition hall-pal-gpio.hpp:51
@ NEGATIVE
Definition hall-pal-gpio.hpp:52
@ POSITIVE
Definition hall-pal-gpio.hpp:53
Definition hall-switch.hpp:23
Error_t
Definition hall-switch.hpp:31