
Data Structures | |
| class | Bgt60Ino |
Functions | |
| Bgt60Ino::Bgt60Ino (uint8_t targetDet, uint8_t phaseDet) | |
| Constructor of the Arduino Bgt60 object. | |
| Bgt60Ino::~Bgt60Ino () | |
| Destructor of the Arduino Bgt60 object. | |
| Error_t | Bgt60Ino::begin () |
| Begin the radar board. | |
| Error_t | Bgt60Ino::end () |
| Ends the radar board. | |
| class Bgt60Ino |


Public Types | |
| enum | Motion_t { NO_MOTION = 1 , MOTION = 2 } |
| States of motion. More... | |
| enum | Direction_t { NO_DIR = 0 , APPROACHING = 1 , DEPARTING = 2 } |
| States of direction. More... | |
Public Member Functions | |
| Bgt60Ino (uint8_t targetDet, uint8_t phaseDet) | |
| Constructor of the Arduino Bgt60 object. | |
| ~Bgt60Ino () | |
| Destructor of the Arduino Bgt60 object. | |
| Error_t | begin () |
| Begin the radar board. | |
| Error_t | end () |
| Ends the radar board. | |
| Error_t | init () |
| Initialize the Bgt60 class object. | |
| Error_t | deinit () |
| De-Initialize the Bgt60 class object. | |
| Error_t | getMotion (Motion_t &motion) |
| Read out target-detect-pin. | |
| Error_t | getDirection (Direction_t &direction) |
| Read out phase-detect-pin. | |
| Error_t | enableInterrupt (void(*cback)(void)) |
| Enables the hardware interrupt. | |
| Error_t | disableInterrupt (void) |
| Disables the hardware interrupt. | |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
Read out target-detect-pin.
This function reads out the target-detect-pin. Depending on the choosen mode of the board it is either actively polling the status of the pin or mapping an interrupt to the corresponding pin.
| [in,out] | motion | This variable stores the actual state of the target-detect-pin Possible Values:
|
| OK | if success |
| INTF_ERROR | if error |

|
inherited |
Read out phase-detect-pin.
This function reads out the phase-detect-pin. Depending on the choosen mode of the board it is either actively polling the status of the pin or mapping an interrupt to the corresponding pin.
| [in,out] | direction | This variable stores the actual state of the phase-detect-pin Possible Values:
|
| OK | if success |
| INTF_ERROR | if error |

Constructor of the Arduino Bgt60 object.
| [in] | targetDet | Pin number of the target detect pin |
| [in] | phaseDet | Pin number of the phase detect pin |
| [in] | pinMode | Desired mode of the board, polling or interrupt driven |
| Bgt60Ino::~Bgt60Ino | ( | ) |
Destructor of the Arduino Bgt60 object.
| Error_t Bgt60Ino::begin | ( | ) |
Begin the radar board.
| OK | if success |
| INTF_ERROR | if error |
