All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines
Classes | Static Public Member Functions | Static Protected Member Functions
GeopsyCore::SyscomHeader Class Reference

Brief description of class still missing. More...

#include <SyscomHeader.h>

Inheritance diagram for GeopsyCore::SyscomHeader:
GeopsyCore::SyscomSVmrxHeader GeopsyCore::SyscomXmrHeader

List of all members.

Classes

struct  Lsb
struct  Time

Static Public Member Functions

static Signal::Components component (int channel)

Static Protected Member Functions

static int bcd2int (uchar bcd)
static double countPerVolt (const Lsb &l)
static QDateTime startTime (const Time &t)

Detailed Description

Brief description of class still missing.

Full description of class still missing


Member Function Documentation

int GeopsyCore::SyscomHeader::bcd2int ( uchar  bcd) [static, protected]

References TRACE.

Referenced by startTime().

{
  TRACE;
  return ((bcd & 0xF0) >> 1) * 5 + (bcd & 0x0F);
}

References GeopsyCore::Signal::East, GeopsyCore::Signal::North, and GeopsyCore::Signal::Vertical.

{
  switch(channel) {
  case 0: return Signal::East;
  case 1: return Signal::North;
  default: return Signal::Vertical;
  }
}
double GeopsyCore::SyscomHeader::countPerVolt ( const Lsb l) [static, protected]
QDateTime GeopsyCore::SyscomHeader::startTime ( const Time t) [static, protected]

References bcd2int(), GeopsyCore::SyscomHeader::Time::DAY, GeopsyCore::SyscomHeader::Time::HOUR, GeopsyCore::SyscomHeader::Time::MINUTE, GeopsyCore::SyscomHeader::Time::MONTH, GeopsyCore::SyscomHeader::Time::SECOND, TRACE, and GeopsyCore::SyscomHeader::Time::YEAR.

Referenced by GeopsyCore::SyscomSVmrxHeader::startTime(), and GeopsyCore::SyscomXmrHeader::startTime().

{
  TRACE;
  int currentCentury=QDateTime::currentDateTime().date().year()/100 * 100;
  return QDateTime(QDate( currentCentury + bcd2int(t.YEAR), bcd2int(t.MONTH), bcd2int(t.DAY)),
                    QTime(bcd2int(t.HOUR), bcd2int(t.MINUTE), bcd2int(t.SECOND)) );
}

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines