SELKIELogger  1.0.0
LoggerDW.h File Reference
#include <errno.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include "SELKIELoggerBase.h"
Include dependency graph for LoggerDW.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  dw_params
 Configuration is as per simple network sources. More...
 

Macros

#define DWCHAN_NAME   SLCHAN_NAME
 Source name.
 
#define DWCHAN_MAP   SLCHAN_MAP
 Channel map.
 
#define DWCHAN_TSTAMP   SLCHAN_TSTAMP
 Timestamps.
 
#define DWCHAN_RAW   SLCHAN_RAW
 Raw data (recorded unmodified)
 
#define DWCHAN_SIG   4
 Reported signal strength.
 
#define DWCHAN_DN   5
 Displacement (North)
 
#define DWCHAN_DW   6
 Displacement (West)
 
#define DWCHAN_DV   7
 Displacement (Vertical)
 
#define DWCHAN_LAT   8
 Latitude (Decimal degrees)
 
#define DWCHAN_LON   9
 Longitude (Decimal degrees)
 
#define DWCHAN_ORIENT   10
 Device orientation.
 
#define DWCHAN_INCLIN   11
 Device inclination.
 
#define DWCHAN_GPSFIX   12
 GPS quality.
 
#define DWCHAN_HRMS   13
 RMS Wave Height.
 
#define DWCHAN_TREF   14
 Reference Temperature.
 
#define DWCHAN_TWTR   15
 Water Temperature.
 
#define DWCHAN_WEEKS   16
 Estimated weeks of battery remaining.
 
#define DWCHAN_SPF   17
 Spectral data: Frequency.
 
#define DWCHAN_SPD   18
 Spectral data: Direction.
 
#define DWCHAN_SPS   19
 Spectral data: Spread.
 
#define DWCHAN_SPM   20
 Spectral data: M2 coefficient.
 
#define DWCHAN_SPN   21
 Spectral data: N2 coefficient.
 
#define DWCHAN_SPR   22
 Spectral data: Relative PSD.
 
#define DWCHAN_SPK   23
 Spectral data: K factor.
 

Functions

void * dw_setup (void *ptargs)
 Datawell thread setup. More...
 
void * dw_logging (void *ptargs)
 Datawell source main logging loop. More...
 
void * dw_shutdown (void *ptargs)
 Datawell source shutdown. More...
 
bool dw_net_connect (void *ptargs)
 DW Network connection helper. More...
 
void * dw_channels (void *ptargs)
 Channel map. More...
 
void dw_push_message (log_thread_args_t *args, uint8_t sNum, uint8_t cNum, float data)
 Create and push messages to queue. More...
 
device_callbacks dw_getCallbacks (void)
 Fill out device callback functions for logging. More...
 
dw_params dw_getParams (void)
 Fill out default MP source parameters. More...
 
bool dw_parseConfig (log_thread_args_t *lta, config_section *s)
 Take a configuration section and parse parameters. More...