NMEA2000 Library  0.1
Library to handle NMEA 2000 Communication written in C++
N2kMessages.h File Reference

This File contains all SetXXX functions which will be needed to transfer data with a specific PGN. More...

#include "N2kMsg.h"
#include "N2kTypes.h"
#include <string.h>
#include <stdint.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.

Classes

struct  tN2kAISAtoNReportData
 Dedicated structure to handle AIS Aids to Navigation (AtoN) Report. More...
 
struct  tN2kMeteorlogicalStationData
 Dedicated structure to handle Data of a meterological station. More...
 
struct  tSatelliteInfo
 Dedicated structure to handle GNSS satellite information. More...
 

Typedefs

typedef uint64_t tN2kBinaryStatus
 64bit Binary Status value of a full bank status, that can handle up to 28 item states in one value. More...
 

Functions

double AhToCoulomb (double v)
 Converting a value from AmpereHours to Coulomb. More...
 
bool AppendN2kPGN129285 (tN2kMsg &N2kMsg, uint16_t WPID, const char *WPName, double Latitude, double Longitude)
 Append another Waypoint to PGN 129285 "Route/WP information". More...
 
bool AppendN2kPGN129540 (tN2kMsg &N2kMsg, const tSatelliteInfo &SatelliteInfo)
 Append a new satellite info to PGN 129540 Message "GNSS Satellites in View". More...
 
bool AppendN2kPGN130074 (tN2kMsg &N2kMsg, uint16_t ID, char *Name, double Latitude, double Longitude)
 Append a Waypoint to PGN 130074 Message " Route and WP Service - WP List - WP Name & Position". More...
 
bool AppendN2kRouteWPInfo (tN2kMsg &N2kMsg, uint16_t WPID, const char *WPName, double Latitude, double Longitude)
 Append another Waypoint to "Route/WP information"- PGN 129285. More...
 
bool AppendN2kWaypointList (tN2kMsg &N2kMsg, uint16_t ID, char *Name, double Latitude, double Longitude)
 Append a Waypoint to Message "Route and WP Service - WP List - WP Name & Position" - PGN 130074. More...
 
bool AppendSatelliteInfo (tN2kMsg &N2kMsg, const tSatelliteInfo &SatelliteInfo)
 Append a new satellite info to Message "GNSS Satellites in View" - PGN 129540. More...
 
double CoulombToAh (double v)
 Converting a value from Coulomb to AmpereHours. More...
 
double CToKelvin (double v)
 Converting a value from Celsius to Kelvin. More...
 
double DegToRad (double v)
 Converting a value from Deg to Rad. More...
 
double FToKelvin (double v)
 Converting a value from Fahrenheit to Kelvin. More...
 
double hPAToPascal (double v)
 Converting a value from HectoPascal to Pascal. More...
 
double hToSeconds (double v)
 Converting a value from Hours to Seconds. More...
 
double KelvinToC (double v)
 Converting a value from Kelvin to Celsius. More...
 
double KelvinToF (double v)
 Converting a value from Kelvin to Fahrenheit. More...
 
double KnotsToms (double v)
 Converting a value from Knots to MeterPerSecond. More...
 
double mBarToPascal (double v)
 Converting a value from Millibar to Pascal. More...
 
double msToKnots (double v)
 Converting a value from MeterPerSecond to Knots. More...
 
tN2kOnOff N2kGetStatusOnBinaryStatus (tN2kBinaryStatus BankStatus, uint8_t ItemIndex=1)
 Get single status to full binary bank status. More...
 
void N2kResetBinaryStatus (tN2kBinaryStatus &BankStatus)
 Reset all single binary status values to not available. More...
 
void N2kSetStatusBinaryOnStatus (tN2kBinaryStatus &BankStatus, tN2kOnOff ItemStatus, uint8_t ItemIndex=1)
 Set single status to full binary bank status. More...
 
bool ParseN2kAISAtoNReport (const tN2kMsg &N2kMsg, tN2kAISAtoNReportData &N2kData)
 Parsing the content of a "AIS Aids to Navigation (AtoN) Report" message - PGN 129041. More...
 
bool ParseN2kAISClassAPosition (const tN2kMsg &N2kMsg, uint8_t &MessageID, tN2kAISRepeat &Repeat, uint32_t &UserID, double &Latitude, double &Longitude, bool &Accuracy, bool &RAIM, uint8_t &Seconds, double &COG, double &SOG, double &Heading, double &ROT, tN2kAISNavStatus &NavStatus)
 Parsing the content of a "AIS position reports for Class A" message - PGN 129038. More...
 
bool ParseN2kAISClassAStatic (const tN2kMsg &N2kMsg, uint8_t &MessageID, tN2kAISRepeat &Repeat, uint32_t &UserID, uint32_t &IMOnumber, char *Callsign, size_t CallsignBufSize, char *Name, size_t NameBufSize, uint8_t &VesselType, double &Length, double &Beam, double &PosRefStbd, double &PosRefBow, uint16_t &ETAdate, double &ETAtime, double &Draught, char *Destination, size_t DestinationBufSize, tN2kAISVersion &AISversion, tN2kGNSStype &GNSStype, tN2kAISDTE &DTE, tN2kAISTransceiverInformation &AISinfo)
 Parsing the content of a "AIS static data class A" message - PGN 129794. More...
 
bool ParseN2kAISClassBPosition (const tN2kMsg &N2kMsg, uint8_t &MessageID, tN2kAISRepeat &Repeat, uint32_t &UserID, double &Latitude, double &Longitude, bool &Accuracy, bool &RAIM, uint8_t &Seconds, double &COG, double &SOG, double &Heading, tN2kAISUnit &Unit, bool &Display, bool &DSC, bool &Band, bool &Msg22, tN2kAISMode &Mode, bool &State)
 Parsing the content of a "AIS position reports for Class B" message - PGN 129039. More...
 
bool ParseN2kAISClassBPosition (const tN2kMsg &N2kMsg, uint8_t &MessageID, tN2kAISRepeat &Repeat, uint32_t &UserID, double &Latitude, double &Longitude, bool &Accuracy, bool &RAIM, uint8_t &Seconds, double &COG, double &SOG, tN2kAISTransceiverInformation &AISTransceiverInformation, double &Heading, tN2kAISUnit &Unit, bool &Display, bool &DSC, bool &Band, bool &Msg22, tN2kAISMode &Mode, bool &State)
 Parsing the content of a "AIS position reports for Class B" message - PGN 129039. More...
 
bool ParseN2kAISClassBStaticPartA (const tN2kMsg &N2kMsg, uint8_t &MessageID, tN2kAISRepeat &Repeat, uint32_t &UserID, char *Name, size_t NameBufSize)
 Parsing the content of a "AIS static data class B part A" message - PGN 129809. More...
 
bool ParseN2kAISClassBStaticPartB (const tN2kMsg &N2kMsg, uint8_t &MessageID, tN2kAISRepeat &Repeat, uint32_t &UserID, uint8_t &VesselType, char *Vendor, size_t VendorBufSize, char *Callsign, size_t CallsignBufSize, double &Length, double &Beam, double &PosRefStbd, double &PosRefBow, uint32_t &MothershipID)
 Parsing the content of a "AIS static data class B part B" message - PGN 129810. More...
 
bool ParseN2kAISSafetyRelatedBroadcastMsg (const tN2kMsg &N2kMsg, uint8_t &MessageID, tN2kAISRepeat &Repeat, uint32_t &SourceID, tN2kAISTransceiverInformation &AISTransceiverInformation, char *SafetyRelatedText, size_t &SafetyRelatedTextMaxSize)
 Parsing the content of a "AIS Safety Related Broadcast Message" message - PGN 129802. More...
 
bool ParseN2kAttitude (const tN2kMsg &N2kMsg, unsigned char &SID, double &Yaw, double &Pitch, double &Roll)
 Parsing the content of a "Attitude" message - PGN 127257. More...
 
bool ParseN2kBatConf (const tN2kMsg &N2kMsg, unsigned char &BatInstance, tN2kBatType &BatType, tN2kBatEqSupport &SupportsEqual, tN2kBatNomVolt &BatNominalVoltage, tN2kBatChem &BatChemistry, double &BatCapacity, int8_t &BatTemperatureCoefficient, double &PeukertExponent, int8_t &ChargeEfficiencyFactor)
 Parsing the content of a "Battery Configuration Status" message - PGN 127513. More...
 
bool ParseN2kBinaryStatus (const tN2kMsg &N2kMsg, unsigned char &DeviceBankInstance, tN2kBinaryStatus &BankStatus)
 Parsing the content of a "Universal Binary Status Report" message - PGN 127501. More...
 
bool ParseN2kBinaryStatus (const tN2kMsg &N2kMsg, unsigned char &DeviceBankInstance, tN2kOnOff &Status1, tN2kOnOff &Status2, tN2kOnOff &Status3, tN2kOnOff &Status4)
 Parsing the content of a "Universal Binary Status Report" message - PGN 127501. More...
 
bool ParseN2kBoatSpeed (const tN2kMsg &N2kMsg, unsigned char &SID, double &WaterReferenced, double &GroundReferenced, tN2kSpeedWaterReferenceType &SWRT)
 Parsing the content of a "Boat Speed, Water Referenced" message - PGN 128259. More...
 
bool ParseN2kChargerStatus (const tN2kMsg &N2kMsg, unsigned char &Instance, unsigned char &BatteryInstance, tN2kChargeState &ChargeState, tN2kChargerMode &ChargerMode, tN2kOnOff &Enabled, tN2kOnOff &EqualizationPending, double &EqualizationTimeRemaining)
 Parsing the content of a "DC Charger Status" message - PGN 127507. More...
 
bool ParseN2kCOGSOGRapid (const tN2kMsg &N2kMsg, unsigned char &SID, tN2kHeadingReference &ref, double &COG, double &SOG)
 Parsing the content of a "COG SOG Rapid Update" message - PGN 129026. More...
 
bool ParseN2kDCBatStatus (const tN2kMsg &N2kMsg, unsigned char &BatteryInstance, double &BatteryVoltage, double &BatteryCurrent, double &BatteryTemperature, unsigned char &SID)
 Parsing the content of a "Battery Status" message - PGN 127508. More...
 
bool ParseN2kDCStatus (const tN2kMsg &N2kMsg, unsigned char &SID, unsigned char &DCInstance, tN2kDCType &DCType, unsigned char &StateOfCharge, unsigned char &StateOfHealth, double &TimeRemaining, double &RippleVoltage, double &Capacity)
 Parsing the content of a "DC Detailed Status" message - PGN 127506. More...
 
bool ParseN2kDirectionData (const tN2kMsg &N2kMsg, tN2kDataMode &DataMode, tN2kHeadingReference &CogReference, unsigned char &SID, double &COG, double &SOG, double &Heading, double &SpeedThroughWater, double &Set, double &Drift)
 Parsing the content of a "Direction Data" message - PGN 130577. More...
 
bool ParseN2kDistanceLog (const tN2kMsg &N2kMsg, uint16_t &DaysSince1970, double &SecondsSinceMidnight, uint32_t &Log, uint32_t &TripLog)
 Parsing the content of a "Distance log" message - PGN 128275. More...
 
bool ParseN2kEngineDynamicParam (const tN2kMsg &N2kMsg, unsigned char &EngineInstance, double &EngineOilPress, double &EngineOilTemp, double &EngineCoolantTemp, double &AltenatorVoltage, double &FuelRate, double &EngineHours)
 Parsing the content of a "Engine parameters dynamic" message - PGN 127489. More...
 
bool ParseN2kEngineDynamicParam (const tN2kMsg &N2kMsg, unsigned char &EngineInstance, double &EngineOilPress, double &EngineOilTemp, double &EngineCoolantTemp, double &AltenatorVoltage, double &FuelRate, double &EngineHours, double &EngineCoolantPress, double &EngineFuelPress, int8_t &EngineLoad, int8_t &EngineTorque)
 Parsing the content of a "Engine parameters dynamic" message - PGN 127489. More...
 
bool ParseN2kEngineDynamicParam (const tN2kMsg &N2kMsg, unsigned char &EngineInstance, double &EngineOilPress, double &EngineOilTemp, double &EngineCoolantTemp, double &AltenatorVoltage, double &FuelRate, double &EngineHours, double &EngineCoolantPress, double &EngineFuelPress, int8_t &EngineLoad, int8_t &EngineTorque, tN2kEngineDiscreteStatus1 &Status1, tN2kEngineDiscreteStatus2 &Status2)
 Parsing the content of a "Engine parameters dynamic" message - PGN 127489. More...
 
bool ParseN2kEngineParamRapid (const tN2kMsg &N2kMsg, unsigned char &EngineInstance, double &EngineSpeed, double &EngineBoostPressure, int8_t &EngineTiltTrim)
 Parsing the content of a "Engine parameters rapid" message - PGN 127488. More...
 
bool ParseN2kEngineTripParameters (const tN2kMsg &N2kMsg, unsigned char &EngineInstance, double &TripFuelUsed, double &FuelRateAverage, double &FuelRateEconomy, double &InstantaneousFuelEconomy)
 Parsing the content of a "Trip Parameters, Engine" message - PGN 127497. More...
 
bool ParseN2kEnvironmentalParameters (const tN2kMsg &N2kMsg, unsigned char &SID, tN2kTempSource &TempSource, double &Temperature, tN2kHumiditySource &HumiditySource, double &Humidity, double &AtmosphericPressure)
 Parsing the content of a "Environmental Parameters - DEPRECATED" message - PGN 130311. More...
 
bool ParseN2kFluidLevel (const tN2kMsg &N2kMsg, unsigned char &Instance, tN2kFluidType &FluidType, double &Level, double &Capacity)
 Parsing the content of a "Fluid level" message - PGN 127505. More...
 
bool ParseN2kGNSS (const tN2kMsg &N2kMsg, unsigned char &SID, uint16_t &DaysSince1970, double &SecondsSinceMidnight, double &Latitude, double &Longitude, double &Altitude, tN2kGNSStype &GNSStype, tN2kGNSSmethod &GNSSmethod, unsigned char &nSatellites, double &HDOP, double &PDOP, double &GeoidalSeparation, unsigned char &nReferenceStations, tN2kGNSStype &ReferenceStationType, uint16_t &ReferenceSationID, double &AgeOfCorrection)
 Parsing the content of a "GNSS Position Data" message - PGN 129029. More...
 
bool ParseN2kGNSSDOPData (const tN2kMsg &N2kMsg, unsigned char &SID, tN2kGNSSDOPmode &DesiredMode, tN2kGNSSDOPmode &ActualMode, double &HDOP, double &VDOP, double &TDOP)
 Parsing the content of a "GNSS DOP data" message - PGN 129539. More...
 
bool ParseN2kHeading (const tN2kMsg &N2kMsg, unsigned char &SID, double &Heading, double &Deviation, double &Variation, tN2kHeadingReference &ref)
 Parsing the content of a "Vessel Heading" message - PGN 127250. More...
 
bool ParseN2kHeadingTrackControl (const tN2kMsg &N2kMsg, tN2kOnOff &RudderLimitExceeded, tN2kOnOff &OffHeadingLimitExceeded, tN2kOnOff &OffTrackLimitExceeded, tN2kOnOff &Override, tN2kSteeringMode &SteeringMode, tN2kTurnMode &TurnMode, tN2kHeadingReference &HeadingReference, tN2kRudderDirectionOrder &CommandedRudderDirection, double &CommandedRudderAngle, double &HeadingToSteerCourse, double &Track, double &RudderLimit, double &OffHeadingLimit, double &RadiusOfTurnOrder, double &RateOfTurnOrder, double &OffTrackLimit, double &VesselHeading)
 Parsing the content of a "Heading/Track control" message - PGN 127237. More...
 
bool ParseN2kHeave (const tN2kMsg &N2kMsg, unsigned char &SID, double &Heave)
 Parsing the content of a "Heave" message - PGN 127252. More...
 
bool ParseN2kHeave (const tN2kMsg &N2kMsg, unsigned char &SID, double &Heave, double &Delay, tN2kDelaySource &DelaySource)
 Parsing the content of a "Heave" message - PGN 127252. More...
 
bool ParseN2kHumidity (const tN2kMsg &N2kMsg, unsigned char &SID, unsigned char &HumidityInstance, tN2kHumiditySource &HumiditySource, double &ActualHumidity)
 Parsing the content of a "Humidity" message - PGN 130313. More...
 
bool ParseN2kHumidity (const tN2kMsg &N2kMsg, unsigned char &SID, unsigned char &HumidityInstance, tN2kHumiditySource &HumiditySource, double &ActualHumidity, double &SetHumidity)
 Parsing the content of a "Humidity" message - PGN 130313. More...
 
bool ParseN2kLeeway (const tN2kMsg &N2kMsg, unsigned char &SID, double &Leeway)
 Parsing the content of a "Nautical Leeway Angle" message - PGN 128000. More...
 
bool ParseN2kLocalOffset (const tN2kMsg &N2kMsg, uint16_t &DaysSince1970, double &SecondsSinceMidnight, int16_t &LocalOffset)
 Parsing the content of a "Date,Time & Local offset" message - PGN 129033. More...
 
bool ParseN2kMagneticVariation (const tN2kMsg &N2kMsg, unsigned char &SID, tN2kMagneticVariation &Source, uint16_t &DaysSince1970, double &Variation)
 Parsing the content of a "Magnetic Variation" message - PGN 127258. More...
 
bool ParseN2kMeteorlogicalStationData (const tN2kMsg &N2kMsg, tN2kMeteorlogicalStationData &N2kData)
 Parsing the content of a "Meterological Station Data" message - PGN 130323. More...
 
bool ParseN2kMOBNotification (const tN2kMsg &N2kMsg, unsigned char &SID, uint32_t &MobEmitterId, tN2kMOBStatus &MOBStatus, double &ActivationTime, tN2kMOBPositionSource &PositionSource, uint16_t &PositionDate, double &PositionTime, double &Latitude, double &Longitude, tN2kHeadingReference &COGReference, double &COG, double &SOG, uint32_t &MMSI, tN2kMOBEmitterBatteryStatus &MOBEmitterBatteryStatus)
 Parsing the content of a "Man Overboard Notification" message - PGN 127233. More...
 
bool ParseN2kNavigationInfo (const tN2kMsg &N2kMsg, unsigned char &SID, double &DistanceToWaypoint, tN2kHeadingReference &BearingReference, bool &PerpendicularCrossed, bool &ArrivalCircleEntered, tN2kDistanceCalculationType &CalculationType, double &ETATime, int16_t &ETADate, double &BearingOriginToDestinationWaypoint, double &BearingPositionToDestinationWaypoint, uint32_t &OriginWaypointNumber, uint32_t &DestinationWaypointNumber, double &DestinationLatitude, double &DestinationLongitude, double &WaypointClosingVelocity)
 Parsing the content of a "Navigation Data" message - PGN 129284. More...
 
bool ParseN2kOutsideEnvironmentalParameters (const tN2kMsg &N2kMsg, unsigned char &SID, double &WaterTemperature, double &OutsideAmbientAirTemperature, double &AtmosphericPressure)
 Parsing the content of a "Environmental Parameters - DEPRECATED" message - PGN 130310. More...
 
bool ParseN2kPGN126992 (const tN2kMsg &N2kMsg, unsigned char &SID, uint16_t &SystemDate, double &SystemTime, tN2kTimeSource &TimeSource)
 Parsing the Content of a PGN126992 Message - "System date/time". More...
 
bool ParseN2kPGN127233 (const tN2kMsg &N2kMsg, unsigned char &SID, uint32_t &MobEmitterId, tN2kMOBStatus &MOBStatus, double &ActivationTime, tN2kMOBPositionSource &PositionSource, uint16_t &PositionDate, double &PositionTime, double &Latitude, double &Longitude, tN2kHeadingReference &COGReference, double &COG, double &SOG, uint32_t &MMSI, tN2kMOBEmitterBatteryStatus &MOBEmitterBatteryStatus)
 Parsing the Content of Message PGN127233 "Man Overboard Notification". More...
 
bool ParseN2kPGN127237 (const tN2kMsg &N2kMsg, tN2kOnOff &RudderLimitExceeded, tN2kOnOff &OffHeadingLimitExceeded, tN2kOnOff &OffTrackLimitExceeded, tN2kOnOff &Override, tN2kSteeringMode &SteeringMode, tN2kTurnMode &TurnMode, tN2kHeadingReference &HeadingReference, tN2kRudderDirectionOrder &CommandedRudderDirection, double &CommandedRudderAngle, double &HeadingToSteerCourse, double &Track, double &RudderLimit, double &OffHeadingLimit, double &RadiusOfTurnOrder, double &RateOfTurnOrder, double &OffTrackLimit, double &VesselHeading)
 Parsing the Content of Message PGN127237 "Heading/Track control". More...
 
bool ParseN2kPGN127245 (const tN2kMsg &N2kMsg, double &RudderPosition, unsigned char &Instance, tN2kRudderDirectionOrder &RudderDirectionOrder, double &AngleOrder)
 Parsing the content of Message PGN127245 "Rudder". More...
 
bool ParseN2kPGN127250 (const tN2kMsg &N2kMsg, unsigned char &SID, double &Heading, double &Deviation, double &Variation, tN2kHeadingReference &ref)
 Parsing Content of Message PGN 127250 "Vessel Heading". More...
 
bool ParseN2kPGN127251 (const tN2kMsg &N2kMsg, unsigned char &SID, double &RateOfTurn)
 Parsing the content of Message PGN127251 "Rate of Turn". More...
 
bool ParseN2kPGN127252 (const tN2kMsg &N2kMsg, unsigned char &SID, double &Heave, double &Delay, tN2kDelaySource &DelaySource)
 Parsing the content of Message PGN127252 "Heave". More...
 
bool ParseN2kPGN127257 (const tN2kMsg &N2kMsg, unsigned char &SID, double &Yaw, double &Pitch, double &Roll)
 Parsing the content of Message PGN 127257 "Attitude". More...
 
bool ParseN2kPGN127258 (const tN2kMsg &N2kMsg, unsigned char &SID, tN2kMagneticVariation &Source, uint16_t &DaysSince1970, double &Variation)
 Parsing the content of Message PGN 127258 "Magnetic Variation". More...
 
bool ParseN2kPGN127488 (const tN2kMsg &N2kMsg, unsigned char &EngineInstance, double &EngineSpeed, double &EngineBoostPressure, int8_t &EngineTiltTrim)
 Parsing the content of Message PGN 127488 "Engine parameters rapid". More...
 
bool ParseN2kPGN127489 (const tN2kMsg &N2kMsg, unsigned char &EngineInstance, double &EngineOilPress, double &EngineOilTemp, double &EngineCoolantTemp, double &AltenatorVoltage, double &FuelRate, double &EngineHours, double &EngineCoolantPress, double &EngineFuelPress, int8_t &EngineLoad, int8_t &EngineTorque)
 Parsing the content of a "Engine parameters dynamic" message - PGN 127489. More...
 
bool ParseN2kPGN127489 (const tN2kMsg &N2kMsg, unsigned char &EngineInstance, double &EngineOilPress, double &EngineOilTemp, double &EngineCoolantTemp, double &AltenatorVoltage, double &FuelRate, double &EngineHours, double &EngineCoolantPress, double &EngineFuelPress, int8_t &EngineLoad, int8_t &EngineTorque, tN2kEngineDiscreteStatus1 &Status1, tN2kEngineDiscreteStatus2 &Status2)
 Parsing the content of Message PGN 127489 "Engine parameters dynamic". More...
 
bool ParseN2kPGN127493 (const tN2kMsg &N2kMsg, unsigned char &EngineInstance, tN2kTransmissionGear &TransmissionGear, double &OilPressure, double &OilTemperature, unsigned char &DiscreteStatus1)
 Parsing the content of Message PGN 127493 "Transmission parameters, dynamic". More...
 
bool ParseN2kPGN127497 (const tN2kMsg &N2kMsg, unsigned char &EngineInstance, double &TripFuelUsed, double &FuelRateAverage, double &FuelRateEconomy, double &InstantaneousFuelEconomy)
 Parsing the content of Message PGN 127497 "Trip Parameters, Engine". More...
 
bool ParseN2kPGN127501 (const tN2kMsg &N2kMsg, unsigned char &DeviceBankInstance, tN2kBinaryStatus &BankStatus)
 Parsing the content of Message PGN 127501 Message "Universal Binary Status Report". More...
 
bool ParseN2kPGN127501 (const tN2kMsg &N2kMsg, unsigned char &DeviceBankInstance, tN2kOnOff &Status1, tN2kOnOff &Status2, tN2kOnOff &Status3, tN2kOnOff &Status4)
 Parsing the content of Message PGN 127501 Message "Universal Binary Status Report". More...
 
bool ParseN2kPGN127502 (const tN2kMsg &N2kMsg, unsigned char &TargetBankInstance, tN2kBinaryStatus &BankStatus)
 Parse the content of a PGN 127502 (Switch Bank Control) message. More...
 
bool ParseN2kPGN127505 (const tN2kMsg &N2kMsg, unsigned char &Instance, tN2kFluidType &FluidType, double &Level, double &Capacity)
 Parsing the content of message PGN 127505 "Fluid level". More...
 
bool ParseN2kPGN127506 (const tN2kMsg &N2kMsg, unsigned char &SID, unsigned char &DCInstance, tN2kDCType &DCType, unsigned char &StateOfCharge, unsigned char &StateOfHealth, double &TimeRemaining, double &RippleVoltage, double &Capacity)
 Parsing the content of message PGN 127506 "DC Detailed Status". More...
 
bool ParseN2kPGN127507 (const tN2kMsg &N2kMsg, unsigned char &Instance, unsigned char &BatteryInstance, tN2kChargeState &ChargeState, tN2kChargerMode &ChargerMode, tN2kOnOff &Enabled, tN2kOnOff &EqualizationPending, double &EqualizationTimeRemaining)
 Parsing the content of message PGN 127507 "DC Charger Status". More...
 
bool ParseN2kPGN127508 (const tN2kMsg &N2kMsg, unsigned char &BatteryInstance, double &BatteryVoltage, double &BatteryCurrent, double &BatteryTemperature, unsigned char &SID)
 Parsing the content of message PGN 127508 "Battery Status". More...
 
bool ParseN2kPGN127513 (const tN2kMsg &N2kMsg, unsigned char &BatInstance, tN2kBatType &BatType, tN2kBatEqSupport &SupportsEqual, tN2kBatNomVolt &BatNominalVoltage, tN2kBatChem &BatChemistry, double &BatCapacity, int8_t &BatTemperatureCoefficient, double &PeukertExponent, int8_t &ChargeEfficiencyFactor)
 Parsing the content of message PGN 127513 "Battery Configuration Status". More...
 
bool ParseN2kPGN128000 (const tN2kMsg &N2kMsg, unsigned char &SID, double &Leeway)
 Parsing the content of Message PGN 128000 "Nautical Leeway Angle". More...
 
bool ParseN2kPGN128259 (const tN2kMsg &N2kMsg, unsigned char &SID, double &WaterReferenced, double &GroundReferenced, tN2kSpeedWaterReferenceType &SWRT)
 Parsing the content of message PGN 128259 "Boat Speed, Water Referenced". More...
 
bool ParseN2kPGN128267 (const tN2kMsg &N2kMsg, unsigned char &SID, double &DepthBelowTransducer, double &Offset, double &Range)
 Parsing the content of message PGN 128267 "Water depth". More...
 
bool ParseN2kPGN128275 (const tN2kMsg &N2kMsg, uint16_t &DaysSince1970, double &SecondsSinceMidnight, uint32_t &Log, uint32_t &TripLog)
 Parsing the content of message PGN 128275 "Distance log". More...
 
bool ParseN2kPGN128776 (const tN2kMsg &N2kMsg, unsigned char &SID, unsigned char &WindlassIdentifier, tN2kWindlassDirectionControl &WindlassDirectionControl, unsigned char &SpeedControl, tN2kSpeedType &SpeedControlType, tN2kGenericStatusPair &AnchorDockingControl, tN2kGenericStatusPair &PowerEnable, tN2kGenericStatusPair &MechanicalLock, tN2kGenericStatusPair &DeckAndAnchorWash, tN2kGenericStatusPair &AnchorLight, double &CommandTimeout, tN2kWindlassControlEvents &WindlassControlEvents)
 Parsing the content of message PGN 128776 "Anchor Windlass Control Status". More...
 
bool ParseN2kPGN128777 (const tN2kMsg &N2kMsg, unsigned char &SID, unsigned char &WindlassIdentifier, double &RodeCounterValue, double &WindlassLineSpeed, tN2kWindlassMotionStates &WindlassMotionStatus, tN2kRodeTypeStates &RodeTypeStatus, tN2kAnchorDockingStates &AnchorDockingStatus, tN2kWindlassOperatingEvents &WindlassOperatingEvents)
 Parsing the content of message PGN 128777 "Anchor Windlass Operating Status". More...
 
bool ParseN2kPGN128778 (const tN2kMsg &N2kMsg, unsigned char &SID, unsigned char &WindlassIdentifier, double &TotalMotorTime, double &ControllerVoltage, double &MotorCurrent, tN2kWindlassMonitoringEvents &WindlassMonitoringEvents)
 Parsing the content of message PGN128778 "Anchor Windlass Monitoring Status". More...
 
bool ParseN2kPGN129025 (const tN2kMsg &N2kMsg, double &Latitude, double &Longitude)
 Parsing the content of PGN 129025 "Position, Rapid Update". More...
 
bool ParseN2kPGN129026 (const tN2kMsg &N2kMsg, unsigned char &SID, tN2kHeadingReference &ref, double &COG, double &SOG)
 Parsing the content of PGN 129026 "COG SOG rapid update". More...
 
bool ParseN2kPGN129029 (const tN2kMsg &N2kMsg, unsigned char &SID, uint16_t &DaysSince1970, double &SecondsSinceMidnight, double &Latitude, double &Longitude, double &Altitude, tN2kGNSStype &GNSStype, tN2kGNSSmethod &GNSSmethod, unsigned char &nSatellites, double &HDOP, double &PDOP, double &GeoidalSeparation, unsigned char &nReferenceStations, tN2kGNSStype &ReferenceStationType, uint16_t &ReferenceSationID, double &AgeOfCorrection)
 Parsing the content of message PGN 129029 "GNSS Position Data". More...
 
bool ParseN2kPGN129033 (const tN2kMsg &N2kMsg, uint16_t &DaysSince1970, double &SecondsSinceMidnight, int16_t &LocalOffset)
 Parsing the content of message PGN 129033 "Date,Time & Local offset". More...
 
bool ParseN2kPGN129038 (const tN2kMsg &N2kMsg, uint8_t &MessageID, tN2kAISRepeat &Repeat, uint32_t &UserID, double &Latitude, double &Longitude, bool &Accuracy, bool &RAIM, uint8_t &Seconds, double &COG, double &SOG, double &Heading, double &ROT, tN2kAISNavStatus &NavStatus)
 Parsing the content of message PGN 129038 "AIS position reports for Class A". More...
 
bool ParseN2kPGN129039 (const tN2kMsg &N2kMsg, uint8_t &MessageID, tN2kAISRepeat &Repeat, uint32_t &UserID, double &Latitude, double &Longitude, bool &Accuracy, bool &RAIM, uint8_t &Seconds, double &COG, double &SOG, tN2kAISTransceiverInformation &AISTransceiverInformation, double &Heading, tN2kAISUnit &Unit, bool &Display, bool &DSC, bool &Band, bool &Msg22, tN2kAISMode &Mode, bool &State)
 Parsing the content of message PGN 129039 "AIS position reports for Class B". More...
 
bool ParseN2kPGN129041 (const tN2kMsg &N2kMsg, tN2kAISAtoNReportData &N2kData)
 Parsing the content of message PGN 129041 "AIS Aids to Navigation (AtoN) Report". More...
 
bool ParseN2kPGN129283 (const tN2kMsg &N2kMsg, unsigned char &SID, tN2kXTEMode &XTEMode, bool &NavigationTerminated, double &XTE)
 Parsing the content of Message PGN 129283 Message "Cross Track Error". More...
 
bool ParseN2kPGN129284 (const tN2kMsg &N2kMsg, unsigned char &SID, double &DistanceToWaypoint, tN2kHeadingReference &BearingReference, bool &PerpendicularCrossed, bool &ArrivalCircleEntered, tN2kDistanceCalculationType &CalculationType, double &ETATime, int16_t &ETADate, double &BearingOriginToDestinationWaypoint, double &BearingPositionToDestinationWaypoint, uint32_t &OriginWaypointNumber, uint32_t &DestinationWaypointNumber, double &DestinationLatitude, double &DestinationLongitude, double &WaypointClosingVelocity)
 Parsing the content of message PGN 129284 "Navigation Data". More...
 
bool ParseN2kPgn129539 (const tN2kMsg &N2kMsg, unsigned char &SID, tN2kGNSSDOPmode &DesiredMode, tN2kGNSSDOPmode &ActualMode, double &HDOP, double &VDOP, double &TDOP)
 Parsing the content of message PGN 129539 "GNSS DOP data". More...
 
bool ParseN2kPGN129540 (const tN2kMsg &N2kMsg, uint8_t SVIndex, tSatelliteInfo &SatelliteInfo)
 Parsing the content of message PGN 129540 "GNSS Satellites in View". More...
 
bool ParseN2kPGN129540 (const tN2kMsg &N2kMsg, unsigned char &SID, tN2kRangeResidualMode &Mode, uint8_t &NumberOfSVs)
 Parsing the content of message PGN 129540 "GNSS Satellites in View". More...
 
bool ParseN2kPGN129794 (const tN2kMsg &N2kMsg, uint8_t &MessageID, tN2kAISRepeat &Repeat, uint32_t &UserID, uint32_t &IMOnumber, char *Callsign, size_t CallsignBufSize, char *Name, size_t NameBufSize, uint8_t &VesselType, double &Length, double &Beam, double &PosRefStbd, double &PosRefBow, uint16_t &ETAdate, double &ETAtime, double &Draught, char *Destination, size_t DestinationBufSize, tN2kAISVersion &AISversion, tN2kGNSStype &GNSStype, tN2kAISDTE &DTE, tN2kAISTransceiverInformation &AISinfo)
 Parsing the content of message PGN 129794 "AIS static data class A". More...
 
bool ParseN2kPGN129802 (const tN2kMsg &N2kMsg, uint8_t &MessageID, tN2kAISRepeat &Repeat, uint32_t &SourceID, tN2kAISTransceiverInformation &AISTransceiverInformation, char *SafetyRelatedText, size_t &SafetyRelatedTextMaxSize)
 Parsing the Content of a PGN129802 Message - "AIS Safety Related Broadcast Message". More...
 
bool ParseN2kPGN129809 (const tN2kMsg &N2kMsg, uint8_t &MessageID, tN2kAISRepeat &Repeat, uint32_t &UserID, char *Name, size_t NameBufSize)
 Parsing the content of message PGN 129809 "AIS static data class B part A". More...
 
bool ParseN2kPGN129810 (const tN2kMsg &N2kMsg, uint8_t &MessageID, tN2kAISRepeat &Repeat, uint32_t &UserID, uint8_t &VesselType, const char *Vendor, size_t VendorBufSize, const char *Callsign, size_t CallsignBufSize, double &Length, double &Beam, double &PosRefStbd, double &PosRefBow, uint32_t &MothershipID)
 Parsing the content of message PGN 129810 "AIS static data class B part B". More...
 
bool ParseN2kPGN130306 (const tN2kMsg &N2kMsg, unsigned char &SID, double &WindSpeed, double &WindAngle, tN2kWindReference &WindReference)
 Parsing the content of message PGN 130306 "Wind Data". More...
 
bool ParseN2kPGN130310 (const tN2kMsg &N2kMsg, unsigned char &SID, double &WaterTemperature, double &OutsideAmbientAirTemperature, double &AtmosphericPressure)
 Parsing the content of message PGN 130310 "Environmental Parameters - DEPRECATED". More...
 
bool ParseN2kPGN130311 (const tN2kMsg &N2kMsg, unsigned char &SID, tN2kTempSource &TempSource, double &Temperature, tN2kHumiditySource &HumiditySource, double &Humidity, double &AtmosphericPressure)
 Parsing the content of message PGN 130311 "Environmental Parameters - DEPRECATED". More...
 
bool ParseN2kPGN130312 (const tN2kMsg &N2kMsg, unsigned char &SID, unsigned char &TempInstance, tN2kTempSource &TempSource, double &ActualTemperature, double &SetTemperature)
 Parsing the content of message PGN 130312 "Temperature - DEPRECATED". More...
 
bool ParseN2kPGN130313 (const tN2kMsg &N2kMsg, unsigned char &SID, unsigned char &HumidityInstance, tN2kHumiditySource &HumiditySource, double &ActualHumidity)
 Parsing the content of a "Humidity" message - PGN 130313. More...
 
bool ParseN2kPGN130313 (const tN2kMsg &N2kMsg, unsigned char &SID, unsigned char &HumidityInstance, tN2kHumiditySource &HumiditySource, double &ActualHumidity, double &SetHumidity)
 Parsing the content of message PGN 130313 "Humidity". More...
 
bool ParseN2kPGN130314 (const tN2kMsg &N2kMsg, unsigned char &SID, unsigned char &PressureInstance, tN2kPressureSource &PressureSource, double &Pressure)
 Parsing the content of message PGN 130314 "Actual Pressure". More...
 
bool ParseN2kPGN130316 (const tN2kMsg &N2kMsg, unsigned char &SID, unsigned char &TempInstance, tN2kTempSource &TempSource, double &ActualTemperature, double &SetTemperature)
 Parsing the content of message PGN 130316 "Temperature, Extended Range". More...
 
bool ParseN2kPGN130323 (const tN2kMsg &N2kMsg, tN2kMeteorlogicalStationData &N2kData)
 Parsing the content of message PGN 130323 "Meterological Station Data". More...
 
bool ParseN2kPGN130576 (const tN2kMsg &N2kMsg, int8_t &PortTrimTab, int8_t &StbdTrimTab)
 Parsing the content of message PGN 130576 "Trim Tab Status". More...
 
bool ParseN2kPGN130577 (const tN2kMsg &N2kMsg, tN2kDataMode &DataMode, tN2kHeadingReference &CogReference, unsigned char &SID, double &COG, double &SOG, double &Heading, double &SpeedThroughWater, double &Set, double &Drift)
 Parsing the content of message PGN 130577 "Direction Data". More...
 
bool ParseN2kPGNSatellitesInView (const tN2kMsg &N2kMsg, uint8_t SVIndex, tSatelliteInfo &SatelliteInfo)
 Parsing the content of a "GNSS Satellites in View" message - PGN 129540. More...
 
bool ParseN2kPGNSatellitesInView (const tN2kMsg &N2kMsg, unsigned char &SID, tN2kRangeResidualMode &Mode, uint8_t &NumberOfSVs)
 Parsing the content of a "GNSS Satellites in View" message - PGN 129540. More...
 
bool ParseN2kPositionRapid (const tN2kMsg &N2kMsg, double &Latitude, double &Longitude)
 Parsing the content of a "Position, Rapid Update" message - PGN 129025. More...
 
bool ParseN2kPressure (const tN2kMsg &N2kMsg, unsigned char &SID, unsigned char &PressureInstance, tN2kPressureSource &PressureSource, double &Pressure)
 Parsing the content of a "Actual Pressure" message - PGN 130314. More...
 
bool ParseN2kRateOfTurn (const tN2kMsg &N2kMsg, unsigned char &SID, double &RateOfTurn)
 Parsing the content of a "Rate of Turn" message - PGN 127251. More...
 
bool ParseN2kRudder (const tN2kMsg &N2kMsg, double &RudderPosition)
 Parsing the content of a "Rudder" message - PGN 127245. More...
 
bool ParseN2kRudder (const tN2kMsg &N2kMsg, double &RudderPosition, unsigned char &Instance, tN2kRudderDirectionOrder &RudderDirectionOrder, double &AngleOrder)
 Parsing the content of a "Rudder" message - PGN 127245. More...
 
bool ParseN2kSwitchbankControl (const tN2kMsg &N2kMsg, unsigned char &TargetBankInstance, tN2kBinaryStatus &BankStatus)
 Parse PGN 127502 "Switch Bank Control" message. More...
 
bool ParseN2kSystemTime (const tN2kMsg &N2kMsg, unsigned char &SID, uint16_t &SystemDate, double &SystemTime, tN2kTimeSource &TimeSource)
 Parsing the content of a "System date/time" message - PGN 126992. More...
 
bool ParseN2kTemperature (const tN2kMsg &N2kMsg, unsigned char &SID, unsigned char &TempInstance, tN2kTempSource &TempSource, double &ActualTemperature, double &SetTemperature)
 Parsing the content of a "Temperature - DEPRECATED" message - PGN 130312. More...
 
bool ParseN2kTemperatureExt (const tN2kMsg &N2kMsg, unsigned char &SID, unsigned char &TempInstance, tN2kTempSource &TempSource, double &ActualTemperature, double &SetTemperature)
 Parsing the content of a "Temperature, Extended Range" message - PGN 130316. More...
 
bool ParseN2kTransmissionParameters (const tN2kMsg &N2kMsg, unsigned char &EngineInstance, tN2kTransmissionGear &TransmissionGear, double &OilPressure, double &OilTemperature, bool &flagCheck, bool &flagOverTemp, bool &flagLowOilPressure, bool &flagLowOilLevel, bool &flagSailDrive)
 Parsing the content of a "Transmission parameters, dynamic" message - PGN 127493. More...
 
bool ParseN2kTransmissionParameters (const tN2kMsg &N2kMsg, unsigned char &EngineInstance, tN2kTransmissionGear &TransmissionGear, double &OilPressure, double &OilTemperature, unsigned char &DiscreteStatus1)
 Parsing the content of a "Transmission parameters, dynamic" message - PGN 127493. More...
 
bool ParseN2kTrimTab (const tN2kMsg &N2kMsg, int8_t &PortTrimTab, int8_t &StbdTrimTab)
 Parsing the content of a "Trim Tab Status" message - PGN 130576. More...
 
bool ParseN2kWaterDepth (const tN2kMsg &N2kMsg, unsigned char &SID, double &DepthBelowTransducer, double &Offset)
 Parsing the content of a "Water depth" message - PGN 128267. More...
 
bool ParseN2kWaterDepth (const tN2kMsg &N2kMsg, unsigned char &SID, double &DepthBelowTransducer, double &Offset, double &Range)
 Parsing the content of a "Water depth" message - PGN 128267. More...
 
bool ParseN2kWindSpeed (const tN2kMsg &N2kMsg, unsigned char &SID, double &WindSpeed, double &WindAngle, tN2kWindReference &WindReference)
 Parsing the content of a "Wind Data" message - PGN 130306. More...
 
bool ParseN2kXTE (const tN2kMsg &N2kMsg, unsigned char &SID, tN2kXTEMode &XTEMode, bool &NavigationTerminated, double &XTE)
 Parsing the content of a "Cross Track Error" message - PGN 129283. More...
 
double PascalTohPA (double v)
 Converting a value from Pascal to HectoPascal. More...
 
double PascalTomBar (double v)
 Converting a value from Pascal to Millibar. More...
 
double RadToDeg (double v)
 Converting a value from Rad to Deg. More...
 
double SecondsToh (double v)
 Converting a value from Seconds to Hours. More...
 
void SetN2kAISAtoNReport (tN2kMsg &N2kMsg, const tN2kAISAtoNReportData &N2kData)
 Setting up Message "AIS Aids to Navigation (AtoN) Report" - PGN 129041. More...
 
void SetN2kAISClassAPosition (tN2kMsg &N2kMsg, uint8_t MessageID, tN2kAISRepeat Repeat, uint32_t UserID, double Latitude, double Longitude, bool Accuracy, bool RAIM, uint8_t Seconds, double COG, double SOG, tN2kAISTransceiverInformation AISTransceiverInformation, double Heading, double ROT, tN2kAISNavStatus NavStatus)
 Setting up Message "AIS position reports for Class A" - PGN 129038. More...
 
void SetN2kAISClassAStatic (tN2kMsg &N2kMsg, uint8_t MessageID, tN2kAISRepeat Repeat, uint32_t UserID, uint32_t IMOnumber, const char *Callsign, const char *Name, uint8_t VesselType, double Length, double Beam, double PosRefStbd, double PosRefBow, uint16_t ETAdate, double ETAtime, double Draught, char const *Destination, tN2kAISVersion AISversion, tN2kGNSStype GNSStype, tN2kAISDTE DTE, tN2kAISTransceiverInformation AISinfo)
 Setting up Message "AIS static data class A" - PGN 129794. More...
 
void SetN2kAISClassBPosition (tN2kMsg &N2kMsg, uint8_t MessageID, tN2kAISRepeat Repeat, uint32_t UserID, double Latitude, double Longitude, bool Accuracy, bool RAIM, uint8_t Seconds, double COG, double SOG, double Heading, tN2kAISUnit Unit, bool Display, bool DSC, bool Band, bool Msg22, tN2kAISMode Mode, bool State)
 Setting up Message "AIS position reports for Class B" - PGN 129039 [DEPRECATED]. More...
 
void SetN2kAISClassBPosition (tN2kMsg &N2kMsg, uint8_t MessageID, tN2kAISRepeat Repeat, uint32_t UserID, double Latitude, double Longitude, bool Accuracy, bool RAIM, uint8_t Seconds, double COG, double SOG, tN2kAISTransceiverInformation AISTransceiverInformation, double Heading, tN2kAISUnit Unit, bool Display, bool DSC, bool Band, bool Msg22, tN2kAISMode Mode, bool State, unsigned char SID=0xff)
 Setting up Message "AIS position reports for Class B" - PGN 129039 (Latest inline version) More...
 
void SetN2kAISClassBStaticPartA (tN2kMsg &N2kMsg, uint8_t MessageID, tN2kAISRepeat Repeat, uint32_t UserID, const char *Name)
 Setting up Message "AIS static data class B part A" - PGN 129809. More...
 
void SetN2kAISClassBStaticPartB (tN2kMsg &N2kMsg, uint8_t MessageID, tN2kAISRepeat Repeat, uint32_t UserID, uint8_t VesselType, const char *Vendor, const char *Callsign, double Length, double Beam, double PosRefStbd, double PosRefBow, uint32_t MothershipID)
 Setting up Message "AIS static data class B part B" - PGN 129810. More...
 
void SetN2kAISSafetyRelatedBroadcastMsg (tN2kMsg &N2kMsg, uint8_t MessageID, tN2kAISRepeat Repeat, uint32_t SourceID, tN2kAISTransceiverInformation AISTransceiverInformation, char *SafetyRelatedText)
 Setting up Message "AIS Safety Related Broadcast Message" - PGN 129802. More...
 
void SetN2kAttitude (tN2kMsg &N2kMsg, unsigned char SID, double Yaw, double Pitch, double Roll)
 Setting up Message "Attitude" - PGN 127257. More...
 
void SetN2kBatConf (tN2kMsg &N2kMsg, unsigned char BatInstance, tN2kBatType BatType, tN2kBatEqSupport SupportsEqual, tN2kBatNomVolt BatNominalVoltage, tN2kBatChem BatChemistry, double BatCapacity, int8_t BatTemperatureCoefficient, double PeukertExponent, int8_t ChargeEfficiencyFactor)
 Setting up Message "Battery Configuration Status" - PGN 127513. More...
 
void SetN2kBinaryStatus (tN2kMsg &N2kMsg, unsigned char DeviceBankInstance, tN2kBinaryStatus BankStatus)
 Setting up Message "Universal Binary Status Report" - PGN 127501. More...
 
void SetN2kBinaryStatus (tN2kMsg &N2kMsg, unsigned char DeviceBankInstance, tN2kOnOff Status1, tN2kOnOff Status2=N2kOnOff_Unavailable, tN2kOnOff Status3=N2kOnOff_Unavailable, tN2kOnOff Status4=N2kOnOff_Unavailable)
 Setting up Message "Universal Binary Status Report" - PGN 127501. More...
 
void SetN2kBoatSpeed (tN2kMsg &N2kMsg, unsigned char SID, double WaterReferenced, double GroundReferenced=N2kDoubleNA, tN2kSpeedWaterReferenceType SWRT=N2kSWRT_Paddle_wheel)
 Setting up Message "Boat Speed, Water Referenced" - PGN 128259. More...
 
void SetN2kChargerStatus (tN2kMsg &N2kMsg, unsigned char Instance, unsigned char BatteryInstance, tN2kChargeState ChargeState, tN2kChargerMode ChargerMode=N2kCM_Standalone, tN2kOnOff Enabled=N2kOnOff_On, tN2kOnOff EqualizationPending=N2kOnOff_Unavailable, double EqualizationTimeRemaining=N2kDoubleNA)
 Setting up Message "DC Charger Status" - PGN 127507. More...
 
void SetN2kCOGSOGRapid (tN2kMsg &N2kMsg, unsigned char SID, tN2kHeadingReference ref, double COG, double SOG)
 Setting up Message "COG SOG rapid update" - PGN 129026. More...
 
void SetN2kDCBatStatus (tN2kMsg &N2kMsg, unsigned char BatteryInstance, double BatteryVoltage, double BatteryCurrent=N2kDoubleNA, double BatteryTemperature=N2kDoubleNA, unsigned char SID=1)
 Setting up Message "Battery Status" - PGN 127508. More...
 
void SetN2kDCStatus (tN2kMsg &N2kMsg, unsigned char SID, unsigned char DCInstance, tN2kDCType DCType, unsigned char StateOfCharge, unsigned char StateOfHealth, double TimeRemaining, double RippleVoltage=N2kDoubleNA, double Capacity=N2kDoubleNA)
 Setting up Message "DC Detailed Status" - PGN 127506. More...
 
void SetN2kDirectionData (tN2kMsg &N2kMsg, tN2kDataMode DataMode, tN2kHeadingReference CogReference, unsigned char SID, double COG, double SOG, double Heading, double SpeedThroughWater, double Set, double Drift)
 Setting up Message "Direction Data" - PGN 130577. More...
 
void SetN2kDistanceLog (tN2kMsg &N2kMsg, uint16_t DaysSince1970, double SecondsSinceMidnight, uint32_t Log, uint32_t TripLog)
 Setting up Message "Distance log" - PGN 128275. More...
 
void SetN2kEngineDynamicParam (tN2kMsg &N2kMsg, unsigned char EngineInstance, double EngineOilPress, double EngineOilTemp, double EngineCoolantTemp, double AltenatorVoltage, double FuelRate, double EngineHours, double EngineCoolantPress=N2kDoubleNA, double EngineFuelPress=N2kDoubleNA, int8_t EngineLoad=N2kInt8NA, int8_t EngineTorque=N2kInt8NA, bool flagCheckEngine=false, bool flagOverTemp=false, bool flagLowOilPress=false, bool flagLowOilLevel=false, bool flagLowFuelPress=false, bool flagLowSystemVoltage=false, bool flagLowCoolantLevel=false, bool flagWaterFlow=false, bool flagWaterInFuel=false, bool flagChargeIndicator=false, bool flagPreheatIndicator=false, bool flagHighBoostPress=false, bool flagRevLimitExceeded=false, bool flagEgrSystem=false, bool flagTPS=false, bool flagEmergencyStopMode=false, bool flagWarning1=false, bool flagWarning2=false, bool flagPowerReduction=false, bool flagMaintenanceNeeded=false, bool flagEngineCommError=false, bool flagSubThrottle=false, bool flagNeutralStartProtect=false, bool flagEngineShuttingDown=false)
 Setting up Message "Engine parameters dynamic" - PGN 127489. More...
 
void SetN2kEngineDynamicParam (tN2kMsg &N2kMsg, unsigned char EngineInstance, double EngineOilPress, double EngineOilTemp, double EngineCoolantTemp, double AltenatorVoltage, double FuelRate, double EngineHours, double EngineCoolantPress=N2kDoubleNA, double EngineFuelPress=N2kDoubleNA, int8_t EngineLoad=N2kInt8NA, int8_t EngineTorque=N2kInt8NA, tN2kEngineDiscreteStatus1 Status1=0, tN2kEngineDiscreteStatus2 Status2=0)
 Setting up Message "Engine parameters dynamic" - PGN 127489. More...
 
void SetN2kEngineParamRapid (tN2kMsg &N2kMsg, unsigned char EngineInstance, double EngineSpeed, double EngineBoostPressure=N2kDoubleNA, int8_t EngineTiltTrim=N2kInt8NA)
 Setting up Message "Engine parameters rapid" - PGN 127488. More...
 
void SetN2kEngineTripParameters (tN2kMsg &N2kMsg, unsigned char EngineInstance, double TripFuelUsed, double FuelRateAverage, double FuelRateEconomy=N2kDoubleNA, double InstantaneousFuelEconomy=N2kDoubleNA)
 Setting up Message "Trip Parameters, Engine" - PGN 127497. More...
 
void SetN2kEnvironmentalParameters (tN2kMsg &N2kMsg, unsigned char SID, tN2kTempSource TempSource, double Temperature, tN2kHumiditySource HumiditySource=N2khs_Undef, double Humidity=N2kDoubleNA, double AtmosphericPressure=N2kDoubleNA)
 Setting up Message "Environmental Parameters - DEPRECATED" - PGN 130311. More...
 
void SetN2kFluidLevel (tN2kMsg &N2kMsg, unsigned char Instance, tN2kFluidType FluidType, double Level, double Capacity)
 Setting up Message "Fluid level" - PGN 127505. More...
 
void SetN2kGNSS (tN2kMsg &N2kMsg, unsigned char SID, uint16_t DaysSince1970, double SecondsSinceMidnight, double Latitude, double Longitude, double Altitude, tN2kGNSStype GNSStype, tN2kGNSSmethod GNSSmethod, unsigned char nSatellites, double HDOP, double PDOP=0, double GeoidalSeparation=0, unsigned char nReferenceStations=0, tN2kGNSStype ReferenceStationType=N2kGNSSt_GPS, uint16_t ReferenceSationID=0, double AgeOfCorrection=0)
 Setting up Message "GNSS Position Data" - PGN 129029. More...
 
void SetN2kGNSSDOPData (tN2kMsg &N2kMsg, unsigned char SID, tN2kGNSSDOPmode DesiredMode, tN2kGNSSDOPmode ActualMode, double HDOP, double VDOP, double TDOP)
 Setting up Message "GNSS DOP data - PGN 129539. More...
 
void SetN2kGNSSSatellitesInView (tN2kMsg &N2kMsg, unsigned char SID=0xff, tN2kRangeResidualMode Mode=N2kDD072_Unavailable)
 Setting up Message "GNSS DOP data" - PGN 129540. More...
 
void SetN2kHeadingTrackControl (tN2kMsg &N2kMsg, tN2kOnOff RudderLimitExceeded, tN2kOnOff OffHeadingLimitExceeded, tN2kOnOff OffTrackLimitExceeded, tN2kOnOff Override, tN2kSteeringMode SteeringMode, tN2kTurnMode TurnMode, tN2kHeadingReference HeadingReference, tN2kRudderDirectionOrder CommandedRudderDirection, double CommandedRudderAngle, double HeadingToSteerCourse, double Track, double RudderLimit, double OffHeadingLimit, double RadiusOfTurnOrder, double RateOfTurnOrder, double OffTrackLimit, double VesselHeading)
 Setting up Message "Heading/Track control" - PGN 127237. More...
 
void SetN2kHeave (tN2kMsg &N2kMsg, unsigned char SID, double Heave, double Delay=N2kDoubleNA, tN2kDelaySource DelaySource=N2kDD374_DataNotAvailable)
 Setting up Message "Rate of Turn" - PGN 127252. More...
 
void SetN2kHumidity (tN2kMsg &N2kMsg, unsigned char SID, unsigned char HumidityInstance, tN2kHumiditySource HumiditySource, double ActualHumidity, double SetHumidity=N2kDoubleNA)
 Setting up Message "Humidity" - PGN 130313. More...
 
void SetN2kLatLonRapid (tN2kMsg &N2kMsg, double Latitude, double Longitude)
 Setting up Message "Position, Rapid Update" - PGN 129025. More...
 
void SetN2kLeeway (tN2kMsg &N2kMsg, unsigned char SID, double Leeway)
 Setting up Message "Nautical Leeway Angle" - PGN 128000. More...
 
void SetN2kLocalOffset (tN2kMsg &N2kMsg, uint16_t DaysSince1970, double SecondsSinceMidnight, int16_t LocalOffset)
 Setting up Message "Date,Time & Local offset" - PGN 129033. More...
 
void SetN2kMagneticHeading (tN2kMsg &N2kMsg, unsigned char SID, double Heading, double Deviation=N2kDoubleNA, double Variation=N2kDoubleNA)
 Setting up Message "Vessel Heading" - PGN 127250. More...
 
void SetN2kMagneticVariation (tN2kMsg &N2kMsg, unsigned char SID, tN2kMagneticVariation Source, uint16_t DaysSince1970, double Variation)
 Setting up Message "Magnetic Variation" - PGN 127258. More...
 
void SetN2kMeteorlogicalStationData (tN2kMsg &N2kMsg, const tN2kMeteorlogicalStationData &N2kData)
 Setting up Message "Meterological Station Data" - PGN 130323. More...
 
void SetN2kMOBNotification (tN2kMsg &N2kMsg, unsigned char SID, uint32_t MobEmitterId, tN2kMOBStatus MOBStatus, double ActivationTime, tN2kMOBPositionSource PositionSource, uint16_t PositionDate, double PositionTime, double Latitude, double Longitude, tN2kHeadingReference COGReference, double COG, double SOG, uint32_t MMSI, tN2kMOBEmitterBatteryStatus MOBEmitterBatteryStatus)
 Setting up Message "Man Overboard Notification" - PGN 127233. More...
 
void SetN2kNavigationInfo (tN2kMsg &N2kMsg, unsigned char SID, double DistanceToWaypoint, tN2kHeadingReference BearingReference, bool PerpendicularCrossed, bool ArrivalCircleEntered, tN2kDistanceCalculationType CalculationType, double ETATime, int16_t ETADate, double BearingOriginToDestinationWaypoint, double BearingPositionToDestinationWaypoint, uint32_t OriginWaypointNumber, uint32_t DestinationWaypointNumber, double DestinationLatitude, double DestinationLongitude, double WaypointClosingVelocity)
 Setting up Message "Navigation Data" - PGN 129284. More...
 
void SetN2kOutsideEnvironmentalParameters (tN2kMsg &N2kMsg, unsigned char SID, double WaterTemperature, double OutsideAmbientAirTemperature=N2kDoubleNA, double AtmosphericPressure=N2kDoubleNA)
 Setting up Message "Environmental Parameters - DEPRECATED" - PGN 130310. More...
 
void SetN2kPGN126992 (tN2kMsg &N2kMsg, unsigned char SID, uint16_t SystemDate, double SystemTime, tN2kTimeSource TimeSource=N2ktimes_GPS)
 Setting up PGN126992 Message "System date/time". More...
 
void SetN2kPGN127233 (tN2kMsg &N2kMsg, unsigned char SID, uint32_t MobEmitterId, tN2kMOBStatus MOBStatus, double ActivationTime, tN2kMOBPositionSource PositionSource, uint16_t PositionDate, double PositionTime, double Latitude, double Longitude, tN2kHeadingReference COGReference, double COG, double SOG, uint32_t MMSI, tN2kMOBEmitterBatteryStatus MOBEmitterBatteryStatus)
 Setting up PGN127233 Message "Man Overboard Notification". More...
 
void SetN2kPGN127237 (tN2kMsg &N2kMsg, tN2kOnOff RudderLimitExceeded, tN2kOnOff OffHeadingLimitExceeded, tN2kOnOff OffTrackLimitExceeded, tN2kOnOff Override, tN2kSteeringMode SteeringMode, tN2kTurnMode TurnMode, tN2kHeadingReference HeadingReference, tN2kRudderDirectionOrder CommandedRudderDirection, double CommandedRudderAngle, double HeadingToSteerCourse, double Track, double RudderLimit, double OffHeadingLimit, double RadiusOfTurnOrder, double RateOfTurnOrder, double OffTrackLimit, double VesselHeading)
 Setting up PGN127237 Message "Heading/Track control". More...
 
void SetN2kPGN127245 (tN2kMsg &N2kMsg, double RudderPosition, unsigned char Instance=0, tN2kRudderDirectionOrder RudderDirectionOrder=N2kRDO_NoDirectionOrder, double AngleOrder=N2kDoubleNA)
 Setting up PGN127245 Message "Rudder". More...
 
void SetN2kPGN127250 (tN2kMsg &N2kMsg, unsigned char SID, double Heading, double Deviation, double Variation, tN2kHeadingReference ref)
 Setting up PGN127250 Message "Vessel Heading". More...
 
void SetN2kPGN127251 (tN2kMsg &N2kMsg, unsigned char SID, double RateOfTurn)
 Setting up PGN 127251 Message "Rate of Turn". More...
 
void SetN2kPGN127252 (tN2kMsg &N2kMsg, unsigned char SID, double Heave, double Delay=N2kDoubleNA, tN2kDelaySource DelaySource=N2kDD374_DataNotAvailable)
 Setting up PGN 127252 Message "Heave". More...
 
void SetN2kPGN127257 (tN2kMsg &N2kMsg, unsigned char SID, double Yaw, double Pitch, double Roll)
 Setting up PGN 127257 Message "Attitude". More...
 
void SetN2kPGN127258 (tN2kMsg &N2kMsg, unsigned char SID, tN2kMagneticVariation Source, uint16_t DaysSince1970, double Variation)
 Setting up PGN 127258 Message "Magnetic Variation". More...
 
void SetN2kPGN127488 (tN2kMsg &N2kMsg, unsigned char EngineInstance, double EngineSpeed, double EngineBoostPressure=N2kDoubleNA, int8_t EngineTiltTrim=N2kInt8NA)
 Setting up PGN 127488 Message "Engine parameters rapid". More...
 
void SetN2kPGN127489 (tN2kMsg &N2kMsg, unsigned char EngineInstance, double EngineOilPress, double EngineOilTemp, double EngineCoolantTemp, double AltenatorVoltage, double FuelRate, double EngineHours, double EngineCoolantPress=N2kDoubleNA, double EngineFuelPress=N2kDoubleNA, int8_t EngineLoad=N2kInt8NA, int8_t EngineTorque=N2kInt8NA, bool flagCheckEngine=false, bool flagOverTemp=false, bool flagLowOilPress=false, bool flagLowOilLevel=false, bool flagLowFuelPress=false, bool flagLowSystemVoltage=false, bool flagLowCoolantLevel=false, bool flagWaterFlow=false, bool flagWaterInFuel=false, bool flagChargeIndicator=false, bool flagPreheatIndicator=false, bool flagHighBoostPress=false, bool flagRevLimitExceeded=false, bool flagEgrSystem=false, bool flagTPS=false, bool flagEmergencyStopMode=false, bool flagWarning1=false, bool flagWarning2=false, bool flagPowerReduction=false, bool flagMaintenanceNeeded=false, bool flagEngineCommError=false, bool flagSubThrottle=false, bool flagNeutralStartProtect=false, bool flagEngineShuttingDown=false)
 Setting up PGN 127489 Message "Engine parameters dynamic". More...
 
void SetN2kPGN127489 (tN2kMsg &N2kMsg, unsigned char EngineInstance, double EngineOilPress, double EngineOilTemp, double EngineCoolantTemp, double AltenatorVoltage, double FuelRate, double EngineHours, double EngineCoolantPress=N2kDoubleNA, double EngineFuelPress=N2kDoubleNA, int8_t EngineLoad=N2kInt8NA, int8_t EngineTorque=N2kInt8NA, tN2kEngineDiscreteStatus1 Status1=0, tN2kEngineDiscreteStatus2 Status2=0)
 Setting up PGN 127489 Message "Engine parameters dynamic". More...
 
void SetN2kPGN127493 (tN2kMsg &N2kMsg, unsigned char EngineInstance, tN2kTransmissionGear TransmissionGear, double OilPressure, double OilTemperature, unsigned char DiscreteStatus1=0)
 Setting up PGN 127493 Message "Transmission parameters, dynamic". More...
 
void SetN2kPGN127497 (tN2kMsg &N2kMsg, unsigned char EngineInstance, double TripFuelUsed, double FuelRateAverage, double FuelRateEconomy=N2kDoubleNA, double InstantaneousFuelEconomy=N2kDoubleNA)
 Setting up PGN 127497 Message "Trip Parameters, Engine". More...
 
void SetN2kPGN127501 (tN2kMsg &N2kMsg, unsigned char DeviceBankInstance, tN2kBinaryStatus BankStatus)
 Setting up PGN 127501 Message "Universal Binary Status Report". More...
 
void SetN2kPGN127501 (tN2kMsg &N2kMsg, unsigned char DeviceBankInstance, tN2kOnOff Status1, tN2kOnOff Status2=N2kOnOff_Unavailable, tN2kOnOff Status3=N2kOnOff_Unavailable, tN2kOnOff Status4=N2kOnOff_Unavailable)
 Setting up PGN 127501 Message "Universal Binary Status Report". More...
 
void SetN2kPGN127502 (tN2kMsg &N2kMsg, unsigned char TargetBankInstance, tN2kBinaryStatus BankStatus)
 Set up PGN 127502 "Switch Bank Control" message. More...
 
void SetN2kPGN127505 (tN2kMsg &N2kMsg, unsigned char Instance, tN2kFluidType FluidType, double Level, double Capacity)
 Setting up PGN 127505 Message "Fluid level". More...
 
void SetN2kPGN127506 (tN2kMsg &N2kMsg, unsigned char SID, unsigned char DCInstance, tN2kDCType DCType, unsigned char StateOfCharge, unsigned char StateOfHealth, double TimeRemaining, double RippleVoltage=N2kDoubleNA, double Capacity=N2kDoubleNA)
 Setting up PGN 127506 Message "DC Detailed Status". More...
 
void SetN2kPGN127507 (tN2kMsg &N2kMsg, unsigned char Instance, unsigned char BatteryInstance, tN2kChargeState ChargeState, tN2kChargerMode ChargerMode=N2kCM_Standalone, tN2kOnOff Enabled=N2kOnOff_On, tN2kOnOff EqualizationPending=N2kOnOff_Unavailable, double EqualizationTimeRemaining=N2kDoubleNA)
 Setting up PGN 127507 Message "DC Charger Status". More...
 
void SetN2kPGN127508 (tN2kMsg &N2kMsg, unsigned char BatteryInstance, double BatteryVoltage, double BatteryCurrent=N2kDoubleNA, double BatteryTemperature=N2kDoubleNA, unsigned char SID=0xff)
 Setting up PGN 127508 Message "Battery Status". More...
 
void SetN2kPGN127513 (tN2kMsg &N2kMsg, unsigned char BatInstance, tN2kBatType BatType, tN2kBatEqSupport SupportsEqual, tN2kBatNomVolt BatNominalVoltage, tN2kBatChem BatChemistry, double BatCapacity, int8_t BatTemperatureCoefficient, double PeukertExponent, int8_t ChargeEfficiencyFactor)
 Setting up PGN 127513 Message "Battery Configuration Status". More...
 
void SetN2kPGN128000 (tN2kMsg &N2kMsg, unsigned char SID, double Leeway)
 Setting up PGN 128000 Message "Nautical Leeway Angle". More...
 
void SetN2kPGN128259 (tN2kMsg &N2kMsg, unsigned char SID, double WaterReferenced, double GroundReferenced=N2kDoubleNA, tN2kSpeedWaterReferenceType SWRT=N2kSWRT_Paddle_wheel)
 Setting up PGN 128259 Message "Boat Speed, Water Referenced". More...
 
void SetN2kPGN128267 (tN2kMsg &N2kMsg, unsigned char SID, double DepthBelowTransducer, double Offset, double Range=N2kDoubleNA)
 Setting up PGN 128267 Message "Water depth". More...
 
void SetN2kPGN128275 (tN2kMsg &N2kMsg, uint16_t DaysSince1970, double SecondsSinceMidnight, uint32_t Log, uint32_t TripLog)
 Setting up PGN 128275 Message "Distance log". More...
 
void SetN2kPGN128776 (tN2kMsg &N2kMsg, unsigned char SID, unsigned char WindlassIdentifier, tN2kWindlassDirectionControl WindlassDirectionControl, unsigned char SpeedControl, tN2kSpeedType SpeedControlType=N2kDD488_DataNotAvailable, tN2kGenericStatusPair AnchorDockingControl=N2kDD002_Unavailable, tN2kGenericStatusPair PowerEnable=N2kDD002_Unavailable, tN2kGenericStatusPair MechanicalLock=N2kDD002_Unavailable, tN2kGenericStatusPair DeckAndAnchorWash=N2kDD002_Unavailable, tN2kGenericStatusPair AnchorLight=N2kDD002_Unavailable, double CommandTimeout=0.4, const tN2kWindlassControlEvents &WindlassControlEvents=tN2kWindlassControlEvents())
 Setting up PGN 128776 Message "Anchor Windlass Control Status". More...
 
void SetN2kPGN128777 (tN2kMsg &N2kMsg, unsigned char SID, unsigned char WindlassIdentifier, double RodeCounterValue, double WindlassLineSpeed=N2kDoubleNA, tN2kWindlassMotionStates WindlassMotionStatus=N2kDD480_Unavailable, tN2kRodeTypeStates RodeTypeStatus=N2kDD481_Unavailable, tN2kDD482 AnchorDockingStatus=N2kDD482_DataNotAvailable, const tN2kWindlassOperatingEvents &WindlassOperatingEvents=tN2kWindlassOperatingEvents())
 Setting up PGN 128777 Message "Anchor Windlass Operating Status". More...
 
void SetN2kPGN128778 (tN2kMsg &N2kMsg, unsigned char SID, unsigned char WindlassIdentifier, double TotalMotorTime, double ControllerVoltage=N2kDoubleNA, double MotorCurrent=N2kDoubleNA, const tN2kWindlassMonitoringEvents &WindlassMonitoringEvents=tN2kWindlassMonitoringEvents())
 Setting up PGN 128778Message "Anchor Windlass Monitoring Status". More...
 
void SetN2kPGN129025 (tN2kMsg &N2kMsg, double Latitude, double Longitude)
 Setting up PGN 129025 Message "Position, Rapid Update". More...
 
void SetN2kPGN129026 (tN2kMsg &N2kMsg, unsigned char SID, tN2kHeadingReference ref, double COG, double SOG)
 Setting up PGN 129026 Message "COG SOG rapid update". More...
 
void SetN2kPGN129029 (tN2kMsg &N2kMsg, unsigned char SID, uint16_t DaysSince1970, double SecondsSinceMidnight, double Latitude, double Longitude, double Altitude, tN2kGNSStype GNSStype, tN2kGNSSmethod GNSSmethod, unsigned char nSatellites, double HDOP, double PDOP=0, double GeoidalSeparation=0, unsigned char nReferenceStations=0, tN2kGNSStype ReferenceStationType=N2kGNSSt_GPS, uint16_t ReferenceSationID=0, double AgeOfCorrection=0)
 Setting up PGN 129029 Message "GNSS Position Data". More...
 
void SetN2kPGN129033 (tN2kMsg &N2kMsg, uint16_t DaysSince1970, double SecondsSinceMidnight, int16_t LocalOffset)
 Setting up PGN 129033 Message "Date,Time & Local offset". More...
 
void SetN2kPGN129038 (tN2kMsg &N2kMsg, uint8_t MessageID, tN2kAISRepeat Repeat, uint32_t UserID, double Latitude, double Longitude, bool Accuracy, bool RAIM, uint8_t Seconds, double COG, double SOG, tN2kAISTransceiverInformation AISTransceiverInformation, double Heading, double ROT, tN2kAISNavStatus NavStatus)
 Setting up PGN 129038 Message "AIS position reports for Class A". More...
 
void SetN2kPGN129039 (tN2kMsg &N2kMsg, uint8_t MessageID, tN2kAISRepeat Repeat, uint32_t UserID, double Latitude, double Longitude, bool Accuracy, bool RAIM, uint8_t Seconds, double COG, double SOG, tN2kAISTransceiverInformation AISTransceiverInformation, double Heading, tN2kAISUnit Unit, bool Display, bool DSC, bool Band, bool Msg22, tN2kAISMode Mode, bool State, unsigned char SID=0xff)
 Setting up PGN 129039 Message "AIS position reports for Class B". More...
 
void SetN2kPGN129041 (tN2kMsg &N2kMsg, const tN2kAISAtoNReportData &N2kData)
 Setting up PGN 129041 Message "AIS Aids to Navigation (AtoN) Report". More...
 
void SetN2kPGN129283 (tN2kMsg &N2kMsg, unsigned char SID, tN2kXTEMode XTEMode, bool NavigationTerminated, double XTE)
 Setting up PGN 129283 Message "Cross Track Error". More...
 
void SetN2kPGN129284 (tN2kMsg &N2kMsg, unsigned char SID, double DistanceToWaypoint, tN2kHeadingReference BearingReference, bool PerpendicularCrossed, bool ArrivalCircleEntered, tN2kDistanceCalculationType CalculationType, double ETATime, int16_t ETADate, double BearingOriginToDestinationWaypoint, double BearingPositionToDestinationWaypoint, uint32_t OriginWaypointNumber, uint32_t DestinationWaypointNumber, double DestinationLatitude, double DestinationLongitude, double WaypointClosingVelocity)
 Setting up PGN 129284 Message "Navigation Data". More...
 
void SetN2kPGN129285 (tN2kMsg &N2kMsg, uint16_t Start, uint16_t Database, uint16_t Route, bool NavDirection, bool SupplementaryData, char *RouteName)
 Setting up Message "Route/WP information" - PGN 129285 (for backwards compatibility) More...
 
void SetN2kPGN129285 (tN2kMsg &N2kMsg, uint16_t Start, uint16_t Database, uint16_t Route, tN2kNavigationDirection NavDirection, const char *RouteName, tN2kGenericStatusPair SupplementaryData=N2kDD002_No)
 Setting up PGN 129285 Message "Route/WP information". More...
 
void SetN2kPGN129539 (tN2kMsg &N2kMsg, unsigned char SID, tN2kGNSSDOPmode DesiredMode, tN2kGNSSDOPmode ActualMode, double HDOP, double VDOP, double TDOP)
 Setting up PGN 129539 Message "GNSS DOP data". More...
 
void SetN2kPGN129540 (tN2kMsg &N2kMsg, unsigned char SID=0xff, tN2kRangeResidualMode Mode=N2kDD072_Unavailable)
 Setting up PGN 129540 Message "GNSS Satellites in View". More...
 
void SetN2kPGN129794 (tN2kMsg &N2kMsg, uint8_t MessageID, tN2kAISRepeat Repeat, uint32_t UserID, uint32_t IMOnumber, const char *Callsign, const char *Name, uint8_t VesselType, double Length, double Beam, double PosRefStbd, double PosRefBow, uint16_t ETAdate, double ETAtime, double Draught, const char *Destination, tN2kAISVersion AISversion, tN2kGNSStype GNSStype, tN2kAISDTE DTE, tN2kAISTransceiverInformation AISinfo)
 Setting up PGN 129794 Message "AIS static data class A". More...
 
void SetN2kPGN129802 (tN2kMsg &N2kMsg, uint8_t MessageID, tN2kAISRepeat Repeat, uint32_t SourceID, tN2kAISTransceiverInformation AISTransceiverInformation, char *SafetyRelatedText)
 Setting up PGN129802 Message "AIS Safety Related Broadcast Message". More...
 
void SetN2kPGN129809 (tN2kMsg &N2kMsg, uint8_t MessageID, tN2kAISRepeat Repeat, uint32_t UserID, const char *Name)
 Setting up PGN 129809 Message "AIS static data class B part A". More...
 
void SetN2kPGN129810 (tN2kMsg &N2kMsg, uint8_t MessageID, tN2kAISRepeat Repeat, uint32_t UserID, uint8_t VesselType, const char *Vendor, const char *Callsign, double Length, double Beam, double PosRefStbd, double PosRefBow, uint32_t MothershipID)
 Setting up PGN 129810 Message "AIS static data class B part B". More...
 
void SetN2kPGN130074 (tN2kMsg &N2kMsg, uint16_t Start, uint16_t NumWaypoints, uint16_t Database)
 Setting up PGN 130074 Message " Route and WP Service - WP List - WP Name & Position". More...
 
void SetN2kPGN130306 (tN2kMsg &N2kMsg, unsigned char SID, double WindSpeed, double WindAngle, tN2kWindReference WindReference)
 Setting up PGN 130306 Message "Wind Data". More...
 
void SetN2kPGN130310 (tN2kMsg &N2kMsg, unsigned char SID, double WaterTemperature, double OutsideAmbientAirTemperature=N2kDoubleNA, double AtmosphericPressure=N2kDoubleNA)
 Setting up PGN 130310 Message " Environmental Parameters - DEPRECATED". More...
 
void SetN2kPGN130311 (tN2kMsg &N2kMsg, unsigned char SID, tN2kTempSource TempSource, double Temperature, tN2kHumiditySource HumiditySource=N2khs_Undef, double Humidity=N2kDoubleNA, double AtmosphericPressure=N2kDoubleNA)
 Setting up PGN 130311 Message "Environmental Parameters - DEPRECATED". More...
 
void SetN2kPGN130312 (tN2kMsg &N2kMsg, unsigned char SID, unsigned char TempInstance, tN2kTempSource TempSource, double ActualTemperature, double SetTemperature=N2kDoubleNA)
 Setting up PGN 130312 Message "Temperature - DEPRECATED". More...
 
void SetN2kPGN130313 (tN2kMsg &N2kMsg, unsigned char SID, unsigned char HumidityInstance, tN2kHumiditySource HumiditySource, double ActualHumidity, double SetHumidity=N2kDoubleNA)
 Setting up PGN 130313 Message "Humidity". More...
 
void SetN2kPGN130314 (tN2kMsg &N2kMsg, unsigned char SID, unsigned char PressureInstance, tN2kPressureSource PressureSource, double Pressure)
 Setting up PGN 130314 Message "Actual Pressure". More...
 
void SetN2kPGN130315 (tN2kMsg &N2kMsg, unsigned char SID, unsigned char PressureInstance, tN2kPressureSource PressureSource, double SetPressure)
 Setting up PGN 130315 Message "Set Pressure". More...
 
void SetN2kPGN130316 (tN2kMsg &N2kMsg, unsigned char SID, unsigned char TempInstance, tN2kTempSource TempSource, double ActualTemperature, double SetTemperature=N2kDoubleNA)
 Setting up PGN 130316 Message "Temperature, Extended Range". More...
 
void SetN2kPGN130323 (tN2kMsg &N2kMsg, const tN2kMeteorlogicalStationData &N2kData)
 Setting up PGN 130323 Message "Meterological Station Data". More...
 
void SetN2kPGN130576 (tN2kMsg &N2kMsg, int8_t PortTrimTab, int8_t StbdTrimTab)
 Setting up PGN 130576 Message "Trim Tab Status". More...
 
void SetN2kPGN130577 (tN2kMsg &N2kMsg, tN2kDataMode DataMode, tN2kHeadingReference CogReference, unsigned char SID, double COG, double SOG, double Heading, double SpeedThroughWater, double Set, double Drift)
 Setting up PGN 130577 Message "Direction Data". More...
 
void SetN2kPressure (tN2kMsg &N2kMsg, unsigned char SID, unsigned char PressureInstance, tN2kPressureSource PressureSource, double Pressure)
 Setting up Message "Actual Pressure" - PGN 130314. More...
 
void SetN2kRateOfTurn (tN2kMsg &N2kMsg, unsigned char SID, double RateOfTurn)
 Setting up Message "Rate of Turn" - PGN 127251. More...
 
void SetN2kRouteWPInfo (tN2kMsg &N2kMsg, uint16_t Start, uint16_t Database, uint16_t Route, tN2kNavigationDirection NavDirection, const char *RouteName, tN2kGenericStatusPair SupplementaryData=N2kDD002_No)
 Setting up Message "Route/WP information" - PGN 129285. More...
 
void SetN2kRudder (tN2kMsg &N2kMsg, double RudderPosition, unsigned char Instance=0, tN2kRudderDirectionOrder RudderDirectionOrder=N2kRDO_NoDirectionOrder, double AngleOrder=N2kDoubleNA)
 Setting up Message "Rudder" - PGN 127245. More...
 
void SetN2kSetPressure (tN2kMsg &N2kMsg, unsigned char SID, unsigned char PressureInstance, tN2kPressureSource PressureSource, double SetPressure)
 Setting up Message "Set Pressure" - PGN 130315. More...
 
void SetN2kSwitchbankControl (tN2kMsg &N2kMsg, unsigned char TargetBankInstance, tN2kBinaryStatus BankStatus)
 Set up PGN 127502 "Switch Bank Control" message. More...
 
void SetN2kSystemTime (tN2kMsg &N2kMsg, unsigned char SID, uint16_t SystemDate, double SystemTime, tN2kTimeSource TimeSource=N2ktimes_GPS)
 Setting up Message "System date/time" - PGN 126992. More...
 
void SetN2kTemperature (tN2kMsg &N2kMsg, unsigned char SID, unsigned char TempInstance, tN2kTempSource TempSource, double ActualTemperature, double SetTemperature=N2kDoubleNA)
 Setting up Message "Temperature - DEPRECATED" - PGN 130312. More...
 
void SetN2kTemperatureExt (tN2kMsg &N2kMsg, unsigned char SID, unsigned char TempInstance, tN2kTempSource TempSource, double ActualTemperature, double SetTemperature=N2kDoubleNA)
 Setting up Message "Temperature, Extended Range" - PGN 130316. More...
 
void SetN2kTransmissionParameters (tN2kMsg &N2kMsg, unsigned char EngineInstance, tN2kTransmissionGear TransmissionGear, double OilPressure, double OilTemperature, bool flagCheck, bool flagOverTemp, bool flagLowOilPressure=false, bool flagLowOilLevel=false, bool flagSailDrive=false)
 Setting up Message "Transmission parameters, dynamic" - PGN 127493. More...
 
void SetN2kTransmissionParameters (tN2kMsg &N2kMsg, unsigned char EngineInstance, tN2kTransmissionGear TransmissionGear, double OilPressure, double OilTemperature, unsigned char DiscreteStatus1=0)
 Setting up Message "Transmission parameters, dynamic" - PGN 127493. More...
 
void SetN2kTrimTab (tN2kMsg &N2kMsg, int8_t PortTrimTab, int8_t StbdTrimTab)
 Setting up Message "Trim Tab Status" - PGN 130576. More...
 
void SetN2kTrueHeading (tN2kMsg &N2kMsg, unsigned char SID, double Heading)
 Setting up Message "Vessel Heading" - PGN 127250. More...
 
void SetN2kWaterDepth (tN2kMsg &N2kMsg, unsigned char SID, double DepthBelowTransducer, double Offset, double Range=N2kDoubleNA)
 Setting up Message "Water depth" - PGN 128267. More...
 
void SetN2kWaypointList (tN2kMsg &N2kMsg, uint16_t Start, uint16_t NumWaypoints, uint16_t Database)
 Setting up Message "Route and WP Service - WP List - WP Name & Position" - PGN 130074. More...
 
void SetN2kWindSpeed (tN2kMsg &N2kMsg, unsigned char SID, double WindSpeed, double WindAngle, tN2kWindReference WindReference)
 Setting up Message "Wind Data" - PGN 130306. More...
 
void SetN2kXTE (tN2kMsg &N2kMsg, unsigned char SID, tN2kXTEMode XTEMode, bool NavigationTerminated, double XTE)
 Setting up Message "Cross Track Error" - PGN 129283. More...
 

Detailed Description

This File contains all SetXXX functions which will be needed to transfer data with a specific PGN.

This is a collection of functions for handling NMEA2000 bus messages. Library contains functions to e.g. create message named with PGN like SetN2kPGN129025 and alias easy for humans to read like SetN2kLatLonRapid.

Each SetN2kPNGxxx function sets related message PGN and its default priority. The default priority can be different for each PGN. So if you want to change priority on function, you have to do it after Setxxx call.

Each SetN2kPNGxxx function has a corresponding ParsN2kPGNxxx function which can extract the data out of an incoming N2k Message. These functions have as well an inline alias easy for humans to read like ParseN2kPositionRapid.

The content of the PGNs is specified by the NMEA2000 Standard under

If you do not send anything to NMEA2000 bus, you do not need this library. Funtions for BUS handling PGN:s like 60928 "ISO Address Claim" has been defined in bus device library

NMEA2000.h

Definition in file N2kMessages.h.

Typedef Documentation

◆ tN2kBinaryStatus

typedef uint64_t tN2kBinaryStatus

64bit Binary Status value of a full bank status, that can handle up to 28 item states in one value.

See also
ParseN2kPGN127501 or ParseN2kBinaryStatus

Definition at line 1589 of file N2kMessages.h.

Function Documentation

◆ AhToCoulomb()

double AhToCoulomb ( double  v)
inline

Converting a value from AmpereHours to Coulomb.

Parameters
vInput value in [Ah]
Returns
Corresponding value in [C]

Definition at line 137 of file N2kMessages.h.

◆ AppendSatelliteInfo()

bool AppendSatelliteInfo ( tN2kMsg N2kMsg,
const tSatelliteInfo SatelliteInfo 
)
inline

Append a new satellite info to Message "GNSS Satellites in View" - PGN 129540.

Alias of PGN 129540. This alias was introduced to improve the readability of the source code. See parameter details on AppendN2kPGN129540

Definition at line 4196 of file N2kMessages.h.

◆ CoulombToAh()

double CoulombToAh ( double  v)
inline

Converting a value from Coulomb to AmpereHours.

Parameters
vInput value in [C]
Returns
Corresponding value in [Ah]

Definition at line 144 of file N2kMessages.h.

◆ CToKelvin()

double CToKelvin ( double  v)
inline

Converting a value from Celsius to Kelvin.

Parameters
vInput value in [degC]
Returns
Corresponding value in [K]

Definition at line 81 of file N2kMessages.h.

◆ DegToRad()

double DegToRad ( double  v)
inline

Converting a value from Deg to Rad.

Parameters
vInput value in [deg]
Returns
Corresponding value in [rad]

Definition at line 74 of file N2kMessages.h.

◆ FToKelvin()

double FToKelvin ( double  v)
inline

Converting a value from Fahrenheit to Kelvin.

Parameters
vInput value in [degF]
Returns
Corresponding value in [K]

Definition at line 95 of file N2kMessages.h.

◆ hPAToPascal()

double hPAToPascal ( double  v)
inline

Converting a value from HectoPascal to Pascal.

Parameters
vInput value in [hPa]
Returns
Corresponding value in [Pa]

Definition at line 123 of file N2kMessages.h.

◆ hToSeconds()

double hToSeconds ( double  v)
inline

Converting a value from Hours to Seconds.

Parameters
vInput value in [h]
Returns
Corresponding value in [s]

Definition at line 151 of file N2kMessages.h.

◆ KelvinToC()

double KelvinToC ( double  v)
inline

Converting a value from Kelvin to Celsius.

Parameters
vInput value in [K]
Returns
Corresponding value in [degC]

Definition at line 88 of file N2kMessages.h.

◆ KelvinToF()

double KelvinToF ( double  v)
inline

Converting a value from Kelvin to Fahrenheit.

Parameters
vInput value in [F]
Returns
Corresponding value in [degF]

Definition at line 102 of file N2kMessages.h.

◆ KnotsToms()

double KnotsToms ( double  v)
inline

Converting a value from Knots to MeterPerSecond.

Parameters
vInput value in [kn]
Returns
Corresponding value in [mps]

Definition at line 172 of file N2kMessages.h.

◆ mBarToPascal()

double mBarToPascal ( double  v)
inline

Converting a value from Millibar to Pascal.

Parameters
vInput value in [mBar]
Returns
Corresponding value in [Pa]

Definition at line 109 of file N2kMessages.h.

◆ msToKnots()

double msToKnots ( double  v)
inline

Converting a value from MeterPerSecond to Knots.

Parameters
vInput value in [mps]
Returns
Corresponding value in [kn]

Definition at line 165 of file N2kMessages.h.

◆ N2kGetStatusOnBinaryStatus()

tN2kOnOff N2kGetStatusOnBinaryStatus ( tN2kBinaryStatus  BankStatus,
uint8_t  ItemIndex = 1 
)

Get single status to full binary bank status.

This helper function gets a single item statue tN2kOnOff out of a 64bit (8byte) bank status value. The bank status can carry up to 28 individual item states.

Parameters
BankStatus64bit full bank status tN2kBinaryStatus
ItemIndexindex of the item [1 .. 28]
Returns
tN2kOnOff Status of an individual item
See also
ParseN2kPGN127501 or ParseN2kBinaryStatus

Definition at line 560 of file N2kMessages.cpp.

◆ N2kResetBinaryStatus()

void N2kResetBinaryStatus ( tN2kBinaryStatus BankStatus)
inline

Reset all single binary status values to not available.

This helper function resets the full 64bit bank status. For each individual item the status will be 3 (0b11 - Unavailable tN2kOnOff)

Parameters
BankStatus64bit full bank status tN2kBinaryStatus

Definition at line 1616 of file N2kMessages.h.

◆ N2kSetStatusBinaryOnStatus()

void N2kSetStatusBinaryOnStatus ( tN2kBinaryStatus BankStatus,
tN2kOnOff  ItemStatus,
uint8_t  ItemIndex = 1 
)

Set single status to full binary bank status.

This helper function sets a single item statue tN2kOnOff in a 64bit (8byte) bank status value. The bank status can carry up to 28 individual item states.

Parameters
BankStatus64bit full bank status tN2kBinaryStatus
ItemStatusindividual item status
ItemIndexindex of the item [1 .. 28]

Definition at line 568 of file N2kMessages.cpp.

◆ ParseN2kCOGSOGRapid()

bool ParseN2kCOGSOGRapid ( const tN2kMsg N2kMsg,
unsigned char &  SID,
tN2kHeadingReference ref,
double &  COG,
double &  SOG 
)
inline

Parsing the content of a "COG SOG Rapid Update" message - PGN 129026.

Alias of PGN 129026. This alias was introduced to improve the readability of the source code. See parameter details on ParseN2kPGN129026

Definition at line 3015 of file N2kMessages.h.

◆ PascalTohPA()

double PascalTohPA ( double  v)
inline

Converting a value from Pascal to HectoPascal.

Parameters
vInput value in [Pa]
Returns
Corresponding value in [hPa]

Definition at line 130 of file N2kMessages.h.

◆ PascalTomBar()

double PascalTomBar ( double  v)
inline

Converting a value from Pascal to Millibar.

Parameters
vInput value in [Pa]
Returns
Corresponding value in [mBar]

Definition at line 116 of file N2kMessages.h.

◆ RadToDeg()

double RadToDeg ( double  v)
inline

Converting a value from Rad to Deg.

Parameters
vInput value in [rad]
Returns
Corresponding value in [deg]

Definition at line 67 of file N2kMessages.h.

◆ SecondsToh()

double SecondsToh ( double  v)
inline

Converting a value from Seconds to Hours.

Parameters
vInput value in [s]
Returns
Corresponding value in [h]

Definition at line 158 of file N2kMessages.h.