Doly C++ SDK v1.00
Loading...
Searching...
No Matches
EdgeControl.h File Reference

Public API for Doly edge/gap detection control (IR sensors). More...

#include <vector>
#include <cstdint>
#include "EdgeEvent.h"

Go to the source code of this file.

Namespaces

namespace  EdgeControl

Functions

int8_t EdgeControl::init ()
 Initialize edge sensor control.
int8_t EdgeControl::dispose ()
 Dispose edge sensor control and release resources.
bool EdgeControl::isActive ()
 Check whether edge sensor control is initialized and active.
int8_t EdgeControl::enableControl ()
 Start the sensor listening thread.
int8_t EdgeControl::disableControl ()
 Stop the sensor listening thread.
std::vector< IrSensorEdgeControl::getSensors ()
 Get all IR sensor values.
std::vector< IrSensorEdgeControl::getSensors (GpioState state)
 Get IR sensors filtered by GPIO state.
float EdgeControl::getVersion ()
 Get current library version.

Detailed Description

Public API for Doly edge/gap detection control (IR sensors).

EdgeControl provides access to IR edge sensors and gap detection. Typical update rate noted in the original header: ~21 Hz.

Design notes:

  • Singleton-style control (namespace API; no instances)
  • Works only after successful init()
  • Events are delivered via EdgeEvent / EdgeEventListener

Threading notes:

  • Events are reported asynchronously (often from a worker thread)