xvsdk
3.2.0
|
A class to handle callbacks of events. More...
#include <xv-sdk.h>
Public Types | |
using | Data = Event const & |
Public Member Functions | |
virtual bool | start ()=0 |
start streaming. | |
virtual bool | stop ()=0 |
stop streaming. | |
virtual int | registerCallback (std::function< void(Event const &)>)=0 |
Register callback to receive data. | |
virtual bool | unregisterCallback (int callbackId)=0 |
Unregister callback. | |
A class to handle callbacks of events.
DataStructure Data structure of PSensor status data:
Header:
Bytes index: 0
Bytes length: 2
Const value: 0x01, 0xbd
Sensor type:
Bytes index: 2
Bytes length: 1
Const value: 0xdf
PSensor Data:
Bytes index: 60
Bytes length: 2
value: 0x02, 0x00-far away from psensor, 0x02, 0x01-near psensor.