21 #ifndef SELKIELoggerN2K_Messages
22 #define SELKIELoggerN2K_Messages
41 #define N2K_TO_DEGREES 0.0057295779513082332
86 uint8_t *sys, uint8_t *ind,
bool *cfg);
108 double *lon,
double *alt, uint8_t *type, uint8_t *method, uint8_t *integ, uint8_t *nsv,
109 double *hdop,
double *pdop,
double *geos, uint8_t *rs, uint8_t *rst, uint16_t *rsid,
bool n2k_127251_values(const n2k_act_message *n, uint8_t *seq, double *rate)
Extract values from PGN 127251: Rate of Turn.
void n2k_basic_print(const n2k_act_message *n)
Print basic PGN details to standard output.
void n2k_128267_print(const n2k_act_message *n)
Print PGN 128267 (Water depth) to standard output.
void n2k_129029_print(const n2k_act_message *n)
Print PGN 129029 (GNSS Position) to standard output.
void n2k_130311_print(const n2k_act_message *n)
Print PGN 130311 (Environmental data) to standard output.
void n2k_129026_print(const n2k_act_message *n)
Print PGN 129026 (Course and Speed) to standard output.
void n2k_129025_print(const n2k_act_message *n)
Print PGN 129025 (Device position) to standard output.
void n2k_130306_print(const n2k_act_message *n)
Print PGN 130306 (Wind speed and direction) to standard output.
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.
void n2k_60928_print(const n2k_act_message *n)
Print PGN 60928 (Address claim) to standard output.
bool n2k_129025_values(const n2k_act_message *n, double *lat, double *lon)
Extract values from PGN 129025: Device position.
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.
void n2k_127250_print(const n2k_act_message *n)
Print PGN 127250 (Vessel Heading) to standard output.
void n2k_header_print(const n2k_act_message *n, const char d)
Print common message elements.
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.
void n2k_127251_print(const n2k_act_message *n)
Print PGN 127251 (Rate of Turn) to standard output.
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.
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.
bool n2k_129033_values(const n2k_act_message *n, uint16_t *epochDays, double *seconds, int16_t *utcMins)
Extract values from PGN 129033: Date/Time.
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.
void n2k_127257_print(const n2k_act_message *n)
Print PGN 127257 (Device orientation) to standard output.
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.
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.
void n2k_129033_print(const n2k_act_message *n)
Print PGN 129033 (Date and Time) to standard output.
uint16_t n2k_get_uint16(const n2k_act_message *n, size_t offset)
Extract unsigned 16-bit integer from N2K Message.
int16_t n2k_get_int16(const n2k_act_message *n, size_t offset)
Extract signed 16-bit integer from N2K Message.
double n2k_get_double(const n2k_act_message *n, size_t offset, uint8_t size)
Extract double from underlying integer data.
double n2k_get_udouble(const n2k_act_message *n, size_t offset, uint8_t size)
Extract double from underlying unsigned integer data.
int8_t n2k_get_int8(const n2k_act_message *n, size_t offset)
Extract signed byte from N2K Message.
uint32_t n2k_get_uint32(const n2k_act_message *n, size_t offset)
Extract unsigned 32-bit integer from N2K Message.
uint64_t n2k_get_uint64(const n2k_act_message *n, size_t offset)
Extract unsigned 64-bit integer from N2K Message.
int64_t n2k_get_int64(const n2k_act_message *n, size_t offset)
Extract signed 64-bit integer from N2K Message.
int32_t n2k_get_int32(const n2k_act_message *n, size_t offset)
Extract signed 32-bit integer from N2K Message.
uint8_t n2k_get_uint8(const n2k_act_message *n, size_t offset)
Extract unsigned byte from N2K Message.