M1M3 Support System
Loading...
Searching...
No Matches
Functions | Variables
LSST::M1M3::SS::Timestamp Namespace Reference

Utility functions for time manipulations. More...

Functions

double fromRaw (uint64_t raw)
 Converts raw (nanoseconds) timestamp into seconds.
 
uint64_t toRaw (double timestamp)
 Converts seconds into raw value (nanoseconds).
 
double fromFPGA (uint64_t timestamp)
 Converts FPGA (nanoseconds) timestamp into seconds.
 
uint64_t toFPGA (double timestamp)
 Converts seconds into FPGA value (nanoseconds).
 

Variables

const uint64_t NSINSEC = 1000000000
 

Detailed Description

Utility functions for time manipulations.

Function Documentation

◆ fromFPGA()

double LSST::M1M3::SS::Timestamp::fromFPGA ( uint64_t timestamp)
inline

Converts FPGA (nanoseconds) timestamp into seconds.

Parameters
rawFPGA value (nanoseconds)
Returns
seconds
Here is the caller graph for this function:

◆ fromRaw()

double LSST::M1M3::SS::Timestamp::fromRaw ( uint64_t raw)
inline

Converts raw (nanoseconds) timestamp into seconds.

Parameters
rawraw value (nanoseconds)
Returns
seconds

◆ toFPGA()

uint64_t LSST::M1M3::SS::Timestamp::toFPGA ( double timestamp)
inline

Converts seconds into FPGA value (nanoseconds).

Parameters
timestampvalue (seconds)
Returns
FPGA value (nanoseconds)

◆ toRaw()

uint64_t LSST::M1M3::SS::Timestamp::toRaw ( double timestamp)
inline

Converts seconds into raw value (nanoseconds).

Parameters
timestampvalue (seconds)
Returns
raw value (nanoseconds)
Here is the caller graph for this function: