54#ifndef _N2kMessages_H_
55#define _N2kMessages_H_
67inline double RadToDeg(
double v) {
return N2kIsNA(v)?v:v*180.0/3.1415926535897932384626433832795L; }
74inline double DegToRad(
double v) {
return N2kIsNA(v)?v:v/180.0*3.1415926535897932384626433832795L; }
165inline double msToKnots(
double v) {
return N2kIsNA(v)?v:v*1.9438444924406047516198704103672L; }
172inline double KnotsToms(
double v) {
return N2kIsNA(v)?v:v*0.51444444444444444444444444444444L; }
278 SetN2kPGN129802(N2kMsg, MessageID, Repeat, SourceID, AISTransceiverInformation, SafetyRelatedText);
320 return ParseN2kPGN129802(N2kMsg, MessageID, Repeat, SourceID, AISTransceiverInformation, SafetyRelatedText, SafetyRelatedTextMaxSize);
357 uint32_t MobEmitterId,
359 double ActivationTime,
361 uint16_t PositionDate,
381 uint32_t MobEmitterId,
383 double ActivationTime,
385 uint16_t PositionDate,
394 SetN2kPGN127233(N2kMsg,SID,MobEmitterId,MOBStatus,ActivationTime,PositionSource,PositionDate,PositionTime,Latitude,Longitude,COGReference,COG,SOG,MMSI,MOBEmitterBatteryStatus);
430 uint32_t &MobEmitterId,
432 double &ActivationTime,
434 uint16_t &PositionDate,
435 double &PositionTime,
454 uint32_t &MobEmitterId,
456 double &ActivationTime,
458 uint16_t &PositionDate,
459 double &PositionTime,
467 return ParseN2kPGN127233(N2kMsg,SID,MobEmitterId,MOBStatus,ActivationTime,PositionSource,PositionDate,PositionTime,Latitude,Longitude,COGReference,COG,SOG,MMSI,MOBEmitterBatteryStatus);
508 double CommandedRudderAngle,
509 double HeadingToSteerCourse,
512 double OffHeadingLimit,
513 double RadiusOfTurnOrder,
514 double RateOfTurnOrder,
515 double OffTrackLimit,
516 double VesselHeading);
535 double CommandedRudderAngle,
536 double HeadingToSteerCourse,
539 double OffHeadingLimit,
540 double RadiusOfTurnOrder,
541 double RateOfTurnOrder,
542 double OffTrackLimit,
543 double VesselHeading) {
544 SetN2kPGN127237(N2kMsg, RudderLimitExceeded,OffHeadingLimitExceeded,OffTrackLimitExceeded,Override,SteeringMode,TurnMode,
545 HeadingReference,CommandedRudderDirection,CommandedRudderAngle,HeadingToSteerCourse,Track,RudderLimit,OffHeadingLimit,
546 RadiusOfTurnOrder,RateOfTurnOrder,OffTrackLimit,VesselHeading);
589 double &CommandedRudderAngle,
590 double &HeadingToSteerCourse,
593 double &OffHeadingLimit,
594 double &RadiusOfTurnOrder,
595 double &RateOfTurnOrder,
596 double &OffTrackLimit,
597 double &VesselHeading);
616 double &CommandedRudderAngle,
617 double &HeadingToSteerCourse,
620 double &OffHeadingLimit,
621 double &RadiusOfTurnOrder,
622 double &RateOfTurnOrder,
623 double &OffTrackLimit,
624 double &VesselHeading)
626 return ParseN2kPGN127237(N2kMsg,RudderLimitExceeded,OffHeadingLimitExceeded,OffTrackLimitExceeded,Override,SteeringMode,
627 TurnMode,HeadingReference,CommandedRudderDirection, CommandedRudderAngle,HeadingToSteerCourse,Track,RudderLimit,
628 OffHeadingLimit,RadiusOfTurnOrder,RateOfTurnOrder,OffTrackLimit,VesselHeading);
659 SetN2kPGN127245(N2kMsg,RudderPosition,Instance,RudderDirectionOrder,AngleOrder);
693 return ParseN2kPGN127245(N2kMsg,RudderPosition,Instance,RudderDirectionOrder,AngleOrder);
707 unsigned char Instance;
708 return ParseN2kPGN127245(N2kMsg,RudderPosition,Instance,RudderDirectionOrder,AngleOrder);
1089 SetN2kPGN127488(N2kMsg,EngineInstance,EngineSpeed,EngineBoostPressure,EngineTiltTrim);
1110 double &EngineBoostPressure, int8_t &EngineTiltTrim);
1121 double &EngineBoostPressure, int8_t &EngineTiltTrim) {
1122 return ParseN2kPGN127488(N2kMsg,EngineInstance,EngineSpeed,EngineBoostPressure,EngineTiltTrim);
1153void SetN2kPGN127489(
tN2kMsg &N2kMsg,
unsigned char EngineInstance,
double EngineOilPress,
double EngineOilTemp,
double EngineCoolantTemp,
double AltenatorVoltage,
1154 double FuelRate,
double EngineHours,
double EngineCoolantPress=
N2kDoubleNA,
double EngineFuelPress=
N2kDoubleNA,
1165inline void SetN2kEngineDynamicParam(
tN2kMsg &N2kMsg,
unsigned char EngineInstance,
double EngineOilPress,
double EngineOilTemp,
double EngineCoolantTemp,
double AltenatorVoltage,
1166 double FuelRate,
double EngineHours,
double EngineCoolantPress=
N2kDoubleNA,
double EngineFuelPress=
N2kDoubleNA,
1169 SetN2kPGN127489(N2kMsg,EngineInstance, EngineOilPress, EngineOilTemp, EngineCoolantTemp, AltenatorVoltage,
1170 FuelRate, EngineHours, EngineCoolantPress, EngineFuelPress, EngineLoad, EngineTorque,
1221inline void SetN2kPGN127489(
tN2kMsg &N2kMsg,
unsigned char EngineInstance,
double EngineOilPress,
double EngineOilTemp,
double EngineCoolantTemp,
double AltenatorVoltage,
1222 double FuelRate,
double EngineHours,
double EngineCoolantPress=
N2kDoubleNA,
double EngineFuelPress=
N2kDoubleNA,
1224 bool flagCheckEngine=
false,
bool flagOverTemp=
false,
bool flagLowOilPress=
false,
bool flagLowOilLevel=
false,
1225 bool flagLowFuelPress=
false,
bool flagLowSystemVoltage=
false,
bool flagLowCoolantLevel=
false,
bool flagWaterFlow=
false,
1226 bool flagWaterInFuel=
false,
bool flagChargeIndicator=
false,
bool flagPreheatIndicator=
false,
bool flagHighBoostPress=
false,
1227 bool flagRevLimitExceeded=
false,
bool flagEgrSystem=
false,
bool flagTPS=
false,
bool flagEmergencyStopMode=
false,
1228 bool flagWarning1=
false,
bool flagWarning2=
false,
bool flagPowerReduction=
false,
bool flagMaintenanceNeeded=
false,
1229 bool flagEngineCommError=
false,
bool flagSubThrottle=
false,
bool flagNeutralStartProtect=
false,
bool flagEngineShuttingDown=
false) {
1257 SetN2kPGN127489(N2kMsg,EngineInstance, EngineOilPress, EngineOilTemp, EngineCoolantTemp, AltenatorVoltage,
1258 FuelRate, EngineHours, EngineCoolantPress, EngineFuelPress, EngineLoad, EngineTorque,
1269inline void SetN2kEngineDynamicParam(
tN2kMsg &N2kMsg,
unsigned char EngineInstance,
double EngineOilPress,
double EngineOilTemp,
double EngineCoolantTemp,
double AltenatorVoltage,
1270 double FuelRate,
double EngineHours,
double EngineCoolantPress=
N2kDoubleNA,
double EngineFuelPress=
N2kDoubleNA,
1272 bool flagCheckEngine=
false,
bool flagOverTemp=
false,
bool flagLowOilPress=
false,
bool flagLowOilLevel=
false,
1273 bool flagLowFuelPress=
false,
bool flagLowSystemVoltage=
false,
bool flagLowCoolantLevel=
false,
bool flagWaterFlow=
false,
1274 bool flagWaterInFuel=
false,
bool flagChargeIndicator=
false,
bool flagPreheatIndicator=
false,
bool flagHighBoostPress=
false,
1275 bool flagRevLimitExceeded=
false,
bool flagEgrSystem=
false,
bool flagTPS=
false,
bool flagEmergencyStopMode=
false,
1276 bool flagWarning1=
false,
bool flagWarning2=
false,
bool flagPowerReduction=
false,
bool flagMaintenanceNeeded=
false,
1277 bool flagEngineCommError=
false,
bool flagSubThrottle=
false,
bool flagNeutralStartProtect=
false,
bool flagEngineShuttingDown=
false) {
1278 SetN2kPGN127489(N2kMsg,EngineInstance, EngineOilPress, EngineOilTemp, EngineCoolantTemp, AltenatorVoltage,
1279 FuelRate, EngineHours, EngineCoolantPress, EngineFuelPress, EngineLoad, EngineTorque,
1280 flagCheckEngine, flagOverTemp, flagLowOilPress, flagLowOilLevel,
1281 flagLowFuelPress, flagLowSystemVoltage, flagLowCoolantLevel, flagWaterFlow,
1282 flagWaterInFuel, flagChargeIndicator, flagPreheatIndicator, flagHighBoostPress,
1283 flagRevLimitExceeded, flagEgrSystem, flagTPS, flagEmergencyStopMode,
1284 flagWarning1, flagWarning2, flagPowerReduction, flagMaintenanceNeeded,
1285 flagEngineCommError, flagSubThrottle, flagNeutralStartProtect, flagEngineShuttingDown);
1318 double &EngineOilTemp,
double &EngineCoolantTemp,
double &AltenatorVoltage,
1319 double &FuelRate,
double &EngineHours,
double &EngineCoolantPress,
double &EngineFuelPress,
1320 int8_t &EngineLoad, int8_t &EngineTorque,
1332 double &EngineOilTemp,
double &EngineCoolantTemp,
double &AltenatorVoltage,
1333 double &FuelRate,
double &EngineHours,
double &EngineCoolantPress,
double &EngineFuelPress,
1334 int8_t &EngineLoad, int8_t &EngineTorque) {
1338 EngineOilTemp, EngineCoolantTemp, AltenatorVoltage,
1339 FuelRate, EngineHours,EngineCoolantPress, EngineFuelPress,
1340 EngineLoad, EngineTorque,Status1,Status2);
1352 double &EngineOilTemp,
double &EngineCoolantTemp,
double &AltenatorVoltage,
1353 double &FuelRate,
double &EngineHours,
double &EngineCoolantPress,
double &EngineFuelPress,
1354 int8_t &EngineLoad, int8_t &EngineTorque) {
1356 EngineOilTemp, EngineCoolantTemp, AltenatorVoltage,
1357 FuelRate, EngineHours,EngineCoolantPress, EngineFuelPress,
1358 EngineLoad, EngineTorque);
1370 double &EngineOilTemp,
double &EngineCoolantTemp,
double &AltenatorVoltage,
1371 double &FuelRate,
double &EngineHours,
double &EngineCoolantPress,
double &EngineFuelPress,
1372 int8_t &EngineLoad, int8_t &EngineTorque,
1375 EngineOilTemp, EngineCoolantTemp, AltenatorVoltage,
1376 FuelRate, EngineHours,EngineCoolantPress, EngineFuelPress,
1377 EngineLoad, EngineTorque,
1390 double &EngineOilTemp,
double &EngineCoolantTemp,
double &AltenatorVoltage,
1391 double &FuelRate,
double &EngineHours) {
1392 double EngineCoolantPress, EngineFuelPress;
1393 int8_t EngineLoad, EngineTorque;
1397 EngineOilTemp, EngineCoolantTemp, AltenatorVoltage,
1398 FuelRate, EngineHours,EngineCoolantPress, EngineFuelPress,
1399 EngineLoad, EngineTorque,Status1,Status2);
1421 double OilPressure,
double OilTemperature,
unsigned char DiscreteStatus1=0);
1431 double OilPressure,
double OilTemperature,
unsigned char DiscreteStatus1=0) {
1432 SetN2kPGN127493(N2kMsg, EngineInstance, TransmissionGear, OilPressure, OilTemperature, DiscreteStatus1);
1443 double OilPressure,
double OilTemperature,
1444 bool flagCheck,
bool flagOverTemp,
bool flagLowOilPressure=
false,
bool flagLowOilLevel=
false,
1445 bool flagSailDrive=
false) {
1446 unsigned char DiscreteStatus1=0;
1448 if (flagCheck) DiscreteStatus1 |=
BIT(0);
1449 if (flagOverTemp) DiscreteStatus1 |=
BIT(1);
1450 if (flagLowOilPressure) DiscreteStatus1 |=
BIT(2);
1451 if (flagLowOilLevel) DiscreteStatus1 |=
BIT(3);
1452 if (flagSailDrive) DiscreteStatus1 |=
BIT(4);
1453 SetN2kPGN127493(N2kMsg, EngineInstance, TransmissionGear, OilPressure, OilTemperature,DiscreteStatus1);
1477 double &OilPressure,
double &OilTemperature,
unsigned char &DiscreteStatus1);
1488 double &OilPressure,
double &OilTemperature,
unsigned char &DiscreteStatus1) {
1489 return ParseN2kPGN127493(N2kMsg, EngineInstance, TransmissionGear, OilPressure, OilTemperature, DiscreteStatus1);
1501 double &OilPressure,
double &OilTemperature,
1502 bool &flagCheck,
bool &flagOverTemp,
bool &flagLowOilPressure,
bool &flagLowOilLevel,
1503 bool &flagSailDrive) {
1504 unsigned char DiscreteStatus1;
1505 bool ret=
ParseN2kPGN127493(N2kMsg, EngineInstance, TransmissionGear, OilPressure, OilTemperature, DiscreteStatus1);
1507 flagCheck = ((DiscreteStatus1 &
BIT(0))!=0);
1508 flagOverTemp = ((DiscreteStatus1 &
BIT(1))!=0);
1509 flagLowOilPressure = ((DiscreteStatus1 &
BIT(2))!=0);
1510 flagLowOilLevel = ((DiscreteStatus1 &
BIT(3))!=0);
1511 flagSailDrive = ((DiscreteStatus1 &
BIT(4))!=0);
1532 double FuelRateAverage,
1543 double FuelRateAverage,
1545 SetN2kPGN127497(N2kMsg,EngineInstance,TripFuelUsed,FuelRateAverage,FuelRateEconomy,InstantaneousFuelEconomy);
1566 double &FuelRateAverage,
1567 double &FuelRateEconomy,
double &InstantaneousFuelEconomy);
1578 double &FuelRateAverage,
1579 double &FuelRateEconomy,
double &InstantaneousFuelEconomy) {
1580 return ParseN2kPGN127497(N2kMsg,EngineInstance,TripFuelUsed,FuelRateAverage,FuelRateEconomy, InstantaneousFuelEconomy);
1699 SetN2kPGN127501(N2kMsg, DeviceBankInstance,Status1,Status2,Status3,Status4);
1747 return ParseN2kPGN127501(N2kMsg,DeviceBankInstance,Status1,Status2,Status3,Status4);
1958 unsigned char StateOfCharge,
unsigned char StateOfHealth,
double TimeRemaining,
double RippleVoltage=
N2kDoubleNA,
double Capacity=
N2kDoubleNA);
1968 unsigned char StateOfCharge,
unsigned char StateOfHealth,
double TimeRemaining,
double RippleVoltage=
N2kDoubleNA,
double Capacity=
N2kDoubleNA) {
1969 SetN2kPGN127506(N2kMsg,SID,DCInstance,DCType,StateOfCharge,StateOfHealth,TimeRemaining,RippleVoltage,Capacity);
1996 unsigned char &StateOfCharge,
unsigned char &StateOfHealth,
double &TimeRemaining,
double &RippleVoltage,
double &Capacity);
2007 unsigned char &StateOfCharge,
unsigned char &StateOfHealth,
double &TimeRemaining,
double &RippleVoltage,
double &Capacity) {
2008 return ParseN2kPGN127506(N2kMsg,SID,DCInstance,DCType,StateOfCharge,StateOfHealth,TimeRemaining,RippleVoltage, Capacity);
2043 SetN2kPGN127507(N2kMsg, Instance,BatteryInstance,ChargeState,ChargerMode,Enabled,EqualizationPending,EqualizationTimeRemaining);
2069 tN2kOnOff &Enabled,
tN2kOnOff &EqualizationPending,
double &EqualizationTimeRemaining);
2081 tN2kOnOff &Enabled,
tN2kOnOff &EqualizationPending,
double &EqualizationTimeRemaining) {
2082 return ParseN2kPGN127507(N2kMsg, Instance,BatteryInstance,ChargeState,ChargerMode,Enabled,EqualizationPending,EqualizationTimeRemaining);
2107 double BatteryTemperature=
N2kDoubleNA,
unsigned char SID=0xff);
2117 double BatteryTemperature=
N2kDoubleNA,
unsigned char SID=1) {
2118 SetN2kPGN127508(N2kMsg,BatteryInstance,BatteryVoltage,BatteryCurrent,BatteryTemperature,SID);
2143bool ParseN2kPGN127508(
const tN2kMsg &N2kMsg,
unsigned char &BatteryInstance,
double &BatteryVoltage,
double &BatteryCurrent,
2144 double &BatteryTemperature,
unsigned char &SID);
2155 double &BatteryTemperature,
unsigned char &SID) {
2156 return ParseN2kPGN127508(N2kMsg, BatteryInstance, BatteryVoltage, BatteryCurrent, BatteryTemperature, SID);
2181 double PeukertExponent, int8_t ChargeEfficiencyFactor);
2192 double PeukertExponent, int8_t ChargeEfficiencyFactor) {
2193 SetN2kPGN127513(N2kMsg,BatInstance,BatType,SupportsEqual,BatNominalVoltage,BatChemistry,BatCapacity,BatTemperatureCoefficient,
2194 PeukertExponent,ChargeEfficiencyFactor);
2222 double &PeukertExponent, int8_t &ChargeEfficiencyFactor);
2234 double &PeukertExponent, int8_t &ChargeEfficiencyFactor) {
2235 return ParseN2kPGN127513(N2kMsg,BatInstance,BatType,SupportsEqual,BatNominalVoltage,BatChemistry,BatCapacity,BatTemperatureCoefficient,
2236 PeukertExponent,ChargeEfficiencyFactor);
2456bool ParseN2kPGN128267(
const tN2kMsg &N2kMsg,
unsigned char &SID,
double &DepthBelowTransducer,
double &Offset,
double &Range);
2503void SetN2kPGN128275(
tN2kMsg &N2kMsg, uint16_t DaysSince1970,
double SecondsSinceMidnight, uint32_t Log, uint32_t TripLog);
2513 SetN2kPGN128275(N2kMsg,DaysSince1970,SecondsSinceMidnight,Log,TripLog);
2538bool ParseN2kPGN128275(
const tN2kMsg &N2kMsg, uint16_t &DaysSince1970,
double &SecondsSinceMidnight, uint32_t &Log, uint32_t &TripLog);
2549 return ParseN2kPGN128275(N2kMsg,DaysSince1970,SecondsSinceMidnight,Log,TripLog);
2602 unsigned char WindlassIdentifier,
2604 unsigned char SpeedControl,
2611 double CommandTimeout = 0.4,
2665 unsigned char &WindlassIdentifier,
2667 unsigned char &SpeedControl,
2674 double &CommandTimeout,
2725 unsigned char WindlassIdentifier,
2726 double RodeCounterValue,
2781 unsigned char &WindlassIdentifier,
2782 double &RodeCounterValue,
2783 double &WindlassLineSpeed,
2834 unsigned char WindlassIdentifier,
2835 double TotalMotorTime,
2886 unsigned char &WindlassIdentifier,
2887 double &TotalMotorTime,
2888 double &ControllerVoltage,
2889 double &MotorCurrent,
3050void SetN2kPGN129029(
tN2kMsg &N2kMsg,
unsigned char SID, uint16_t DaysSince1970,
double SecondsSinceMidnight,
3051 double Latitude,
double Longitude,
double Altitude,
3053 unsigned char nSatellites,
double HDOP,
double PDOP=0,
double GeoidalSeparation=0,
3055 double AgeOfCorrection=0
3065inline void SetN2kGNSS(
tN2kMsg &N2kMsg,
unsigned char SID, uint16_t DaysSince1970,
double SecondsSinceMidnight,
3066 double Latitude,
double Longitude,
double Altitude,
3068 unsigned char nSatellites,
double HDOP,
double PDOP=0,
double GeoidalSeparation=0,
3070 double AgeOfCorrection=0
3073 Latitude,Longitude,Altitude,
3074 GNSStype,GNSSmethod,
3075 nSatellites,HDOP,PDOP,GeoidalSeparation,
3076 nReferenceStations,ReferenceStationType,ReferenceSationID,
3115 double &Latitude,
double &Longitude,
double &Altitude,
3117 unsigned char &nSatellites,
double &HDOP,
double &PDOP,
double &GeoidalSeparation,
3118 unsigned char &nReferenceStations,
tN2kGNSStype &ReferenceStationType, uint16_t &ReferenceSationID,
3119 double &AgeOfCorrection
3130inline bool ParseN2kGNSS(
const tN2kMsg &N2kMsg,
unsigned char &SID, uint16_t &DaysSince1970,
double &SecondsSinceMidnight,
3131 double &Latitude,
double &Longitude,
double &Altitude,
3133 unsigned char &nSatellites,
double &HDOP,
double &PDOP,
double &GeoidalSeparation,
3134 unsigned char &nReferenceStations,
tN2kGNSStype &ReferenceStationType, uint16_t &ReferenceSationID,
3135 double &AgeOfCorrection
3138 Latitude, Longitude, Altitude,
3139 GNSStype, GNSSmethod,
3140 nSatellites, HDOP, PDOP, GeoidalSeparation,
3141 nReferenceStations, ReferenceStationType, ReferenceSationID,
3164void SetN2kPGN129033(
tN2kMsg &N2kMsg, uint16_t DaysSince1970,
double SecondsSinceMidnight, int16_t LocalOffset);
3174 SetN2kPGN129033(N2kMsg,DaysSince1970,SecondsSinceMidnight,LocalOffset);
3198bool ParseN2kPGN129033(
const tN2kMsg &N2kMsg, uint16_t &DaysSince1970,
double &SecondsSinceMidnight, int16_t &LocalOffset);
3209 return ParseN2kPGN129033(N2kMsg,DaysSince1970,SecondsSinceMidnight,LocalOffset);
3257 double Latitude,
double Longitude,
bool Accuracy,
bool RAIM,
3268 double Latitude,
double Longitude,
bool Accuracy,
bool RAIM,
3271 SetN2kPGN129038(N2kMsg, MessageID, Repeat, UserID, Latitude, Longitude,
3272 Accuracy, RAIM, Seconds, COG, SOG, AISTransceiverInformation, Heading, ROT, NavStatus);
3323 bool &Accuracy,
bool &RAIM, uint8_t &Seconds,
double &COG,
double &SOG,
double &Heading,
double &ROT,
tN2kAISNavStatus &NavStatus);
3334 bool &Accuracy,
bool &RAIM, uint8_t &Seconds,
double &COG,
double &SOG,
double &Heading,
double &ROT,
tN2kAISNavStatus & NavStatus) {
3335 return ParseN2kPGN129038(N2kMsg, MessageID, Repeat, UserID, Latitude, Longitude, Accuracy, RAIM, Seconds, COG, SOG, Heading, ROT, NavStatus);
3411 double Latitude,
double Longitude,
bool Accuracy,
bool RAIM,
3414 bool State,
unsigned char SID=0xff);
3425 double Latitude,
double Longitude,
bool Accuracy,
bool RAIM,
3428 bool State,
unsigned char SID=0xff) {
3429 SetN2kPGN129039(N2kMsg, MessageID, Repeat, UserID, Latitude, Longitude, Accuracy, RAIM, Seconds,
3430 COG, SOG, AISTransceiverInformation, Heading, Unit, Display, DSC, Band, Msg22, Mode, State, SID);
3445 double Latitude,
double Longitude,
bool Accuracy,
bool RAIM,
3446 uint8_t Seconds,
double COG,
double SOG,
double Heading,
tN2kAISUnit Unit,
3447 bool Display,
bool DSC,
bool Band,
bool Msg22,
tN2kAISMode Mode,
bool State) {
3448 SetN2kPGN129039(N2kMsg, MessageID, Repeat, UserID, Latitude, Longitude, Accuracy, RAIM, Seconds,
3449 COG, SOG,
N2kaischannel_A_VDL_reception, Heading, Unit, Display, DSC, Band, Msg22, Mode, State);
3525 double &Latitude,
double &Longitude,
bool &Accuracy,
bool &RAIM, uint8_t &Seconds,
double &COG,
3540 double &Latitude,
double &Longitude,
bool &Accuracy,
bool &RAIM,
3542 double &Heading,
tN2kAISUnit &Unit,
bool &Display,
bool &DSC,
bool &Band,
bool &Msg22,
tN2kAISMode &Mode,
3544 return ParseN2kPGN129039(N2kMsg, MessageID, Repeat, UserID, Latitude, Longitude, Accuracy, RAIM, Seconds, COG, SOG, AISTransceiverInformation, Heading, Unit, Display, DSC, Band, Msg22, Mode, State);
3559 double &Latitude,
double &Longitude,
bool &Accuracy,
bool &RAIM,
3560 uint8_t &Seconds,
double &COG,
double &SOG,
double &Heading,
tN2kAISUnit &Unit,
3561 bool &Display,
bool &DSC,
bool &Band,
bool &Msg22,
tN2kAISMode &Mode,
bool &State) {
3563 return ParseN2kPGN129039(N2kMsg, MessageID, Repeat, UserID, Latitude, Longitude, Accuracy,
3564 RAIM, Seconds, COG, SOG, AISTransceiverInformation, Heading, Unit, Display, DSC, Band, Msg22, Mode, State);
3879 double ETATime, int16_t ETADate,
double BearingOriginToDestinationWaypoint,
double BearingPositionToDestinationWaypoint,
3880 uint32_t OriginWaypointNumber, uint32_t DestinationWaypointNumber,
3881 double DestinationLatitude,
double DestinationLongitude,
double WaypointClosingVelocity);
3892 double ETATime, int16_t ETADate,
double BearingOriginToDestinationWaypoint,
double BearingPositionToDestinationWaypoint,
3893 uint32_t OriginWaypointNumber, uint32_t DestinationWaypointNumber,
3894 double DestinationLatitude,
double DestinationLongitude,
double WaypointClosingVelocity) {
3896 PerpendicularCrossed, ArrivalCircleEntered, CalculationType,
3897 ETATime, ETADate, BearingOriginToDestinationWaypoint, BearingPositionToDestinationWaypoint,
3898 OriginWaypointNumber, DestinationWaypointNumber,
3899 DestinationLatitude, DestinationLongitude, WaypointClosingVelocity);
3939 double& ETATime, int16_t& ETADate,
double& BearingOriginToDestinationWaypoint,
double& BearingPositionToDestinationWaypoint,
3940 uint32_t& OriginWaypointNumber, uint32_t& DestinationWaypointNumber,
3941 double& DestinationLatitude,
double& DestinationLongitude,
double& WaypointClosingVelocity);
3954 double& ETATime, int16_t& ETADate,
double& BearingOriginToDestinationWaypoint,
double& BearingPositionToDestinationWaypoint,
3955 uint32_t& OriginWaypointNumber, uint32_t& DestinationWaypointNumber,
3956 double& DestinationLatitude,
double& DestinationLongitude,
double& WaypointClosingVelocity) {
3957 return ParseN2kPGN129284(N2kMsg, SID, DistanceToWaypoint, BearingReference, PerpendicularCrossed, ArrivalCircleEntered, CalculationType,
3958 ETATime, ETADate, BearingOriginToDestinationWaypoint, BearingPositionToDestinationWaypoint,
3959 OriginWaypointNumber, DestinationWaypointNumber, DestinationLatitude, DestinationLongitude, WaypointClosingVelocity);
3993 SetN2kPGN129285(N2kMsg, Start, Database, Route, NavDirection, RouteName, SupplementaryData);
4005 bool NavDirection,
bool SupplementaryData,
char* RouteName)
4009 SetN2kPGN129285(N2kMsg, Start, Database, Route, NavDirection1, RouteName, N2kSupplementaryData);
4067 double HDOP,
double VDOP,
double TDOP);
4077 double HDOP,
double VDOP,
double TDOP)
4079 SetN2kPGN129539(N2kMsg, SID, DesiredMode, ActualMode, HDOP, VDOP, TDOP);
4105 double& HDOP,
double& VDOP,
double& TDOP);
4116 double& HDOP,
double& VDOP,
double& TDOP)
4118 return ParseN2kPgn129539(N2kMsg, SID, DesiredMode, ActualMode, HDOP, VDOP, TDOP);
4322 uint32_t IMOnumber,
const char *Callsign,
const char *Name, uint8_t VesselType,
double Length,
4323 double Beam,
double PosRefStbd,
double PosRefBow, uint16_t ETAdate,
double ETAtime,
4335 uint32_t IMOnumber,
const char *Callsign,
const char *Name, uint8_t VesselType,
double Length,
4336 double Beam,
double PosRefStbd,
double PosRefBow, uint16_t ETAdate,
double ETAtime,
4339 SetN2kPGN129794(N2kMsg, MessageID, Repeat, UserID, IMOnumber, Callsign, Name, VesselType, Length,
4340 Beam, PosRefStbd, PosRefBow, ETAdate, ETAtime, Draught, Destination, AISversion, GNSStype, DTE, AISinfo);
4401 uint32_t &IMOnumber,
char *Callsign,
size_t CallsignBufSize,
char *Name,
size_t NameBufSize, uint8_t &VesselType,
double &Length,
4402 double &Beam,
double &PosRefStbd,
double &PosRefBow, uint16_t &ETAdate,
double &ETAtime,
4415 uint32_t & IMOnumber,
char *Callsign,
size_t CallsignBufSize,
char *Name,
size_t NameBufSize, uint8_t &VesselType,
double &Length,
4416 double &Beam,
double &PosRefStbd,
double &PosRefBow, uint16_t &ETAdate,
double &ETAtime,
4419 return ParseN2kPGN129794(N2kMsg, MessageID, Repeat, UserID, IMOnumber, Callsign, CallsignBufSize, Name, NameBufSize, VesselType, Length,
4420 Beam, PosRefStbd, PosRefBow, ETAdate, ETAtime, Draught, Destination, DestinationBufSize,AISversion,
4421 GNSStype, DTE, AISinfo);
4541 uint8_t VesselType,
const char *Vendor,
const char *Callsign,
double Length,
double Beam,
4542 double PosRefStbd,
double PosRefBow, uint32_t MothershipID);
4552 uint8_t VesselType,
const char *Vendor,
const char *Callsign,
double Length,
double Beam,
4553 double PosRefStbd,
double PosRefBow, uint32_t MothershipID) {
4554 SetN2kPGN129810(N2kMsg, MessageID, Repeat, UserID, VesselType, Vendor, Callsign, Length, Beam,
4555 PosRefStbd, PosRefBow, MothershipID);
4599 uint8_t &VesselType,
const char *Vendor,
size_t VendorBufSize,
const char *Callsign,
size_t CallsignBufSize,
double &Length,
double &Beam,
4600 double &PosRefStbd,
double &PosRefBow, uint32_t &MothershipID);
4611 uint8_t &VesselType,
char *Vendor,
size_t VendorBufSize,
char *Callsign,
size_t CallsignBufSize,
double &Length,
double &Beam,
4612 double &PosRefStbd,
double &PosRefBow, uint32_t &MothershipID) {
4613 return ParseN2kPGN129810(N2kMsg, MessageID, Repeat, UserID, VesselType, Vendor, VendorBufSize, Callsign, CallsignBufSize,
4614 Length, Beam, PosRefStbd, PosRefBow, MothershipID);
4795 SetN2kPGN130310(N2kMsg,SID,WaterTemperature,OutsideAmbientAirTemperature,AtmosphericPressure);
4823 double &OutsideAmbientAirTemperature,
double &AtmosphericPressure);
4834 double &OutsideAmbientAirTemperature,
double &AtmosphericPressure) {
4835 return ParseN2kPGN130310(N2kMsg, SID,WaterTemperature,OutsideAmbientAirTemperature,AtmosphericPressure);
4878 SetN2kPGN130311(N2kMsg,SID,TempSource,Temperature,HumiditySource,Humidity,AtmosphericPressure);
4922 return ParseN2kPGN130311(N2kMsg,SID,TempSource,Temperature,HumiditySource,Humidity,AtmosphericPressure);
4953 double ActualTemperature,
double SetTemperature=
N2kDoubleNA);
4963 double ActualTemperature,
double SetTemperature=
N2kDoubleNA) {
4964 SetN2kPGN130312(N2kMsg,SID,TempInstance,TempSource,ActualTemperature,SetTemperature);
4996 double &ActualTemperature,
double &SetTemperature);
5007 double &ActualTemperature,
double &SetTemperature) {
5008 return ParseN2kPGN130312(N2kMsg, SID, TempInstance, TempSource, ActualTemperature, SetTemperature);
5042 SetN2kPGN130313(N2kMsg, SID, HumidityInstance, HumiditySource, ActualHumidity,SetHumidity);
5076 return ParseN2kPGN130313(N2kMsg, SID, HumidityInstance, HumiditySource, ActualHumidity, SetHumidity);
5090 return ParseN2kPGN130313(N2kMsg, SID, HumidityInstance, HumiditySource, ActualHumidity, SetHumidity);
5103 return ParseN2kPGN130313(N2kMsg, SID, HumidityInstance, HumiditySource, ActualHumidity);
5138 SetN2kPGN130314(N2kMsg, SID, PressureInstance, PressureSource, Pressure);
5173 return ParseN2kPGN130314(N2kMsg, SID, PressureInstance, PressureSource, Pressure);
5210 SetN2kPGN130315(N2kMsg, SID, PressureInstance, PressureSource, SetPressure);
5237 double ActualTemperature,
double SetTemperature=
N2kDoubleNA);
5247 double ActualTemperature,
double SetTemperature=
N2kDoubleNA) {
5248 SetN2kPGN130316(N2kMsg,SID,TempInstance,TempSource,ActualTemperature,SetTemperature);
5276 double &ActualTemperature,
double &SetTemperature);
5287 double &ActualTemperature,
double &SetTemperature) {
5288 return ParseN2kPGN130316(N2kMsg, SID, TempInstance, TempSource, ActualTemperature, SetTemperature);
5504 double Heading,
double SpeedThroughWater,
double Set,
double Drift);
5514 double Heading,
double SpeedThroughWater,
double Set,
double Drift){
5516 SetN2kPGN130577(N2kMsg,DataMode,CogReference,SID,COG,SOG,Heading,SpeedThroughWater,Set,Drift);
5543 double &SOG,
double &Heading,
double &SpeedThroughWater,
double &Set,
double &Drift);
5554 double &SOG,
double &Heading,
double &SpeedThroughWater,
double &Set,
double &Drift) {
5556 return ParseN2kPGN130577(N2kMsg,DataMode,CogReference,SID,COG,SOG,Heading,SpeedThroughWater,Set,Drift);
void N2kSetStatusBinaryOnStatus(tN2kBinaryStatus &BankStatus, tN2kOnOff ItemStatus, uint8_t ItemIndex=1)
Set single status to full binary bank status.
double CToKelvin(double v)
Converting a value from Celsius to Kelvin.
double FToKelvin(double v)
Converting a value from Fahrenheit to Kelvin.
double DegToRad(double v)
Converting a value from Deg to Rad.
double PascalTohPA(double v)
Converting a value from Pascal to HectoPascal.
double KnotsToms(double v)
Converting a value from Knots to MeterPerSecond.
double KelvinToF(double v)
Converting a value from Kelvin to Fahrenheit.
void N2kResetBinaryStatus(tN2kBinaryStatus &BankStatus)
Reset all single binary status values to not available.
tN2kOnOff N2kGetStatusOnBinaryStatus(tN2kBinaryStatus BankStatus, uint8_t ItemIndex=1)
Get single status to full binary bank status.
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.
double KelvinToC(double v)
Converting a value from Kelvin to Celsius.
double PascalTomBar(double v)
Converting a value from Pascal to Millibar.
double AhToCoulomb(double v)
Converting a value from AmpereHours to Coulomb.
double mBarToPascal(double v)
Converting a value from Millibar to Pascal.
double CoulombToAh(double v)
Converting a value from Coulomb to AmpereHours.
double msToKnots(double v)
Converting a value from MeterPerSecond to Knots.
uint64_t tN2kBinaryStatus
64bit Binary Status value of a full bank status, that can handle up to 28 item states in one value.
double SecondsToh(double v)
Converting a value from Seconds to Hours.
double RadToDeg(double v)
Converting a value from Rad to Deg.
double hToSeconds(double v)
Converting a value from Hours to Seconds.
bool AppendSatelliteInfo(tN2kMsg &N2kMsg, const tSatelliteInfo &SatelliteInfo)
Append a new satellite info to Message "GNSS Satellites in View" - PGN 129540.
double hPAToPascal(double v)
Converting a value from HectoPascal to Pascal.
This File contains the class tN2kMsg and all necessary functions to handle a NMEA2000 Message.
const uint32_t N2kUInt32NA
Constant "Not Available" for a unsigned 32bit int value.
const double N2kDoubleNA
Constant "Not Available" for a double value.
const int8_t N2kInt8NA
Constant "Not Available" for a signed 8bit value.
const uint16_t N2kUInt16NA
Constant "Not Available" for a unsigned 16bit int value.
const uint8_t N2kUInt8NA
Constant "Not Available" for a unsigned 8bit int value.
bool N2kIsNA(double v)
Verify that the specified value is equal to "Not available".
This File contains all specific Enumerations to make NMEA2000 Messages easier for humans to read.
@ N2kCM_Standalone
Charger mode is stand alone.
@ N2khr_magnetic
heading magnetic compass direction
@ N2khr_true
heading true (eg. GNSS) direction
@ N2kaismode_Autonomous
AIS is in Autonomous mode.
@ N2kdir_reverse
navigating reverse
@ N2kdir_forward
navigating forward
@ N2ktimes_GPS
Source is Global Positioning System GPS.
@ N2kRDO_NoDirectionOrder
no direction order
@ N2kOnOff_Unavailable
Unavailable.
@ N2kOnOff_On
Yes, On, Enabled.
@ N2kWind_Unavailable
unavailable
@ N2kGNSSt_GPS
only GPS satellite network
@ N2kSWRT_Paddle_wheel
paddle wheel sensor is used
@ N2khs_Undef
source is undefined
@ N2kaischannel_A_VDL_reception
Channel A VDL reception.
@ N2kaisr_Initial
initial AIS repeat
@ N2kDD481_Unavailable
Unavailable.
@ N2kDD482_DataNotAvailable
Data not available.
@ N2kAISAtoN_not_specified
Default, type of AtoN not specified.
@ N2kDD072_Unavailable
data not available
@ N2kDD374_DataNotAvailable
Data is not available.
@ N2kDD002_No
paired status is NO
@ N2kDD002_Unavailable
paired status is UNKNOWN
@ N2kDD002_Yes
paired status is YES
@ N2kDD488_DataNotAvailable
Data Not Available.
@ N2kDD480_Unavailable
Unavailable.
This class contains all the data of an NMEA2000 message.
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.
bool ParseN2kTrimTab(const tN2kMsg &N2kMsg, int8_t &PortTrimTab, int8_t &StbdTrimTab)
Parsing the content of a "Trim Tab Status" message - PGN 130576.
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.
bool ParseN2kPGN127505(const tN2kMsg &N2kMsg, unsigned char &Instance, tN2kFluidType &FluidType, double &Level, double &Capacity)
Parsing the content of message PGN 127505 "Fluid level".
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".
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.
bool ParseN2kPGN129025(const tN2kMsg &N2kMsg, double &Latitude, double &Longitude)
Parsing the content of PGN 129025 "Position, Rapid Update".
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".
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".
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.
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.
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".
bool ParseN2kPGN128267(const tN2kMsg &N2kMsg, unsigned char &SID, double &DepthBelowTransducer, double &Offset, double &Range)
Parsing the content of message PGN 128267 "Water depth".
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".
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.
bool ParseN2kRateOfTurn(const tN2kMsg &N2kMsg, unsigned char &SID, double &RateOfTurn)
Parsing the content of a "Rate of Turn" message - PGN 127251.
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.
bool ParseN2kPGN127251(const tN2kMsg &N2kMsg, unsigned char &SID, double &RateOfTurn)
Parsing the content of Message PGN127251 "Rate of Turn".
bool ParseN2kWindSpeed(const tN2kMsg &N2kMsg, unsigned char &SID, double &WindSpeed, double &WindAngle, tN2kWindReference &WindReference)
Parsing the content of a "Wind Data" message - PGN 130306.
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.
bool ParseN2kPGN130576(const tN2kMsg &N2kMsg, int8_t &PortTrimTab, int8_t &StbdTrimTab)
Parsing the content of message PGN 130576 "Trim Tab Status".
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.
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.
bool ParseN2kPGN130306(const tN2kMsg &N2kMsg, unsigned char &SID, double &WindSpeed, double &WindAngle, tN2kWindReference &WindReference)
Parsing the content of message PGN 130306 "Wind Data".
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".
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.
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.
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".
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.
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".
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".
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".
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".
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".
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.
bool ParseN2kPGN129033(const tN2kMsg &N2kMsg, uint16_t &DaysSince1970, double &SecondsSinceMidnight, int16_t &LocalOffset)
Parsing the content of message PGN 129033 "Date,Time & Local offset".
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.
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.
bool ParseN2kPGN127250(const tN2kMsg &N2kMsg, unsigned char &SID, double &Heading, double &Deviation, double &Variation, tN2kHeadingReference &ref)
Parsing Content of Message PGN 127250 "Vessel Heading".
bool ParseN2kPGN127258(const tN2kMsg &N2kMsg, unsigned char &SID, tN2kMagneticVariation &Source, uint16_t &DaysSince1970, double &Variation)
Parsing the content of Message PGN 127258 "Magnetic Variation".
bool ParseN2kPGN129540(const tN2kMsg &N2kMsg, unsigned char &SID, tN2kRangeResidualMode &Mode, uint8_t &NumberOfSVs)
Parsing the content of message PGN 129540 "GNSS Satellites in View".
bool ParseN2kMeteorlogicalStationData(const tN2kMsg &N2kMsg, tN2kMeteorlogicalStationData &N2kData)
Parsing the content of a "Meterological Station Data" message - PGN 130323.
bool ParseN2kPGN127245(const tN2kMsg &N2kMsg, double &RudderPosition, unsigned char &Instance, tN2kRudderDirectionOrder &RudderDirectionOrder, double &AngleOrder)
Parsing the content of Message PGN127245 "Rudder".
bool ParseN2kPGN129026(const tN2kMsg &N2kMsg, unsigned char &SID, tN2kHeadingReference &ref, double &COG, double &SOG)
Parsing the content of PGN 129026 "COG SOG rapid update".
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.
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.
bool ParseN2kPGN130323(const tN2kMsg &N2kMsg, tN2kMeteorlogicalStationData &N2kData)
Parsing the content of message PGN 130323 "Meterological Station Data".
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".
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".
bool ParseN2kWaterDepth(const tN2kMsg &N2kMsg, unsigned char &SID, double &DepthBelowTransducer, double &Offset)
Parsing the content of a "Water depth" message - PGN 128267.
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.
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.
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.
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".
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.
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".
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.
bool ParseN2kPositionRapid(const tN2kMsg &N2kMsg, double &Latitude, double &Longitude)
Parsing the content of a "Position, Rapid Update" message - PGN 129025.
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".
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".
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".
bool ParseN2kHeave(const tN2kMsg &N2kMsg, unsigned char &SID, double &Heave)
Parsing the content of a "Heave" message - PGN 127252.
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.
bool ParseN2kPGN130314(const tN2kMsg &N2kMsg, unsigned char &SID, unsigned char &PressureInstance, tN2kPressureSource &PressureSource, double &Pressure)
Parsing the content of message PGN 130314 "Actual Pressure".
bool ParseN2kPGN130310(const tN2kMsg &N2kMsg, unsigned char &SID, double &WaterTemperature, double &OutsideAmbientAirTemperature, double &AtmosphericPressure)
Parsing the content of message PGN 130310 "Environmental Parameters - DEPRECATED".
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".
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.
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".
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".
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".
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".
bool ParseN2kFluidLevel(const tN2kMsg &N2kMsg, unsigned char &Instance, tN2kFluidType &FluidType, double &Level, double &Capacity)
Parsing the content of a "Fluid level" message - PGN 127505.
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".
bool ParseN2kAttitude(const tN2kMsg &N2kMsg, unsigned char &SID, double &Yaw, double &Pitch, double &Roll)
Parsing the content of a "Attitude" message - PGN 127257.
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.
bool ParseN2kLeeway(const tN2kMsg &N2kMsg, unsigned char &SID, double &Leeway)
Parsing the content of a "Nautical Leeway Angle" message - PGN 128000.
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".
bool ParseN2kPGN127502(const tN2kMsg &N2kMsg, unsigned char &TargetBankInstance, tN2kBinaryStatus &BankStatus)
Parse the content of a PGN 127502 (Switch Bank Control) message.
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.
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.
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.
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".
bool ParseN2kRudder(const tN2kMsg &N2kMsg, double &RudderPosition, unsigned char &Instance, tN2kRudderDirectionOrder &RudderDirectionOrder, double &AngleOrder)
Parsing the content of a "Rudder" message - PGN 127245.
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".
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".
bool ParseN2kPGN129041(const tN2kMsg &N2kMsg, tN2kAISAtoNReportData &N2kData)
Parsing the content of message PGN 129041 "AIS Aids to Navigation (AtoN) Report".
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.
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.
bool ParseN2kAISAtoNReport(const tN2kMsg &N2kMsg, tN2kAISAtoNReportData &N2kData)
Parsing the content of a "AIS Aids to Navigation (AtoN) Report" message - PGN 129041.
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".
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.
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".
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.
bool ParseN2kPGN128000(const tN2kMsg &N2kMsg, unsigned char &SID, double &Leeway)
Parsing the content of Message PGN 128000 "Nautical Leeway Angle".
bool ParseN2kPGN127252(const tN2kMsg &N2kMsg, unsigned char &SID, double &Heave, double &Delay, tN2kDelaySource &DelaySource)
Parsing the content of Message PGN127252 "Heave".
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.
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".
bool ParseN2kPGN127257(const tN2kMsg &N2kMsg, unsigned char &SID, double &Yaw, double &Pitch, double &Roll)
Parsing the content of Message PGN 127257 "Attitude".
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.
void SetN2kEngineParamRapid(tN2kMsg &N2kMsg, unsigned char EngineInstance, double EngineSpeed, double EngineBoostPressure=N2kDoubleNA, int8_t EngineTiltTrim=N2kInt8NA)
Setting up Message "Engine parameters rapid" - PGN 127488.
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".
void SetN2kPGN127245(tN2kMsg &N2kMsg, double RudderPosition, unsigned char Instance=0, tN2kRudderDirectionOrder RudderDirectionOrder=N2kRDO_NoDirectionOrder, double AngleOrder=N2kDoubleNA)
Setting up PGN127245 Message "Rudder".
void SetN2kPressure(tN2kMsg &N2kMsg, unsigned char SID, unsigned char PressureInstance, tN2kPressureSource PressureSource, double Pressure)
Setting up Message "Actual Pressure" - PGN 130314.
void SetN2kPGN129540(tN2kMsg &N2kMsg, unsigned char SID=0xff, tN2kRangeResidualMode Mode=N2kDD072_Unavailable)
Setting up PGN 129540 Message "GNSS Satellites in View".
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".
void SetN2kTrimTab(tN2kMsg &N2kMsg, int8_t PortTrimTab, int8_t StbdTrimTab)
Setting up Message "Trim Tab Status" - PGN 130576.
void SetN2kPGN130314(tN2kMsg &N2kMsg, unsigned char SID, unsigned char PressureInstance, tN2kPressureSource PressureSource, double Pressure)
Setting up PGN 130314 Message "Actual Pressure".
void SetN2kPGN127502(tN2kMsg &N2kMsg, unsigned char TargetBankInstance, tN2kBinaryStatus BankStatus)
Set up PGN 127502 "Switch Bank Control" message.
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.
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".
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".
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.
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.
void SetN2kHeave(tN2kMsg &N2kMsg, unsigned char SID, double Heave, double Delay=N2kDoubleNA, tN2kDelaySource DelaySource=N2kDD374_DataNotAvailable)
Setting up Message "Rate of Turn" - PGN 127252.
void SetN2kPGN127252(tN2kMsg &N2kMsg, unsigned char SID, double Heave, double Delay=N2kDoubleNA, tN2kDelaySource DelaySource=N2kDD374_DataNotAvailable)
Setting up PGN 127252 Message "Heave".
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".
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.
bool AppendN2kPGN129285(tN2kMsg &N2kMsg, uint16_t WPID, const char *WPName, double Latitude, double Longitude)
Append another Waypoint to PGN 129285 "Route/WP information".
void SetN2kPGN130576(tN2kMsg &N2kMsg, int8_t PortTrimTab, int8_t StbdTrimTab)
Setting up PGN 130576 Message "Trim Tab Status".
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.
void SetN2kPGN126992(tN2kMsg &N2kMsg, unsigned char SID, uint16_t SystemDate, double SystemTime, tN2kTimeSource TimeSource=N2ktimes_GPS)
Setting up PGN126992 Message "System date/time".
void SetN2kOutsideEnvironmentalParameters(tN2kMsg &N2kMsg, unsigned char SID, double WaterTemperature, double OutsideAmbientAirTemperature=N2kDoubleNA, double AtmosphericPressure=N2kDoubleNA)
Setting up Message "Environmental Parameters - DEPRECATED" - PGN 130310.
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".
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.
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.
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".
bool ParseN2kSwitchbankControl(const tN2kMsg &N2kMsg, unsigned char &TargetBankInstance, tN2kBinaryStatus &BankStatus)
Parse PGN 127502 "Switch Bank Control" message.
void SetN2kMeteorlogicalStationData(tN2kMsg &N2kMsg, const tN2kMeteorlogicalStationData &N2kData)
Setting up Message "Meterological Station Data" - PGN 130323.
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".
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.
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".
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".
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".
void SetN2kLeeway(tN2kMsg &N2kMsg, unsigned char SID, double Leeway)
Setting up Message "Nautical Leeway Angle" - PGN 128000.
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".
void SetN2kXTE(tN2kMsg &N2kMsg, unsigned char SID, tN2kXTEMode XTEMode, bool NavigationTerminated, double XTE)
Setting up Message "Cross Track Error" - PGN 129283.
void SetN2kPGN130306(tN2kMsg &N2kMsg, unsigned char SID, double WindSpeed, double WindAngle, tN2kWindReference WindReference)
Setting up PGN 130306 Message "Wind Data".
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.
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)
void SetN2kPGN127488(tN2kMsg &N2kMsg, unsigned char EngineInstance, double EngineSpeed, double EngineBoostPressure=N2kDoubleNA, int8_t EngineTiltTrim=N2kInt8NA)
Setting up PGN 127488 Message "Engine parameters rapid".
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".
void SetN2kAISAtoNReport(tN2kMsg &N2kMsg, const tN2kAISAtoNReportData &N2kData)
Setting up Message "AIS Aids to Navigation (AtoN) Report" - PGN 129041.
void SetN2kWaterDepth(tN2kMsg &N2kMsg, unsigned char SID, double DepthBelowTransducer, double Offset, double Range=N2kDoubleNA)
Setting up Message "Water depth" - PGN 128267.
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".
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.
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.
void SetN2kPGN128275(tN2kMsg &N2kMsg, uint16_t DaysSince1970, double SecondsSinceMidnight, uint32_t Log, uint32_t TripLog)
Setting up PGN 128275 Message "Distance log".
void SetN2kSetPressure(tN2kMsg &N2kMsg, unsigned char SID, unsigned char PressureInstance, tN2kPressureSource PressureSource, double SetPressure)
Setting up Message "Set Pressure" - PGN 130315.
void SetN2kLatLonRapid(tN2kMsg &N2kMsg, double Latitude, double Longitude)
Setting up Message "Position, Rapid Update" - PGN 129025.
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.
void SetN2kPGN127257(tN2kMsg &N2kMsg, unsigned char SID, double Yaw, double Pitch, double Roll)
Setting up PGN 127257 Message "Attitude".
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.
void SetN2kPGN127501(tN2kMsg &N2kMsg, unsigned char DeviceBankInstance, tN2kBinaryStatus BankStatus)
Setting up PGN 127501 Message "Universal Binary Status Report".
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.
void SetN2kPGN127250(tN2kMsg &N2kMsg, unsigned char SID, double Heading, double Deviation, double Variation, tN2kHeadingReference ref)
Setting up PGN127250 Message "Vessel Heading".
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".
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.
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.
void SetN2kPGN130310(tN2kMsg &N2kMsg, unsigned char SID, double WaterTemperature, double OutsideAmbientAirTemperature=N2kDoubleNA, double AtmosphericPressure=N2kDoubleNA)
Setting up PGN 130310 Message " Environmental Parameters - DEPRECATED".
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".
bool AppendN2kPGN129540(tN2kMsg &N2kMsg, const tSatelliteInfo &SatelliteInfo)
Append a new satellite info to PGN 129540 Message "GNSS Satellites in View".
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.
void SetN2kTemperature(tN2kMsg &N2kMsg, unsigned char SID, unsigned char TempInstance, tN2kTempSource TempSource, double ActualTemperature, double SetTemperature=N2kDoubleNA)
Setting up Message "Temperature - DEPRECATED" - PGN 130312.
void SetN2kMagneticHeading(tN2kMsg &N2kMsg, unsigned char SID, double Heading, double Deviation=N2kDoubleNA, double Variation=N2kDoubleNA)
Setting up Message "Vessel Heading" - PGN 127250.
void SetN2kPGN129026(tN2kMsg &N2kMsg, unsigned char SID, tN2kHeadingReference ref, double COG, double SOG)
Setting up PGN 129026 Message "COG SOG rapid update".
void SetN2kPGN130323(tN2kMsg &N2kMsg, const tN2kMeteorlogicalStationData &N2kData)
Setting up PGN 130323 Message "Meterological Station Data".
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".
void SetN2kGNSSSatellitesInView(tN2kMsg &N2kMsg, unsigned char SID=0xff, tN2kRangeResidualMode Mode=N2kDD072_Unavailable)
Setting up Message "GNSS DOP data" - PGN 129540.
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".
void SetN2kPGN127251(tN2kMsg &N2kMsg, unsigned char SID, double RateOfTurn)
Setting up PGN 127251 Message "Rate of Turn".
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".
bool AppendN2kRouteWPInfo(tN2kMsg &N2kMsg, uint16_t WPID, const char *WPName, double Latitude, double Longitude)
Append another Waypoint to "Route/WP information"- PGN 129285.
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".
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.
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".
void SetN2kRudder(tN2kMsg &N2kMsg, double RudderPosition, unsigned char Instance=0, tN2kRudderDirectionOrder RudderDirectionOrder=N2kRDO_NoDirectionOrder, double AngleOrder=N2kDoubleNA)
Setting up Message "Rudder" - PGN 127245.
void SetN2kFluidLevel(tN2kMsg &N2kMsg, unsigned char Instance, tN2kFluidType FluidType, double Level, double Capacity)
Setting up Message "Fluid level" - PGN 127505.
void SetN2kPGN129033(tN2kMsg &N2kMsg, uint16_t DaysSince1970, double SecondsSinceMidnight, int16_t LocalOffset)
Setting up PGN 129033 Message "Date,Time & Local offset".
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".
void SetN2kHumidity(tN2kMsg &N2kMsg, unsigned char SID, unsigned char HumidityInstance, tN2kHumiditySource HumiditySource, double ActualHumidity, double SetHumidity=N2kDoubleNA)
Setting up Message "Humidity" - PGN 130313.
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".
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".
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.
void SetN2kRateOfTurn(tN2kMsg &N2kMsg, unsigned char SID, double RateOfTurn)
Setting up Message "Rate of Turn" - PGN 127251.
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 1300...
void SetN2kPGN129041(tN2kMsg &N2kMsg, const tN2kAISAtoNReportData &N2kData)
Setting up PGN 129041 Message "AIS Aids to Navigation (AtoN) Report".
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".
void SetN2kPGN129283(tN2kMsg &N2kMsg, unsigned char SID, tN2kXTEMode XTEMode, bool NavigationTerminated, double XTE)
Setting up PGN 129283 Message "Cross Track Error".
void SetN2kCOGSOGRapid(tN2kMsg &N2kMsg, unsigned char SID, tN2kHeadingReference ref, double COG, double SOG)
Setting up Message "COG SOG rapid update" - PGN 129026.
void SetN2kMagneticVariation(tN2kMsg &N2kMsg, unsigned char SID, tN2kMagneticVariation Source, uint16_t DaysSince1970, double Variation)
Setting up Message "Magnetic Variation" - PGN 127258.
void SetN2kPGN130313(tN2kMsg &N2kMsg, unsigned char SID, unsigned char HumidityInstance, tN2kHumiditySource HumiditySource, double ActualHumidity, double SetHumidity=N2kDoubleNA)
Setting up PGN 130313 Message "Humidity".
void SetN2kPGN127505(tN2kMsg &N2kMsg, unsigned char Instance, tN2kFluidType FluidType, double Level, double Capacity)
Setting up PGN 127505 Message "Fluid level".
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.
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...
void SetN2kPGN128267(tN2kMsg &N2kMsg, unsigned char SID, double DepthBelowTransducer, double Offset, double Range=N2kDoubleNA)
Setting up PGN 128267 Message "Water depth".
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".
void SetN2kSwitchbankControl(tN2kMsg &N2kMsg, unsigned char TargetBankInstance, tN2kBinaryStatus BankStatus)
Set up PGN 127502 "Switch Bank Control" message.
void SetN2kDistanceLog(tN2kMsg &N2kMsg, uint16_t DaysSince1970, double SecondsSinceMidnight, uint32_t Log, uint32_t TripLog)
Setting up Message "Distance log" - PGN 128275.
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.
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.
void SetN2kPGN129025(tN2kMsg &N2kMsg, double Latitude, double Longitude)
Setting up PGN 129025 Message "Position, Rapid Update".
void SetN2kWindSpeed(tN2kMsg &N2kMsg, unsigned char SID, double WindSpeed, double WindAngle, tN2kWindReference WindReference)
Setting up Message "Wind Data" - PGN 130306.
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.
void SetN2kPGN130315(tN2kMsg &N2kMsg, unsigned char SID, unsigned char PressureInstance, tN2kPressureSource PressureSource, double SetPressure)
Setting up PGN 130315 Message "Set Pressure".
void SetN2kAttitude(tN2kMsg &N2kMsg, unsigned char SID, double Yaw, double Pitch, double Roll)
Setting up Message "Attitude" - PGN 127257.
void SetN2kPGN127258(tN2kMsg &N2kMsg, unsigned char SID, tN2kMagneticVariation Source, uint16_t DaysSince1970, double Variation)
Setting up PGN 127258 Message "Magnetic Variation".
void SetN2kPGN130312(tN2kMsg &N2kMsg, unsigned char SID, unsigned char TempInstance, tN2kTempSource TempSource, double ActualTemperature, double SetTemperature=N2kDoubleNA)
Setting up PGN 130312 Message "Temperature - DEPRECATED".
void SetN2kPGN128000(tN2kMsg &N2kMsg, unsigned char SID, double Leeway)
Setting up PGN 128000 Message "Nautical Leeway Angle".
void SetN2kBinaryStatus(tN2kMsg &N2kMsg, unsigned char DeviceBankInstance, tN2kBinaryStatus BankStatus)
Setting up Message "Universal Binary Status Report" - PGN 127501.
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".
void SetN2kTrueHeading(tN2kMsg &N2kMsg, unsigned char SID, double Heading)
Setting up Message "Vessel Heading" - PGN 127250.
void SetN2kLocalOffset(tN2kMsg &N2kMsg, uint16_t DaysSince1970, double SecondsSinceMidnight, int16_t LocalOffset)
Setting up Message "Date,Time & Local offset" - PGN 129033.
void SetN2kSystemTime(tN2kMsg &N2kMsg, unsigned char SID, uint16_t SystemDate, double SystemTime, tN2kTimeSource TimeSource=N2ktimes_GPS)
Setting up Message "System date/time" - PGN 126992.
tN2kDistanceCalculationType
Enumeration of distance calculation types for navigation according to PGN129284.
tN2kDD481
DD481 - Rode Type States according to PGN 128777.
tN2kDD483 tN2kWindlassOperatingEvents
Alias easier for humans to read for tN2kDD483.
tN2kChargerMode
Enumeration of charger modes according to PGN 127507.
tN2kHeadingReference
Enumeration of the heading type according to PGN129233, PGN129237 , PGN129250, PGN129026 and PGN12928...
tN2kAISMode
Enumeration of AIS mode type according to PGN 129039.
tN2kAISDTE
Enumeration of Data Terminal Equipment according to PNG 129794.
tN2kBatNomVolt
Enumeration of nominal battery voltage according to PGN 127513.
tN2kNavigationDirection
Enumeration of the navigation direction according to PGN129285.
tN2kTimeSource
Enumeration of sources for the system time according to PGN126992.
tN2kChargeState
Enumeration of state of the battery charger operation according to PGN127507.
tN2kMagneticVariation
Enumeration of magnetic variation according to PGN 127258.
tN2kDD477 tN2kWindlassMonitoringEvents
Alias easier for humans to read for tN2kDD477.
tN2kRudderDirectionOrder
Enumeration of Rudder Direction Order according to PGN127237, 127245.
tN2kDD482
DD482 - Anchor Docking States according to PGN 128777.
tN2kDD124
DD124 - PRN Usage Status.
tN2kDD305
Enumeration of Aid to Navigation (AtoN) Type according to PGN129041.
tN2kMOBPositionSource
Enumeration of ManOverBoard position source according to PGN127233.
tN2kGNSSmethod
Enumeration of GNSS working methods according to PGN129029.
tN2kTransmissionGear
Enumeration of transmission state according to PGN 127493.
tN2kDCType
Enumeration of DC power sources according to PGN 127506.
tN2kDD072
DD072 - Range Residual Mode.
tN2kDD025
DD025 - Mode, Data.
tN2kMOBEmitterBatteryStatus
Enumeration of MOB emitter battery status according to PGN127233.
tN2kTurnMode
Enumeration of tunr control modes according to PGN127237.
tN2kOnOff
Enumeration of On/Off status at a NMEA 2000 network.
tN2kWindReference
Enumeration of wind reference types according to PGN130306.
tN2kSteeringMode
Enumeration of the steering mode according to PGN127237.
tN2kAISUnit
Enumeration of AIS unit (transmission) type according to PGN 129039.
tN2kDD374
Measurement delay source.
tN2kTempSource
Enumeration of sources for a temperature value according to PGN130311, PGN130312 and PGN130316.
tN2kMOBStatus
Enumeration of ManOverBoard state according to PGN127233.
tN2kGNSSDOPmode
Enumeration of GNSS DOP Mode according to PGN129539.
tN2kDD002
DD002 - Generic Status Pair.
tN2kBatChem
Enumeration of battery chemistries according to PGN 127513.
tN2kBatType
Enumeration of Battery types according to PGN 127513.
tN2kGNSStype
Enumeration of the GPS system which is in use according to PGN129029, PGN129041 and PGN129794.
tN2kAISNavStatus
Enumeration of navigational status of an ship sending out an AIS signal according to PGN 129038.
tN2kSpeedWaterReferenceType
Enumeration of speed thru water sensors types according to PGN128259.
tN2kDD478 tN2kWindlassControlEvents
Alias easier for humans to read for tN2kDD478.
tN2kDD488
DD488 - Speed Control Type according to PGN 128776.
tN2kBatEqSupport
Enumeration of Supports Equalization according to PGN 127513.
tN2kHumiditySource
Enumeration of sources for a humidity value according to PGN130311 and PGN130313.
tN2kDD480
DD480 - Windlass Motion States according to PGN 128777.
tN2kAISTransceiverInformation
Enumeration of 129039, 129041, 129802.
tN2kAISRepeat
Enumeration of AIS repeat indicator according to PGN129802, PGN129809, PGN129810, PGN129038,...
tN2kPressureSource
Enumeration of sources for a pressure value according to PGN130314 and PGN130315.
tN2kFluidType
Enumeration of fluid types according to PGN127505.
tN2kDD484
DD484 - Windlass Direction Control according to PGN 128776.
tN2kXTEMode
Enumeration of Cross Track Error modes according to PGN129283.
tN2kAISVersion
Enumeration of AIS version which is used in PGN 129794.
Dedicated structure to handle AIS Aids to Navigation (AtoN) Report.
tN2kGNSStype GNSSType
Type of electronic position fixing device See tN2kGNSStype.
bool OffPositionIndicator
Off Position Indicator For floating AtoN, only.
double Length
AtoN Structure Length/Diameter in meters.
double PositionReferenceStarboard
Position Reference Point from Starboard Structure Edge/Radius.
double Beam
AtoN Structure Beam/Diameter in meters.
double PositionReferenceTrueNorth
Position Reference Point from True North facing Structure Edge/Radius.
char AtoNName[34+1]
Name of AtoN Object.
tN2kAISAtoNType AtoNType
Aid to Navigation (AtoN) Type, see tN2kAISAtoNType.
double Latitude
latitude of position [degree]
bool VirtualAtoNFlag
Virtual AtoN flag.
uint8_t AtoNStatus
AtoN Status byte Reserved for the indication of the AtoN status 00000000 = default.
uint32_t UserID
MMSI number.
bool AssignedModeFlag
Assigned Mode Flag.
uint8_t Seconds
TimeStamp UTC second when the report was generated.
bool RAIM
Receiver autonomous integrity monitoring (RAIM) flag of electronic position fixing device.
tN2kAISRepeat Repeat
Repeat indicator, Used by the repeater to indicate how many times a message has been repeated....
tN2kAISAtoNReportData()
Construct a new t N2k AIS AtoN Report Data object.
tN2kAISTransceiverInformation AISTransceiverInformation
AIS Transceiver Information see tN2kAISTransceiverInformation.
void SetAtoNName(const char *name)
Set the AtoN Name.
double Longitude
longitude of position [degree]
uint8_t MessageID
Message Type ID according to e ITU-R M.1371.
bool Accuracy
position accuracy
Dedicated structure to handle Data of a meterological station.
double AtmosphericPressure
Atmospheric pressure in Pascals. Use mBarToPascal, if you like to use mBar.
double WindDirection
Measured wind direction in radians. If you have value in degrees, use DegToRad() in call.
double OutsideAmbientAirTemperature
Outside ambient temperature in K. Use CToKelvin, if you want to use °C.
double WindSpeed
Measured wind speed in m/s.
double Longitude
The longitude of the current waypoint [degree].
char StationID[15+1]
Identifier of the transmitting weather station. (15 bytes max)
double WindGusts
Measured wind gusts speed in m/s.
void SetStationID(const char *id)
Set the StationID object.
double Latitude
The latitude of the current waypoint [degree].
void SetStationName(const char *name)
Set the Station Name object.
tN2kMeteorlogicalStationData()
char StationName[50+1]
Friendly name of the transmitting weather station. ( 50 bytes max)
tN2kWindReference WindReference
Wind reference, see definition tN2kWindReference.
double SystemTime
seconds since midnight
uint16_t SystemDate
Days since 1970-01-01.
Dedicated structure to handle GNSS satellite information.
double Azimuth
Azimuth of the satellite.
tN2kPRNUsageStatus UsageStatus
Usage Status, see tN2kPRNUsageStatus.
double RangeResiduals
Range Residual.
unsigned char PRN
PRN number [ 01 .. 32] of the satellite.
double SNR
SignalToNoiseRatio of the satellite.
double Elevation
Elevation of the satellite.
DD206 - Engine Discrete Warning Status.
uint16_t EngineEmergencyStopMode
engine emergency stop mode status bit
uint16_t PreheatIndicator
pre heat indicator status bit
uint16_t WaterInFuel
water in fuel status bit
uint16_t LowOilPressure
low oil pressure status bit
uint16_t LowFuelPressure
low fuel pressure status bit
uint16_t RevLimitExceeded
rev limit exceeded status bit
uint16_t LowSystemVoltage
low system voltage status bit
uint16_t HighBoostPressure
high boost pressure status bit
uint16_t WaterFlow
water flow status bit
struct tN2kDD206::@2 Bits
uint16_t CheckEngine
check engine status bit
uint16_t LowOilLevel
low oil level status bit
uint16_t EGRSystem
egr system status bit
uint16_t LowCoolantLevel
low coolant status bit
uint16_t ThrottlePositionSensor
throttle position sensor status bit
uint16_t OverTemperature
over temperature status bit
uint16_t ChargeIndicator
charge indicator status bit
DD223 - Engine Discrete Warning Status.
uint16_t EngineShuttingDown
engine shuting down status bit
uint16_t EngineCommError
engine communication error status bit
uint16_t SubOrSecondaryThrottle
sub or secondary throttle is used status bit
struct tN2kDD223::@3 Bits
uint16_t LowOiPowerReduction
engine power reduction due to low oil pressure status bit
uint16_t WarningLevel2
engine warning level 2 status bit
uint16_t WarningLevel1
engine warning level 1 status bit
uint16_t MaintenanceNeeded
engine maintenance needed status bit
uint16_t NeutralStartProtect
neutral start protection status bit
DD477 - Windlass Monitoring Events according to PGN 128778.
DD478 - Windlass Control Events according to PGN 128776.
DD483 - Windlass Operating Events according to PGN 128777.