nidas v1.2.3
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.
 
typedef unsigned int dsm_sample_length_t
 length of data portion of sample.
 
typedef struct dsm_sample dsm_sample_t
 

Macro Definition Documentation

◆ MSECS_PER_DAY

#define MSECS_PER_DAY   86400000

◆ MSECS_PER_SEC

#define MSECS_PER_SEC   1000

◆ NSECS_PER_MSEC

#define NSECS_PER_MSEC   1000000

◆ NSECS_PER_SEC

#define NSECS_PER_SEC   1000000000

◆ NSECS_PER_TMSEC

#define NSECS_PER_TMSEC   100000

◆ NSECS_PER_USEC

#define NSECS_PER_USEC   1000

◆ SECS_PER_DAY

#define SECS_PER_DAY   86400

◆ SIZEOF_DSM_SAMPLE_HEADER

#define SIZEOF_DSM_SAMPLE_HEADER    (sizeof(dsm_sample_time_t) + sizeof(dsm_sample_length_t))

◆ TMSECS_PER_DAY

#define TMSECS_PER_DAY   864000000

◆ TMSECS_PER_MSEC

#define TMSECS_PER_MSEC   10

◆ TMSECS_PER_SEC

#define TMSECS_PER_SEC   10000

◆ USECS_PER_MSEC

#define USECS_PER_MSEC   1000

Referenced by SampleCounter::accumulateSample(), nidas::dynld::raf::DSMArincSensor::buildIODevice(), nidas::dynld::raf::DSMMesaSensor::buildIODevice(), nidas::dynld::raf::A2DBoardTempSensor::buildSampleScanner(), nidas::dynld::raf::DSMAnalogSensor::buildSampleScanner(), configA2D(), configBoard(), nidas::dynld::isff::CSAT3_Sonic::dataMode(), 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(), main(), nidas::dynld::DSC_FreqCounter::open(), nidas::dynld::isff::CSAT3_Sonic::open(), nidas::dynld::ModbusRTU::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::DSMArincSensor::process(), nidas::dynld::isff::CU_Coldwire::process(), nidas::dynld::raf::BCPD_Serial::process(), nidas::dynld::raf::SPP100_Serial::process(), nidas::dynld::raf::SPP200_Serial::process(), nidas::dynld::raf::SPP300_Serial::process(), nidas::dynld::raf::DSMArincSensor::processAlta(), nidas::dynld::raf::SyncRecordSource::receive(), nidas::dynld::raf::CVIOutput::receive(), Receiver::Receiver(), TestSource::run(), nidas::core::Looper::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().

◆ USECS_PER_SEC

#define USECS_PER_SEC   1000000

◆ USECS_PER_TMSEC

#define USECS_PER_TMSEC   100

Typedef Documentation

◆ dsm_sample_length_t

typedef unsigned int dsm_sample_length_t

length of data portion of sample.

◆ dsm_sample_t

typedef struct dsm_sample dsm_sample_t

◆ dsm_sample_time_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.