radar-bgt60 1.1.1
C++ library for the BGT60LTR11AIP - XENSIV™ 60 Ghz Radar from Infineon
 
Loading...
Searching...
No Matches
bgt60-pal-gpio-rpi.hpp
Go to the documentation of this file.
1
9#ifndef BGT60_PAL_GPIO_RPI_HPP_
10#define BGT60_PAL_GPIO_RPI_HPP_
11
12#include "bgt60-pal-gpio.hpp"
13#include <wiringPi.h>
14#include <stdint.h>
15using namespace bgt60;
16
22class GPIORpi : virtual public GPIO
23{
24 private:
25 #define UNUSED_PIN 0xFF
26 uint8_t pin;
27 uint8_t mode;
28 VLogic_t logic;
30 public:
31
32 GPIORpi ();
33 GPIORpi (uint8_t pin, uint8_t mode, VLogic_t logic);
34 ~GPIORpi ();
35 Error_t init ();
36 Error_t deinit ();
37 VLevel_t read ();
38 Error_t write (VLevel_t level);
39 Error_t enable ();
41 Error_t enableInt (void (*cback) (void), IntEvent_t mode);
44
45};
46
49#endif
Radar BGT60 GPIO Platform Abstraction Layer.
Error_t
Definition bgt60-types.hpp:26
Definition bgt60-pal-gpio.hpp:24
VLogic_t
Definition bgt60-pal-gpio.hpp:57
VLevel_t
Definition bgt60-pal-gpio.hpp:46
IntEvent_t
Definition bgt60-pal-gpio.hpp:32
Error_t disable()
Disable the GPIO.
Definition bgt60-pal-gpio-rpi.cpp:205
Error_t deinit()
Deinitializes the Raspberry Pi GPIO.
Definition bgt60-pal-gpio-rpi.cpp:71
Error_t enable()
Enable the GPIO.
Definition bgt60-pal-gpio-rpi.cpp:184
Error_t write(VLevel_t level)
Writes the Raspberry Pi GPIO output voltage level.
Definition bgt60-pal-gpio-rpi.cpp:170
Error_t enableInt(void(*cback)(void), IntEvent_t mode)
Enables the Raspberry Pi GPIO interrupt.
Definition bgt60-pal-gpio-rpi.cpp:86
Error_t init()
Initializes the Raspberry Pi GPIO.
Definition bgt60-pal-gpio-rpi.cpp:54
IntEvent_t intEvent()
Gets the latest Raspberry Pi interrupt event.
Definition bgt60-pal-gpio-rpi.cpp:133
VLevel_t read()
Reads the Raspberry Pi GPIO voltage level.
Definition bgt60-pal-gpio-rpi.cpp:158
GPIORpi()
GPIO Rpi constructor.
Definition bgt60-pal-gpio-rpi.cpp:15
Error_t disableInt()
Disable Raspberry Pi GPIO interrupt.
Definition bgt60-pal-gpio-rpi.cpp:120
~GPIORpi()
GPIO Rpi destructor.
Definition bgt60-pal-gpio-rpi.cpp:42
Definition bgt60-pal-gpio-rpi.hpp:23
Definition bgt60-types.hpp:14