DUNE: Uniform Navigational Environment  2.6.1
DUNE::Hardware::PPS Class Reference

Public Member Functions

 PPS (const std::string &dev)
 
 ~PPS (void)
 
int64_t fetch (double timeout=1.0)
 

Constructor & Destructor Documentation

DUNE::Hardware::PPS::PPS ( const std::string &  dev)

Constructor.

Parameters
devPPS device.

References DUNE::Utils::String::str().

DUNE::Hardware::PPS::~PPS ( void  )

Destructor.

Member Function Documentation

int64_t DUNE::Hardware::PPS::fetch ( double  timeout = 1.0)

Retrieve the timestamp of the last pulse.

Parameters
timeouttime in seconds to wait for pulse to occur.
Returns
timestamp of last pulse in nanoseconds since the UNIX Epoch. In case of timeout a negative number is returned.
Collaboration diagram for DUNE::Hardware::PPS:
Collaboration graph