SELKIELogger  1.0.0
N2KMessages.h File Reference
#include "SELKIELoggerBase.h"
#include <stdbool.h>
#include <stdint.h>
#include "N2KTypes.h"
Include dependency graph for N2KMessages.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define N2K_TO_DEGREES   0.0057295779513082332
 Convert raw angular value to degrees.
 

Functions

int8_t n2k_get_int8 (const n2k_act_message *n, size_t offset)
 Extract signed byte from N2K Message. More...
 
uint8_t n2k_get_uint8 (const n2k_act_message *n, size_t offset)
 Extract unsigned byte from N2K Message. More...
 
int16_t n2k_get_int16 (const n2k_act_message *n, size_t offset)
 Extract signed 16-bit integer from N2K Message. More...
 
uint16_t n2k_get_uint16 (const n2k_act_message *n, size_t offset)
 Extract unsigned 16-bit integer from N2K Message. More...
 
int32_t n2k_get_int32 (const n2k_act_message *n, size_t offset)
 Extract signed 32-bit integer from N2K Message. More...
 
uint32_t n2k_get_uint32 (const n2k_act_message *n, size_t offset)
 Extract unsigned 32-bit integer from N2K Message. More...
 
int64_t n2k_get_int64 (const n2k_act_message *n, size_t offset)
 Extract signed 64-bit integer from N2K Message. More...
 
uint64_t n2k_get_uint64 (const n2k_act_message *n, size_t offset)
 Extract unsigned 64-bit integer from N2K Message. More...
 
double n2k_get_double (const n2k_act_message *n, size_t offset, uint8_t size)
 Extract double from underlying integer data. More...
 
double n2k_get_udouble (const n2k_act_message *n, size_t offset, uint8_t size)
 Extract double from underlying unsigned integer data. More...
 
bool n2k_60928_values (const n2k_act_message *n, uint32_t *id, uint16_t *mfr, uint8_t *inst, uint8_t *fn, uint8_t *class, uint8_t *sys, uint8_t *ind, bool *cfg)
 Extract values from PGN 60928: ISO Adddress Claim. More...
 
bool n2k_127250_values (const n2k_act_message *n, uint8_t *seq, double *hdg, double *dev, double *var, uint8_t *ref)
 Extract values from PGN 127250: Vessel Heading. More...
 
bool n2k_127251_values (const n2k_act_message *n, uint8_t *seq, double *rate)
 Extract values from PGN 127251: Rate of Turn. More...
 
bool n2k_127257_values (const n2k_act_message *n, uint8_t *seq, double *yaw, double *pitch, double *roll)
 Extract values from PGN 127257: Device orientation. More...
 
bool n2k_128267_values (const n2k_act_message *n, uint8_t *seq, double *depth, double *offset, double *range)
 Extract values from PGN 128267: Water depth. More...
 
bool n2k_129025_values (const n2k_act_message *n, double *lat, double *lon)
 Extract values from PGN 129025: Device position. More...
 
bool n2k_129026_values (const n2k_act_message *n, uint8_t *seq, uint8_t *mag, double *course, double *speed)
 Extract values from PGN 129026: Course and speed. More...
 
bool n2k_129029_values (const n2k_act_message *n, uint8_t *seq, uint16_t *epochDays, double *seconds, double *lat, double *lon, double *alt, uint8_t *type, uint8_t *method, uint8_t *integ, uint8_t *nsv, double *hdop, double *pdop, double *geos, uint8_t *rs, uint8_t *rst, uint16_t *rsid, double *dgnssa)
 Extract values from PGN 129029: GNSS Position. More...
 
bool n2k_129033_values (const n2k_act_message *n, uint16_t *epochDays, double *seconds, int16_t *utcMins)
 Extract values from PGN 129033: Date/Time. More...
 
bool n2k_130306_values (const n2k_act_message *n, uint8_t *seq, uint8_t *ref, double *speed, double *angle)
 Extract values from PGN 130306: Wind speed and direction. More...
 
bool n2k_130311_values (const n2k_act_message *n, uint8_t *seq, uint8_t *tid, uint8_t *hid, double *temp, double *humid, double *press)
 Extract values from PGN 130311: Environmental data. More...
 
void n2k_header_print (const n2k_act_message *n, const char d)
 Print common message elements. More...
 
void n2k_basic_print (const n2k_act_message *n)
 Print basic PGN details to standard output. More...
 
void n2k_60928_print (const n2k_act_message *n)
 Print PGN 60928 (Address claim) to standard output.
 
void n2k_127250_print (const n2k_act_message *n)
 Print PGN 127250 (Vessel Heading) to standard output. More...
 
void n2k_127251_print (const n2k_act_message *n)
 Print PGN 127251 (Rate of Turn) to standard output. More...
 
void n2k_127257_print (const n2k_act_message *n)
 Print PGN 127257 (Device orientation) to standard output. More...
 
void n2k_128267_print (const n2k_act_message *n)
 Print PGN 128267 (Water depth) to standard output. More...
 
void n2k_129025_print (const n2k_act_message *n)
 Print PGN 129025 (Device position) to standard output. More...
 
void n2k_129026_print (const n2k_act_message *n)
 Print PGN 129026 (Course and Speed) to standard output. More...
 
void n2k_129029_print (const n2k_act_message *n)
 Print PGN 129029 (GNSS Position) to standard output. More...
 
void n2k_129033_print (const n2k_act_message *n)
 Print PGN 129033 (Date and Time) to standard output. More...
 
void n2k_130306_print (const n2k_act_message *n)
 Print PGN 130306 (Wind speed and direction) to standard output. More...
 
void n2k_130311_print (const n2k_act_message *n)
 Print PGN 130311 (Environmental data) to standard output. More...
 

Detailed Description

Message specific formats and decoders

Definition in file N2KMessages.h.