nidas  v1.2-1520
Classes | Macros | Typedefs
types.h File Reference
#include <sys/types.h>
#include <stdint.h>

Go to the source code of this file.

Classes

struct  dsm_sample
 

Macros

#define SIZEOF_DSM_SAMPLE_HEADER   (sizeof(dsm_sample_time_t) + sizeof(dsm_sample_length_t))
 
#define NSECS_PER_SEC   1000000000
 
#define NSECS_PER_MSEC   1000000
 
#define NSECS_PER_TMSEC   100000
 
#define NSECS_PER_USEC   1000
 
#define USECS_PER_MSEC   1000
 
#define USECS_PER_TMSEC   100
 
#define TMSECS_PER_MSEC   10
 
#define USECS_PER_SEC   1000000
 
#define MSECS_PER_SEC   1000
 
#define TMSECS_PER_SEC   10000
 
#define MSECS_PER_DAY   86400000
 
#define TMSECS_PER_DAY   864000000
 
#define SECS_PER_DAY   86400
 

Typedefs

typedef int dsm_sample_time_t
 Depending on the module, either tenths of milliseconds, or milliseconds since 00:00 UTC today. More...
 
typedef unsigned int dsm_sample_length_t
 length of data portion of sample. More...
 
typedef struct dsm_sample dsm_sample_t
 

Macro Definition Documentation

#define MSECS_PER_DAY   86400000
#define MSECS_PER_SEC   1000
#define NSECS_PER_MSEC   1000000
#define NSECS_PER_SEC   1000000000
#define NSECS_PER_TMSEC   100000
#define NSECS_PER_USEC   1000
#define SECS_PER_DAY   86400
#define SIZEOF_DSM_SAMPLE_HEADER   (sizeof(dsm_sample_time_t) + sizeof(dsm_sample_length_t))
#define TMSECS_PER_DAY   864000000
#define TMSECS_PER_MSEC   10
#define TMSECS_PER_SEC   10000
#define USECS_PER_MSEC   1000

Referenced by SampleCounter::accumulateSample(), nidas::dynld::raf::DSMMesaSensor::buildIODevice(), nidas::dynld::raf::DSMArincSensor::buildIODevice(), nidas::dynld::raf::A2DBoardTempSensor::buildSampleScanner(), nidas::dynld::raf::DSMAnalogSensor::buildSampleScanner(), nidas::dynld::isff::SE_GOESXmtr::checkClock(), configA2D(), configBoard(), nidas::dynld::isff::CSAT3_Sonic::dataMode(), nidas::dynld::isff::SE_GOESXmtr::decodeClock(), nidas::dynld::raf::DSMAnalogSensor::getInt32TimeTagUsecs(), nidas::dynld::raf::DSMArincSensor::getInt32TimeTagUsecs(), nidas::dynld::ParoSci_202BG_T::getPeriodUsec(), nidas::core::SensorHandler::getSensorStatsInterval(), getTimeUsec(), nidas::core::SensorHandler::handlePollingChange(), irigTousec(), nidas::dynld::isff::MOSMote::MOS_TimeSyncer::looperNotify(), nidas::dynld::DSC_FreqCounter::open(), nidas::dynld::isff::CSAT3_Sonic::open(), nidas::dynld::GPS_NMEA_Serial::parseGGA(), nidas::dynld::isff::CSI_IRGA_Sonic::parseParameters(), nidas::dynld::GPS_NMEA_Serial::parseRMC(), DataStats::printReport(), nidas::dynld::raf::SPP300_Serial::process(), nidas::dynld::raf::SPP200_Serial::process(), nidas::dynld::raf::SPP100_Serial::process(), nidas::dynld::raf::BCPD_Serial::process(), nidas::dynld::isff::CU_Coldwire::process(), nidas::dynld::raf::DSMArincSensor::process(), nidas::dynld::raf::DSMArincSensor::processAlta(), nidas::dynld::raf::CVIOutput::receive(), nidas::dynld::psql::PSQLSampleOutput::receive(), nidas::dynld::isff::GOESOutput::receive(), nidas::dynld::raf::SyncRecordSource::receive(), Receiver::Receiver(), nidas::core::Looper::run(), TestSource::run(), nidas::dynld::isff::GOESOutput::run(), nidas::core::SampleSorter::run(), Receiver::scanBuffer(), Sender::send(), Sender::Sender(), nidas::core::SensorHandler::setSensorStatsInterval(), nidas::util::sleepUntil(), startBoard(), nidas::dynld::StatisticsCruncher::StatisticsCruncher(), and nidas::dynld::isff::WisardMote::unpack10thSec().

#define USECS_PER_SEC   1000000
#define USECS_PER_TMSEC   100

Typedef Documentation

typedef unsigned int dsm_sample_length_t

length of data portion of sample.

typedef struct dsm_sample dsm_sample_t
typedef int dsm_sample_time_t

Depending on the module, either tenths of milliseconds, or milliseconds since 00:00 UTC today.

The user-side code that interprets the samples must know the time units.