radar-bgt60 1.1.1
C++ library for the BGT60LTR11AIP - XENSIV™ 60 Ghz Radar from Infineon
 
Loading...
Searching...
No Matches
bgt60-pal-gpio.hpp
Go to the documentation of this file.
1
10#ifndef BGT60_PAL_GPIO_HPP_
11#define BGT60_PAL_GPIO_HPP_
12
13#include "bgt60-types.hpp"
14
15namespace bgt60
16{
17
23class GPIO
24{
25 public:
26
46 {
48 GPIO_HIGH = 1
49 };
57 {
60 };
68 virtual Error_t init () = 0;
69
75 virtual Error_t deinit () = 0;
76
83 virtual VLevel_t read () = 0;
84
92 virtual Error_t write (VLevel_t level) = 0;
93
102 virtual Error_t enable () = 0;
103
112 virtual Error_t disable () = 0;
113
121 virtual Error_t enableInt (void (*cback) (void), IntEvent_t mode) = 0;
122
129 virtual Error_t disableInt () = 0;
130
137 virtual IntEvent_t intEvent () = 0;
138};
139
140}
142#endif
Radar BGT60 Types.
Error_t
Definition bgt60-types.hpp:26
Definition bgt60-pal-gpio.hpp:24
VLogic_t
Definition bgt60-pal-gpio.hpp:57
virtual IntEvent_t intEvent()=0
Gets the latest interrupt event.
virtual Error_t enableInt(void(*cback)(void), IntEvent_t mode)=0
Enables the GPIO hardware interrupt.
virtual Error_t init()=0
Initializes the GPIO.
virtual Error_t disableInt()=0
Disables the GPIO hardware interrupt.
virtual Error_t deinit()=0
Deinitializes the GPIO.
virtual Error_t enable()=0
Enables the GPIO output according to the GPIO logic.
virtual VLevel_t read()=0
Reads the GPIO voltage level.
virtual Error_t disable()=0
Disables the GPIO output according to the GPIO logic.
VLevel_t
Definition bgt60-pal-gpio.hpp:46
IntEvent_t
Definition bgt60-pal-gpio.hpp:32
virtual Error_t write(VLevel_t level)=0
Writes the GPIO output voltage level.
@ POSITIVE
Definition bgt60-pal-gpio.hpp:59
@ NEGATIVE
Definition bgt60-pal-gpio.hpp:58
@ GPIO_LOW
Definition bgt60-pal-gpio.hpp:47
@ GPIO_HIGH
Definition bgt60-pal-gpio.hpp:48
@ INT_CHANGE
Definition bgt60-pal-gpio.hpp:37
@ INT_RISING_EDGE
Definition bgt60-pal-gpio.hpp:34
@ INT_HIGH
Definition bgt60-pal-gpio.hpp:35
@ INT_LOW
Definition bgt60-pal-gpio.hpp:36
@ INT_FALLING_EDGE
Definition bgt60-pal-gpio.hpp:33
Definition bgt60-types.hpp:14