21 #ifndef SELKIELoggerDW_Types
22 #define SELKIELoggerDW_Types
47 #define DW_CHAN_OK '-'
50 #define DW_CHAN_REPAIRED '='
53 #define DW_CHAN_BAD '!'
114 uint8_t frequencyBin[4];
struct dw_hva dw_hva
Internal representation of a Datawell HVA message.
dw_types
DW Data format types.
struct dw_bva dw_bva
Internal representation of a Datawell BVA message.
struct dw_hxv dw_hxv
Internal representation of a Datawell HXV message.
bool hexpair_to_uint(const char *in, uint8_t *out)
Convert a string of hexadecimal characters to corresponding value.
bool dw_string_hxv(const char *in, size_t *end, dw_hxv *out)
Read a line of HXV data from string and convert.
@ DW_TYPE_BVA
HXV format data.
@ DW_TYPE_HVA
HVA format data.
@ DW_TYPE_UNKNOWN
Default - type not known.
Internal representation of a Datawell BVA message.
uint8_t pack[3]
Packet data.
uint8_t rt[9]
Real time data.
Internal representation of a Datawell HVA message.
uint8_t pack[3]
Packet data.
uint8_t rt[9]
Real time data.
char rtStatus
Real time channel status information.
uint8_t seq
Sequence number, transmitted as two hex characters.
char packStatus
Packet data status information.
Internal representation of a Datawell HXV message.
uint8_t data[8]
8 bytes of data
uint8_t status
Error count. 0 or 1 OK, 2+ error.
uint8_t lines
Transmitted line number.
Internal representation of HXV spectral messages.
uint16_t sysword
12 bits of system data
uint8_t sysseq
System data sequence number.
Internal representation of HXV system messages.
float a_z_off
Vertical accelerometer offset.
int battStatus
Battery status.
float fzero
Zero crossing frequency.
float Hrms
RMS Wave height.
bool GPSfix
Valid GPS fix available.
float waterTemp
Water Temperature.
float orient
Buoy orientation.
float a_x_off
X-axis accelerometer offset.
float refTemp
Reference Temperature.
float PSD
Peak Power Spectral Density.
int number
Sequence number.
float incl
Buoy inclination.
float a_y_off
Y-axis accelerometer offset.
int opTime
Weeks of battery life remaining.