Main MRPT website > C++ reference for MRPT 1.9.9
List of all members | Public Types | Public Member Functions | Protected Member Functions | Protected Attributes
rp::hal::Event Class Reference

Detailed Description

Definition at line 39 of file event.h.

#include <rplidar/src/hal/event.h>

Public Types

enum  { EVENT_OK = 1, EVENT_TIMEOUT = 2, EVENT_FAILED = 0 }
 

Public Member Functions

 Event (bool isAutoReset=true, bool isSignal=false)
 
 ~Event ()
 
void set (bool isSignal=true)
 
unsigned long wait (unsigned long timeout=0xFFFFFFFF)
 

Protected Member Functions

void release ()
 

Protected Attributes

HANDLE _event
 

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
EVENT_OK 
EVENT_TIMEOUT 
EVENT_FAILED 

Definition at line 42 of file event.h.

Constructor & Destructor Documentation

◆ Event()

rp::hal::Event::Event ( bool  isAutoReset = true,
bool  isSignal = false 
)
inline

Definition at line 49 of file event.h.

References _event, FALSE, and TRUE.

◆ ~Event()

rp::hal::Event::~Event ( )
inline

Definition at line 66 of file event.h.

References release().

Here is the call graph for this function:

Member Function Documentation

◆ release()

void rp::hal::Event::release ( )
inlineprotected

Definition at line 167 of file event.h.

References _event.

Referenced by ~Event().

Here is the caller graph for this function:

◆ set()

void rp::hal::Event::set ( bool  isSignal = true)
inline

Definition at line 67 of file event.h.

References _event.

Referenced by rp::standalone::rplidar::RPlidarDriverSerialImpl::_cacheCapsuledScanData(), and rp::standalone::rplidar::RPlidarDriverSerialImpl::_cacheScanData().

Here is the caller graph for this function:

◆ wait()

unsigned long rp::hal::Event::wait ( unsigned long  timeout = 0xFFFFFFFF)
inline

Definition at line 96 of file event.h.

References _event, EVENT_FAILED, EVENT_OK, EVENT_TIMEOUT, and mrpt::system::now().

Referenced by rp::standalone::rplidar::RPlidarDriverSerialImpl::grabScanData().

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ _event

HANDLE rp::hal::Event::_event
protected

Definition at line 178 of file event.h.

Referenced by Event(), release(), set(), and wait().




Page generated by Doxygen 1.8.14 for MRPT 1.9.9 Git: ae4571287 Thu Nov 23 00:06:53 2017 +0100 at dom oct 27 23:51:55 CET 2019