Doly C++ SDK v1.00
Loading...
Searching...
No Matches
EdgeControl.h
Go to the documentation of this file.
1#pragma once
2#include <vector>
3#include <cstdint>
4#include "EdgeEvent.h"
5
23
24namespace EdgeControl
25{
35 int8_t init();
36
45 int8_t dispose();
46
52 bool isActive();
53
64 int8_t enableControl();
65
75
81 std::vector<IrSensor> getSensors();
82
92 std::vector<IrSensor> getSensors(GpioState state);
93
101 float getVersion();
102
103} // namespace EdgeControl
Event registration functions for EdgeControl.
GpioState
Represents the digital logic level of a GPIO pin.
Definition GpioPin.h:47
Definition EdgeControl.h:25
float getVersion()
Get current library version.
int8_t init()
Initialize edge sensor control.
int8_t enableControl()
Start the sensor listening thread.
int8_t disableControl()
Stop the sensor listening thread.
bool isActive()
Check whether edge sensor control is initialized and active.
int8_t dispose()
Dispose edge sensor control and release resources.
std::vector< IrSensor > getSensors()
Get all IR sensor values.