SELKIELogger  1.0.0
PGN Specific helper functions
Collaboration diagram for PGN Specific helper functions:

Functions

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

Function Documentation

◆ n2k_127250_print()

void n2k_127250_print ( const n2k_act_message n)

Print PGN 127250 (Vessel Heading) to standard output.

Parameters
[in]nInput message

Definition at line 572 of file N2KMessages.c.

◆ n2k_127250_values()

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.

Parameters
[in]nInput message
[out]seqSequence number
[out]hdgDevice heading, in degrees
[out]devHeading deviation?, in degrees
[out]varHeading variation, in degrees
[out]refTrue (0) or Magnetic (1) heading
Returns
True on success, false on error

Definition at line 212 of file N2KMessages.c.

◆ n2k_127251_print()

void n2k_127251_print ( const n2k_act_message n)

Print PGN 127251 (Rate of Turn) to standard output.

Parameters
[in]nInput message

Definition at line 604 of file N2KMessages.c.

◆ n2k_127251_values()

bool n2k_127251_values ( const n2k_act_message n,
uint8_t *  seq,
double *  rate 
)

Extract values from PGN 127251: Rate of Turn.

Parameters
[in]nInput message
[out]seqSequence number
[out]rateRate of turn (units TBC)
Returns
True on success, false on error

Definition at line 243 of file N2KMessages.c.

◆ n2k_127257_print()

void n2k_127257_print ( const n2k_act_message n)

Print PGN 127257 (Device orientation) to standard output.

Parameters
[in]nInput message

Definition at line 618 of file N2KMessages.c.

◆ n2k_127257_values()

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.

Parameters
[in]nInput message
[out]seqSequence number
[out]yawDevice yaw, in degrees
[out]pitchDevice pitch, in degrees
[out]rollDevice roll, in degrees
Returns
True on success, false on error

Definition at line 264 of file N2KMessages.c.

◆ n2k_128267_print()

void n2k_128267_print ( const n2k_act_message n)

Print PGN 128267 (Water depth) to standard output.

Parameters
[in]nInput message

Definition at line 635 of file N2KMessages.c.

◆ n2k_128267_values()

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.

Parameters
[in]nInput message
[out]seqSequence number
[out]depthDepth below sensor
[out]offsetDistance from sensor to reference surface
[out]rangeMeasurement range
Returns
True on success, false on error

Definition at line 291 of file N2KMessages.c.

◆ n2k_129025_print()

void n2k_129025_print ( const n2k_act_message n)

Print PGN 129025 (Device position) to standard output.

Parameters
[in]nInput message

Definition at line 652 of file N2KMessages.c.

◆ n2k_129025_values()

bool n2k_129025_values ( const n2k_act_message n,
double *  lat,
double *  lon 
)

Extract values from PGN 129025: Device position.

Parameters
[in]nInput message
[out]latGPS Latitude
[out]lonGPS Longitude
Returns
True on success, false on error

Definition at line 320 of file N2KMessages.c.

◆ n2k_129026_print()

void n2k_129026_print ( const n2k_act_message n)

Print PGN 129026 (Course and Speed) to standard output.

Parameters
[in]nInput message

Definition at line 667 of file N2KMessages.c.

◆ n2k_129026_values()

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.

Parameters
[in]nInput message
[out]seqSequence number
[out]magOrientation reference flag (2 bits)
[out]courseDevice course, in degrees
[out]speedDevice speed in m/s
Returns
True on success, false on error

Definition at line 342 of file N2KMessages.c.

◆ n2k_129029_print()

void n2k_129029_print ( const n2k_act_message n)

Print PGN 129029 (GNSS Position) to standard output.

Parameters
[in]nInput message

Definition at line 697 of file N2KMessages.c.

◆ n2k_129029_values()

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.

Parameters
[in]nInput message
[out]seqSequence number
[out]epochDaysDays since January 1st 1970
[out]secondsSeconds since local midnight
[out]latLatitude
[out]lonLongitude
[out]altAltitude
[out]typeGNSS System in use
[out]methodGNSS Position fix type
[out]integData integrity check type
[out]nsvNumber of SVs (Satellites) used in solution
[out]hdopHorizontal Dilution of Precision
[out]pdopProbably Dilution of Precision
[out]geosGeoid Separation
[out]rsNumber of Reference Stations used
[out]rstReference station type
[out]rsidReference station ID
[out]dgnssaDGNSS data age
Returns
True on success, false on error

Definition at line 380 of file N2KMessages.c.

◆ n2k_129033_print()

void n2k_129033_print ( const n2k_act_message n)

Print PGN 129033 (Date and Time) to standard output.

Parameters
[in]nInput message

Definition at line 737 of file N2KMessages.c.

◆ n2k_129033_values()

bool n2k_129033_values ( const n2k_act_message n,
uint16_t *  epochDays,
double *  seconds,
int16_t *  utcMins 
)

Extract values from PGN 129033: Date/Time.

Parameters
[in]nInput message
[out]epochDaysDays since January 1st 1970
[out]secondsSeconds since local midnight
[out]utcMinsOffset from UTC in minutes
Returns
True on success, false on error

Definition at line 448 of file N2KMessages.c.

◆ n2k_130306_print()

void n2k_130306_print ( const n2k_act_message n)

Print PGN 130306 (Wind speed and direction) to standard output.

Parameters
[in]nInput message

Definition at line 759 of file N2KMessages.c.

◆ n2k_130306_values()

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.

Parameters
[in]nInput message
[out]seqSequence number
[out]refReference frame flag (3 bits)
[out]speedWind speed in m/s
[out]angleWind direction, in degrees
Returns
True on success, false on error

Definition at line 470 of file N2KMessages.c.

◆ n2k_130311_print()

void n2k_130311_print ( const n2k_act_message n)

Print PGN 130311 (Environmental data) to standard output.

Parameters
[in]nInput message

Definition at line 795 of file N2KMessages.c.

◆ n2k_130311_values()

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.

Parameters
[in]nInput message
[out]seqSequence number
[out]tidTemperature source
[out]hidHumidity Source
[out]tempTemperature
[out]humidHumidity
[out]pressAtmospheric Pressure
Returns
True on success, false on error

Definition at line 501 of file N2KMessages.c.

◆ n2k_60928_values()

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.

Parameters
[in]nInput message
[out]idISO Identity
[out]mfrManufacturer code
[out]instDevice Instance
[out]fnDevice Function
[out]classDevice Class
[out]sysSystem/Class Instance
[out]indIndustry
[out]cfg"Self-Configurable"
Returns
True on success, false on error

Definition at line 187 of file N2KMessages.c.

◆ n2k_basic_print()

void n2k_basic_print ( const n2k_act_message n)

Print basic PGN details to standard output.

Parameters
[in]nInput message

Definition at line 563 of file N2KMessages.c.

◆ n2k_header_print()

void n2k_header_print ( const n2k_act_message n,
const char  d 
)

Print common message elements.

Parameters
[in]nInput message
[in]dDelimiter - appended to output.

Definition at line 549 of file N2KMessages.c.