fesa::TsCounter Class Reference

#include <TimeStampCounter.h>

List of all members.

Public Member Functions

 TsCounter (bool inHardware=true)
void calibrateCountPeriod (uint32_t inDelay=50, uint32_t inTimes=10)
uint64_t getCount (void) const
double getCount (double unit) const
double getValue (double unit) const
double getDelay (double unit)
void reset (void)
double getTimeOfDay (double unit)

Static Public Member Functions

static double getCountPeriod (void)
static void setCountPeriod (double period)

Protected Attributes

bool mHardware
uint64_t mValueCount
uint64_t mDelayCount

Static Protected Attributes

static double mPeriod = 0

Detailed Description

Definition at line 46 of file TimeStampCounter.h.


Constructor & Destructor Documentation

fesa::TsCounter::TsCounter ( bool  inHardware = true  )  [inline]

Definition at line 50 of file TimeStampCounter.h.

References calibrateCountPeriod(), mPeriod, and mValueCount.


Member Function Documentation

void fesa::TsCounter::calibrateCountPeriod ( uint32_t  inDelay = 50,
uint32_t  inTimes = 10 
)

Definition at line 39 of file TimeStampCounter.cpp.

References getCount(), mHardware, and mPeriod.

Referenced by TsCounter().

double fesa::TsCounter::getCount ( double  unit  )  const [inline]

Definition at line 70 of file TimeStampCounter.h.

References getCount(), and mPeriod.

uint64_t fesa::TsCounter::getCount ( void   )  const

Definition at line 82 of file TimeStampCounter.cpp.

References mHardware.

Referenced by calibrateCountPeriod(), getCount(), getDelay(), getValue(), and reset().

static double fesa::TsCounter::getCountPeriod ( void   )  [inline, static]

Definition at line 60 of file TimeStampCounter.h.

References mPeriod.

double fesa::TsCounter::getDelay ( double  unit  )  [inline]

Definition at line 78 of file TimeStampCounter.h.

References getCount(), mDelayCount, and mPeriod.

double fesa::TsCounter::getTimeOfDay ( double  unit  )  [inline]

Definition at line 90 of file TimeStampCounter.h.

References YS_UNIT.

Referenced by fesa::RTDiagnosticSetting::RTDiagnosticSetting().

double fesa::TsCounter::getValue ( double  unit  )  const [inline]

Definition at line 74 of file TimeStampCounter.h.

References getCount(), mPeriod, and mValueCount.

void fesa::TsCounter::reset ( void   )  [inline]

Definition at line 85 of file TimeStampCounter.h.

References getCount(), mDelayCount, and mValueCount.

static void fesa::TsCounter::setCountPeriod ( double  period  )  [inline, static]

Definition at line 64 of file TimeStampCounter.h.

References mPeriod.

Referenced by fesa::RTDiagnosticSetting::execute().


Member Data Documentation

uint64_t fesa::TsCounter::mDelayCount [protected]

Definition at line 100 of file TimeStampCounter.h.

Referenced by getDelay(), and reset().

bool fesa::TsCounter::mHardware [protected]

Definition at line 98 of file TimeStampCounter.h.

Referenced by calibrateCountPeriod(), and getCount().

double fesa::TsCounter::mPeriod = 0 [static, protected]
uint64_t fesa::TsCounter::mValueCount [protected]

Definition at line 99 of file TimeStampCounter.h.

Referenced by getValue(), reset(), and TsCounter().


The documentation for this class was generated from the following files:

Generated on 18 Jan 2013 for Fesa by  doxygen 1.6.1