radar-bgt60 1.1.1
C++ library for the BGT60LTR11AIP - XENSIV™ 60 Ghz Radar from Infineon
 
Loading...
Searching...
No Matches
bgt60.hpp
Go to the documentation of this file.
1
10#ifndef BGT60_HPP_
11#define BGT60_HPP_
12
13#include "bgt60-conf.hpp"
14#include "bgt60-pal-gpio.hpp"
15#include <stdint.h>
16
17using namespace bgt60;
18
24class Bgt60
25{
26 public:
27
32 {
34 MOTION = 2
35 };
36
41 {
42 NO_DIR = 0,
44 DEPARTING = 2
45 };
46
47 Bgt60(GPIO *tDet, GPIO *pDet);
48 ~Bgt60();
49 Error_t init();
51 Error_t getMotion(Motion_t &motion);
53 Error_t enableInterrupt(void (*cback) (void));
55
56 private:
57
58 GPIO * tDet;
59 GPIO * pDet;
60};
61
64#endif
Radar BGT60 Library Configuration.
Radar BGT60 GPIO Platform Abstraction Layer.
Error_t getMotion(Motion_t &motion)
Read out target-detect-pin.
Definition bgt60.cpp:115
Error_t disableInterrupt(void)
Disables the hardware interrupt.
Definition bgt60.cpp:240
Motion_t
States of motion.
Definition bgt60.hpp:32
@ NO_MOTION
Definition bgt60.hpp:33
@ MOTION
Definition bgt60.hpp:34
Error_t getDirection(Direction_t &direction)
Read out phase-detect-pin.
Definition bgt60.cpp:160
Error_t deinit()
De-Initialize the Bgt60 class object.
Definition bgt60.cpp:73
Error_t enableInterrupt(void(*cback)(void))
Enables the hardware interrupt.
Definition bgt60.cpp:205
Direction_t
States of direction.
Definition bgt60.hpp:41
@ APPROACHING
Definition bgt60.hpp:43
@ DEPARTING
Definition bgt60.hpp:44
@ NO_DIR
Definition bgt60.hpp:42
Error_t init()
Initialize the Bgt60 class object.
Definition bgt60.cpp:45
~Bgt60()
Radar Bgt60 destructor.
Definition bgt60.cpp:33
Definition bgt60.hpp:25
Error_t
Definition bgt60-types.hpp:26
Definition bgt60-pal-gpio.hpp:24
Definition bgt60-types.hpp:14