NMEA2000 Library
0.1
Library to handle NMEA 2000 Communication written in C++
|
Go to the source code of this file.
Macros | |
#define | MaxSatelliteInfoCount 18 |
Functions | |
bool | AppendN2kPGN129285 (tN2kMsg &N2kMsg, uint16_t ID, const char *Name, double Latitude, double Longitude) |
Append another Waypoint to PGN 129285 "Route/WP information". More... | |
bool | AppendN2kPGN129540 (tN2kMsg &N2kMsg, const tSatelliteInfo &SatelliteInfo) |
Append a new satellite info to PGN 129540 Message "GNSS Satellites in View". More... | |
bool | AppendN2kPGN130074 (tN2kMsg &N2kMsg, uint16_t ID, char *Name, double Latitude, double Longitude) |
Append a Waypoint to PGN 130074 Message " Route and WP Service -
WP List - WP Name & Position". More... | |
tN2kOnOff | N2kGetStatusOnBinaryStatus (tN2kBinaryStatus BankStatus, uint8_t ItemIndex) |
Get single status to full binary bank status. More... | |
void | N2kSetStatusBinaryOnStatus (tN2kBinaryStatus &BankStatus, tN2kOnOff ItemStatus, uint8_t ItemIndex) |
Set single status to full binary bank status. More... | |
bool | ParseN2kPGN126992 (const tN2kMsg &N2kMsg, unsigned char &SID, uint16_t &SystemDate, double &SystemTime, tN2kTimeSource &TimeSource) |
Parsing the Content of a PGN126992 Message - "System date/time". More... | |
bool | ParseN2kPGN127233 (const tN2kMsg &N2kMsg, unsigned char &SID, uint32_t &MobEmitterId, tN2kMOBStatus &MOBStatus, double &ActivationTime, tN2kMOBPositionSource &PositionSource, uint16_t &PositionDate, double &PositionTime, double &Latitude, double &Longitude, tN2kHeadingReference &COGReference, double &COG, double &SOG, uint32_t &MMSI, tN2kMOBEmitterBatteryStatus &MOBEmitterBatteryStatus) |
Parsing the Content of Message PGN127233 "Man Overboard Notification". More... | |
bool | ParseN2kPGN127237 (const tN2kMsg &N2kMsg, tN2kOnOff &RudderLimitExceeded, tN2kOnOff &OffHeadingLimitExceeded, tN2kOnOff &OffTrackLimitExceeded, tN2kOnOff &Override, tN2kSteeringMode &SteeringMode, tN2kTurnMode &TurnMode, tN2kHeadingReference &HeadingReference, tN2kRudderDirectionOrder &CommandedRudderDirection, double &CommandedRudderAngle, double &HeadingToSteerCourse, double &Track, double &RudderLimit, double &OffHeadingLimit, double &RadiusOfTurnOrder, double &RateOfTurnOrder, double &OffTrackLimit, double &VesselHeading) |
Parsing the Content of Message PGN127237 "Heading/Track control". More... | |
bool | ParseN2kPGN127245 (const tN2kMsg &N2kMsg, double &RudderPosition, unsigned char &Instance, tN2kRudderDirectionOrder &RudderDirectionOrder, double &AngleOrder) |
Parsing the content of Message PGN127245 "Rudder". More... | |
bool | ParseN2kPGN127250 (const tN2kMsg &N2kMsg, unsigned char &SID, double &Heading, double &Deviation, double &Variation, tN2kHeadingReference &ref) |
Parsing Content of Message PGN 127250 "Vessel Heading". More... | |
bool | ParseN2kPGN127251 (const tN2kMsg &N2kMsg, unsigned char &SID, double &RateOfTurn) |
Parsing the content of Message PGN127251 "Rate of Turn". More... | |
bool | ParseN2kPGN127252 (const tN2kMsg &N2kMsg, unsigned char &SID, double &Heave, double &Delay, tN2kDelaySource &DelaySource) |
Parsing the content of Message PGN127252 "Heave". More... | |
bool | ParseN2kPGN127257 (const tN2kMsg &N2kMsg, unsigned char &SID, double &Yaw, double &Pitch, double &Roll) |
Parsing the content of Message PGN 127257 "Attitude". More... | |
bool | ParseN2kPGN127258 (const tN2kMsg &N2kMsg, unsigned char &SID, tN2kMagneticVariation &Source, uint16_t &DaysSince1970, double &Variation) |
Parsing the content of Message PGN 127258 "Magnetic Variation". More... | |
bool | ParseN2kPGN127488 (const tN2kMsg &N2kMsg, unsigned char &EngineInstance, double &EngineSpeed, double &EngineBoostPressure, int8_t &EngineTiltTrim) |
Parsing the content of Message PGN 127488 "Engine parameters rapid". More... | |
bool | ParseN2kPGN127489 (const tN2kMsg &N2kMsg, unsigned char &EngineInstance, double &EngineOilPress, double &EngineOilTemp, double &EngineCoolantTemp, double &AltenatorVoltage, double &FuelRate, double &EngineHours, double &EngineCoolantPress, double &EngineFuelPress, int8_t &EngineLoad, int8_t &EngineTorque, tN2kEngineDiscreteStatus1 &Status1, tN2kEngineDiscreteStatus2 &Status2) |
Parsing the content of Message PGN 127489 "Engine parameters dynamic". More... | |
bool | ParseN2kPGN127493 (const tN2kMsg &N2kMsg, unsigned char &EngineInstance, tN2kTransmissionGear &TransmissionGear, double &OilPressure, double &OilTemperature, unsigned char &DiscreteStatus1) |
Parsing the content of Message PGN 127493 "Transmission parameters,
dynamic". More... | |
bool | ParseN2kPGN127497 (const tN2kMsg &N2kMsg, unsigned char &EngineInstance, double &TripFuelUsed, double &FuelRateAverage, double &FuelRateEconomy, double &InstantaneousFuelEconomy) |
Parsing the content of Message PGN 127497 "Trip Parameters, Engine". More... | |
bool | ParseN2kPGN127501 (const tN2kMsg &N2kMsg, unsigned char &DeviceBankInstance, tN2kBinaryStatus &BankStatus) |
Parsing the content of Message PGN 127501 Message "Universal Binary
Status Report". More... | |
bool | ParseN2kPGN127501 (const tN2kMsg &N2kMsg, unsigned char &DeviceBankInstance, tN2kOnOff &Status1, tN2kOnOff &Status2, tN2kOnOff &Status3, tN2kOnOff &Status4) |
Parsing the content of Message PGN 127501 Message "Universal Binary
Status Report". More... | |
bool | ParseN2kPGN127502 (const tN2kMsg &N2kMsg, unsigned char &TargetBankInstance, tN2kBinaryStatus &BankStatus) |
Parse the content of a PGN 127502 (Switch Bank Control) message. More... | |
bool | ParseN2kPGN127505 (const tN2kMsg &N2kMsg, unsigned char &Instance, tN2kFluidType &FluidType, double &Level, double &Capacity) |
Parsing the content of message PGN 127505 "Fluid level". More... | |
bool | ParseN2kPGN127506 (const tN2kMsg &N2kMsg, unsigned char &SID, unsigned char &DCInstance, tN2kDCType &DCType, uint8_t &StateOfCharge, uint8_t &StateOfHealth, double &TimeRemaining, double &RippleVoltage, double &Capacity) |
bool | ParseN2kPGN127507 (const tN2kMsg &N2kMsg, unsigned char &Instance, unsigned char &BatteryInstance, tN2kChargeState &ChargeState, tN2kChargerMode &ChargerMode, tN2kOnOff &Enabled, tN2kOnOff &EqualizationPending, double &EqualizationTimeRemaining) |
Parsing the content of message PGN 127507 "DC Charger Status". More... | |
bool | ParseN2kPGN127508 (const tN2kMsg &N2kMsg, unsigned char &BatteryInstance, double &BatteryVoltage, double &BatteryCurrent, double &BatteryTemperature, unsigned char &SID) |
Parsing the content of message PGN 127508 "Battery Status". More... | |
bool | ParseN2kPGN127513 (const tN2kMsg &N2kMsg, unsigned char &BatInstance, tN2kBatType &BatType, tN2kBatEqSupport &SupportsEqual, tN2kBatNomVolt &BatNominalVoltage, tN2kBatChem &BatChemistry, double &BatCapacity, int8_t &BatTemperatureCoefficient, double &PeukertExponent, int8_t &ChargeEfficiencyFactor) |
Parsing the content of message PGN 127513 "Battery
Configuration Status". More... | |
bool | ParseN2kPGN128000 (const tN2kMsg &N2kMsg, unsigned char &SID, double &Leeway) |
Parsing the content of Message PGN 128000 "Nautical Leeway Angle". More... | |
bool | ParseN2kPGN128259 (const tN2kMsg &N2kMsg, unsigned char &SID, double &WaterReferenced, double &GroundReferenced, tN2kSpeedWaterReferenceType &SWRT) |
Parsing the content of message PGN 128259 "Boat Speed, Water
Referenced". More... | |
bool | ParseN2kPGN128267 (const tN2kMsg &N2kMsg, unsigned char &SID, double &DepthBelowTransducer, double &Offset, double &Range) |
Parsing the content of message PGN 128267 "Water depth". More... | |
bool | ParseN2kPGN128275 (const tN2kMsg &N2kMsg, uint16_t &DaysSince1970, double &SecondsSinceMidnight, uint32_t &Log, uint32_t &TripLog) |
Parsing the content of message PGN 128275 "Distance log". More... | |
bool | ParseN2kPGN128776 (const tN2kMsg &N2kMsg, unsigned char &SID, unsigned char &WindlassIdentifier, tN2kWindlassDirectionControl &WindlassDirectionControl, unsigned char &SpeedControl, tN2kSpeedType &SpeedControlType, tN2kGenericStatusPair &AnchorDockingControl, tN2kGenericStatusPair &PowerEnable, tN2kGenericStatusPair &MechanicalLock, tN2kGenericStatusPair &DeckAndAnchorWash, tN2kGenericStatusPair &AnchorLight, double &CommandTimeout, tN2kWindlassControlEvents &WindlassControlEvents) |
Parsing the content of message PGN 128776 "Anchor Windlass
Control Status". More... | |
bool | ParseN2kPGN128777 (const tN2kMsg &N2kMsg, unsigned char &SID, unsigned char &WindlassIdentifier, double &RodeCounterValue, double &WindlassLineSpeed, tN2kWindlassMotionStates &WindlassMotionStatus, tN2kRodeTypeStates &RodeTypeStatus, tN2kAnchorDockingStates &AnchorDockingStatus, tN2kWindlassOperatingEvents &WindlassOperatingEvents) |
Parsing the content of message PGN 128777 "Anchor Windlass
Operating Status". More... | |
bool | ParseN2kPGN128778 (const tN2kMsg &N2kMsg, unsigned char &SID, unsigned char &WindlassIdentifier, double &TotalMotorTime, double &ControllerVoltage, double &MotorCurrent, tN2kWindlassMonitoringEvents &WindlassMonitoringEvents) |
Parsing the content of message PGN128778 "Anchor Windlass
Monitoring Status". More... | |
bool | ParseN2kPGN129025 (const tN2kMsg &N2kMsg, double &Latitude, double &Longitude) |
Parsing the content of PGN 129025 "Position, Rapid Update". More... | |
bool | ParseN2kPGN129026 (const tN2kMsg &N2kMsg, unsigned char &SID, tN2kHeadingReference &ref, double &COG, double &SOG) |
Parsing the content of PGN 129026 "COG SOG rapid update". More... | |
bool | ParseN2kPGN129029 (const tN2kMsg &N2kMsg, unsigned char &SID, uint16_t &DaysSince1970, double &SecondsSinceMidnight, double &Latitude, double &Longitude, double &Altitude, tN2kGNSStype &GNSStype, tN2kGNSSmethod &GNSSmethod, uint8_t &nSatellites, double &HDOP, double &PDOP, double &GeoidalSeparation, uint8_t &nReferenceStations, tN2kGNSStype &ReferenceStationType, uint16_t &ReferenceSationID, double &AgeOfCorrection) |
bool | ParseN2kPGN129033 (const tN2kMsg &N2kMsg, uint16_t &DaysSince1970, double &SecondsSinceMidnight, int16_t &LocalOffset) |
Parsing the content of message PGN 129033 "Date,Time & Local offset". More... | |
bool | ParseN2kPGN129038 (const tN2kMsg &N2kMsg, uint8_t &MessageID, tN2kAISRepeat &Repeat, uint32_t &UserID, double &Latitude, double &Longitude, bool &Accuracy, bool &RAIM, uint8_t &Seconds, double &COG, double &SOG, double &Heading, double &ROT, tN2kAISNavStatus &NavStatus) |
Parsing the content of message PGN 129038 "AIS position reports
for Class A". More... | |
bool | ParseN2kPGN129039 (const tN2kMsg &N2kMsg, uint8_t &MessageID, tN2kAISRepeat &Repeat, uint32_t &UserID, double &Latitude, double &Longitude, bool &Accuracy, bool &RAIM, uint8_t &Seconds, double &COG, double &SOG, tN2kAISTransceiverInformation &AISTransceiverInformation, double &Heading, tN2kAISUnit &Unit, bool &Display, bool &DSC, bool &Band, bool &Msg22, tN2kAISMode &Mode, bool &State) |
Parsing the content of message PGN 129039 "AIS position reports
for Class B". More... | |
bool | ParseN2kPGN129041 (const tN2kMsg &N2kMsg, tN2kAISAtoNReportData &N2kData) |
Parsing the content of message PGN 129041 "AIS Aids to
Navigation (AtoN) Report". More... | |
bool | ParseN2kPGN129283 (const tN2kMsg &N2kMsg, unsigned char &SID, tN2kXTEMode &XTEMode, bool &NavigationTerminated, double &XTE) |
Parsing the content of Message PGN 129283 Message "Cross Track Error". More... | |
bool | ParseN2kPGN129284 (const tN2kMsg &N2kMsg, unsigned char &SID, double &DistanceToWaypoint, tN2kHeadingReference &BearingReference, bool &PerpendicularCrossed, bool &ArrivalCircleEntered, tN2kDistanceCalculationType &CalculationType, double &ETATime, int16_t &ETADate, double &BearingOriginToDestinationWaypoint, double &BearingPositionToDestinationWaypoint, uint32_t &OriginWaypointNumber, uint32_t &DestinationWaypointNumber, double &DestinationLatitude, double &DestinationLongitude, double &WaypointClosingVelocity) |
Parsing the content of message PGN 129284 "Navigation Data". More... | |
bool | ParseN2kPgn129539 (const tN2kMsg &N2kMsg, unsigned char &SID, tN2kGNSSDOPmode &DesiredMode, tN2kGNSSDOPmode &ActualMode, double &HDOP, double &VDOP, double &TDOP) |
Parsing the content of message PGN 129539 "GNSS DOP data". More... | |
bool | ParseN2kPGN129540 (const tN2kMsg &N2kMsg, uint8_t SVIndex, tSatelliteInfo &SatelliteInfo) |
Parsing the content of message PGN 129540 "GNSS Satellites in View". More... | |
bool | ParseN2kPGN129540 (const tN2kMsg &N2kMsg, unsigned char &SID, tN2kRangeResidualMode &Mode, uint8_t &NumberOfSVs) |
Parsing the content of message PGN 129540 "GNSS Satellites in View". More... | |
bool | ParseN2kPGN129794 (const tN2kMsg &N2kMsg, uint8_t &MessageID, tN2kAISRepeat &Repeat, uint32_t &UserID, uint32_t &IMOnumber, char *Callsign, size_t CallsignBufSize, char *Name, size_t NameBufSize, uint8_t &VesselType, double &Length, double &Beam, double &PosRefStbd, double &PosRefBow, uint16_t &ETAdate, double &ETAtime, double &Draught, char *Destination, size_t DestinationBufSize, tN2kAISVersion &AISversion, tN2kGNSStype &GNSStype, tN2kAISDTE &DTE, tN2kAISTransceiverInformation &AISinfo) |
Parsing the content of message PGN 129794 "AIS static data class A". More... | |
bool | ParseN2kPGN129802 (const tN2kMsg &N2kMsg, uint8_t &MessageID, tN2kAISRepeat &Repeat, uint32_t &SourceID, tN2kAISTransceiverInformation &AISTransceiverInformation, char *SafetyRelatedText, size_t &SafetyRelatedTextMaxSize) |
Parsing the Content of a PGN129802 Message - "AIS Safety Related
Broadcast Message". More... | |
bool | ParseN2kPGN129809 (const tN2kMsg &N2kMsg, uint8_t &MessageID, tN2kAISRepeat &Repeat, uint32_t &UserID, char *Name, size_t NameBufSize) |
Parsing the content of message PGN 129809 "AIS static data
class B part A". More... | |
bool | ParseN2kPGN129810 (const tN2kMsg &N2kMsg, uint8_t &MessageID, tN2kAISRepeat &Repeat, uint32_t &UserID, uint8_t &VesselType, char *Vendor, size_t VendorBufSize, char *Callsign, size_t CallsignBufSize, double &Length, double &Beam, double &PosRefStbd, double &PosRefBow, uint32_t &MothershipID) |
bool | ParseN2kPGN130306 (const tN2kMsg &N2kMsg, unsigned char &SID, double &WindSpeed, double &WindAngle, tN2kWindReference &WindReference) |
Parsing the content of message PGN 130306 "Wind Data". More... | |
bool | ParseN2kPGN130310 (const tN2kMsg &N2kMsg, unsigned char &SID, double &WaterTemperature, double &OutsideAmbientAirTemperature, double &AtmosphericPressure) |
Parsing the content of message PGN 130310 "Environmental Parameters - DEPRECATED". More... | |
bool | ParseN2kPGN130311 (const tN2kMsg &N2kMsg, unsigned char &SID, tN2kTempSource &TempSource, double &Temperature, tN2kHumiditySource &HumiditySource, double &Humidity, double &AtmosphericPressure) |
Parsing the content of message PGN 130311 "Environmental Parameters - DEPRECATED". More... | |
bool | ParseN2kPGN130312 (const tN2kMsg &N2kMsg, unsigned char &SID, unsigned char &TempInstance, tN2kTempSource &TempSource, double &ActualTemperature, double &SetTemperature) |
Parsing the content of message PGN 130312 "Temperature - DEPRECATED". More... | |
bool | ParseN2kPGN130313 (const tN2kMsg &N2kMsg, unsigned char &SID, unsigned char &HumidityInstance, tN2kHumiditySource &HumiditySource, double &ActualHumidity, double &SetHumidity) |
Parsing the content of message PGN 130313 "Humidity". More... | |
bool | ParseN2kPGN130314 (const tN2kMsg &N2kMsg, unsigned char &SID, unsigned char &PressureInstance, tN2kPressureSource &PressureSource, double &ActualPressure) |
Parsing the content of message PGN 130314 "Actual Pressure". More... | |
bool | ParseN2kPGN130316 (const tN2kMsg &N2kMsg, unsigned char &SID, unsigned char &TempInstance, tN2kTempSource &TempSource, double &ActualTemperature, double &SetTemperature) |
Parsing the content of message PGN 130316 "Temperature,
Extended Range". More... | |
bool | ParseN2kPGN130323 (const tN2kMsg &N2kMsg, tN2kMeteorlogicalStationData &N2kData) |
Parsing the content of message PGN 130323 "Meterological Station Data". More... | |
bool | ParseN2kPGN130576 (const tN2kMsg &N2kMsg, int8_t &PortTrimTab, int8_t &StbdTrimTab) |
Parsing the content of message PGN 130576 "Trim Tab Status". More... | |
bool | ParseN2kPGN130577 (const tN2kMsg &N2kMsg, tN2kDataMode &DataMode, tN2kHeadingReference &CogReference, unsigned char &SID, double &COG, double &SOG, double &Heading, double &SpeedThroughWater, double &Set, double &Drift) |
Parsing the content of message PGN 130577 "Direction Data". More... | |
void | SetN2kPGN126992 (tN2kMsg &N2kMsg, unsigned char SID, uint16_t SystemDate, double SystemTime, tN2kTimeSource TimeSource) |
Setting up PGN126992 Message "System date/time". More... | |
void | SetN2kPGN127233 (tN2kMsg &N2kMsg, unsigned char SID, uint32_t MobEmitterId, tN2kMOBStatus MOBStatus, double ActivationTime, tN2kMOBPositionSource PositionSource, uint16_t PositionDate, double PositionTime, double Latitude, double Longitude, tN2kHeadingReference COGReference, double COG, double SOG, uint32_t MMSI, tN2kMOBEmitterBatteryStatus MOBEmitterBatteryStatus) |
Setting up PGN127233 Message "Man Overboard Notification". More... | |
void | SetN2kPGN127237 (tN2kMsg &N2kMsg, tN2kOnOff RudderLimitExceeded, tN2kOnOff OffHeadingLimitExceeded, tN2kOnOff OffTrackLimitExceeded, tN2kOnOff Override, tN2kSteeringMode SteeringMode, tN2kTurnMode TurnMode, tN2kHeadingReference HeadingReference, tN2kRudderDirectionOrder CommandedRudderDirection, double CommandedRudderAngle, double HeadingToSteerCourse, double Track, double RudderLimit, double OffHeadingLimit, double RadiusOfTurnOrder, double RateOfTurnOrder, double OffTrackLimit, double VesselHeading) |
Setting up PGN127237 Message "Heading/Track control". More... | |
void | SetN2kPGN127245 (tN2kMsg &N2kMsg, double RudderPosition, unsigned char Instance, tN2kRudderDirectionOrder RudderDirectionOrder, double AngleOrder) |
Setting up PGN127245 Message "Rudder". More... | |
void | SetN2kPGN127250 (tN2kMsg &N2kMsg, unsigned char SID, double Heading, double Deviation, double Variation, tN2kHeadingReference ref) |
Setting up PGN127250 Message "Vessel Heading". More... | |
void | SetN2kPGN127251 (tN2kMsg &N2kMsg, unsigned char SID, double RateOfTurn) |
Setting up PGN 127251 Message "Rate of Turn". More... | |
void | SetN2kPGN127252 (tN2kMsg &N2kMsg, unsigned char SID, double Heave, double Delay, tN2kDelaySource DelaySource) |
Setting up PGN 127252 Message "Heave". More... | |
void | SetN2kPGN127257 (tN2kMsg &N2kMsg, unsigned char SID, double Yaw, double Pitch, double Roll) |
Setting up PGN 127257 Message "Attitude". More... | |
void | SetN2kPGN127258 (tN2kMsg &N2kMsg, unsigned char SID, tN2kMagneticVariation Source, uint16_t DaysSince1970, double Variation) |
Setting up PGN 127258 Message "Magnetic Variation". More... | |
void | SetN2kPGN127488 (tN2kMsg &N2kMsg, unsigned char EngineInstance, double EngineSpeed, double EngineBoostPressure, int8_t EngineTiltTrim) |
Setting up PGN 127488 Message "Engine parameters rapid". More... | |
void | SetN2kPGN127489 (tN2kMsg &N2kMsg, unsigned char EngineInstance, double EngineOilPress, double EngineOilTemp, double EngineCoolantTemp, double AltenatorVoltage, double FuelRate, double EngineHours, double EngineCoolantPress, double EngineFuelPress, int8_t EngineLoad, int8_t EngineTorque, tN2kEngineDiscreteStatus1 Status1, tN2kEngineDiscreteStatus2 Status2) |
Setting up PGN 127489 Message "Engine parameters dynamic". More... | |
void | SetN2kPGN127493 (tN2kMsg &N2kMsg, unsigned char EngineInstance, tN2kTransmissionGear TransmissionGear, double OilPressure, double OilTemperature, unsigned char DiscreteStatus1) |
Setting up PGN 127493 Message "Transmission parameters, dynamic". More... | |
void | SetN2kPGN127497 (tN2kMsg &N2kMsg, unsigned char EngineInstance, double TripFuelUsed, double FuelRateAverage, double FuelRateEconomy, double InstantaneousFuelEconomy) |
Setting up PGN 127497 Message "Trip Parameters, Engine". More... | |
void | SetN2kPGN127501 (tN2kMsg &N2kMsg, unsigned char DeviceBankInstance, tN2kBinaryStatus BankStatus) |
Setting up PGN 127501 Message "Universal Binary Status Report". More... | |
void | SetN2kPGN127501 (tN2kMsg &N2kMsg, unsigned char DeviceBankInstance, tN2kOnOff Status1, tN2kOnOff Status2, tN2kOnOff Status3, tN2kOnOff Status4) |
Setting up PGN 127501 Message "Universal Binary Status Report". More... | |
void | SetN2kPGN127502 (tN2kMsg &N2kMsg, unsigned char TargetBankInstance, tN2kBinaryStatus BankStatus) |
Set up PGN 127502 "Switch Bank Control" message. More... | |
void | SetN2kPGN127505 (tN2kMsg &N2kMsg, unsigned char Instance, tN2kFluidType FluidType, double Level, double Capacity) |
Setting up PGN 127505 Message "Fluid level". More... | |
void | SetN2kPGN127506 (tN2kMsg &N2kMsg, unsigned char SID, unsigned char DCInstance, tN2kDCType DCType, uint8_t StateOfCharge, uint8_t StateOfHealth, double TimeRemaining, double RippleVoltage, double Capacity) |
void | SetN2kPGN127507 (tN2kMsg &N2kMsg, unsigned char Instance, unsigned char BatteryInstance, tN2kChargeState ChargeState, tN2kChargerMode ChargerMode, tN2kOnOff Enabled, tN2kOnOff EqualizationPending, double EqualizationTimeRemaining) |
Setting up PGN 127507 Message "DC Charger Status". More... | |
void | SetN2kPGN127508 (tN2kMsg &N2kMsg, unsigned char BatteryInstance, double BatteryVoltage, double BatteryCurrent, double BatteryTemperature, unsigned char SID) |
Setting up PGN 127508 Message "Battery Status". More... | |
void | SetN2kPGN127513 (tN2kMsg &N2kMsg, unsigned char BatInstance, tN2kBatType BatType, tN2kBatEqSupport SupportsEqual, tN2kBatNomVolt BatNominalVoltage, tN2kBatChem BatChemistry, double BatCapacity, int8_t BatTemperatureCoefficient, double PeukertExponent, int8_t ChargeEfficiencyFactor) |
Setting up PGN 127513 Message "Battery Configuration Status". More... | |
void | SetN2kPGN128000 (tN2kMsg &N2kMsg, unsigned char SID, double Leeway) |
Setting up PGN 128000 Message "Nautical Leeway Angle". More... | |
void | SetN2kPGN128259 (tN2kMsg &N2kMsg, unsigned char SID, double WaterReferenced, double GroundReferenced, tN2kSpeedWaterReferenceType SWRT) |
Setting up PGN 128259 Message "Boat Speed, Water Referenced". More... | |
void | SetN2kPGN128267 (tN2kMsg &N2kMsg, unsigned char SID, double DepthBelowTransducer, double Offset, double Range) |
Setting up PGN 128267 Message "Water depth". More... | |
void | SetN2kPGN128275 (tN2kMsg &N2kMsg, uint16_t DaysSince1970, double SecondsSinceMidnight, uint32_t Log, uint32_t TripLog) |
Setting up PGN 128275 Message "Distance log". More... | |
void | SetN2kPGN128776 (tN2kMsg &N2kMsg, unsigned char SID, unsigned char WindlassIdentifier, tN2kWindlassDirectionControl WindlassDirectionControl, unsigned char SpeedControl, tN2kSpeedType SpeedControlType, tN2kGenericStatusPair AnchorDockingControl, tN2kGenericStatusPair PowerEnable, tN2kGenericStatusPair MechanicalLock, tN2kGenericStatusPair DeckAndAnchorWash, tN2kGenericStatusPair AnchorLight, double CommandTimeout, const tN2kWindlassControlEvents &WindlassControlEvents) |
Setting up PGN 128776 Message "Anchor Windlass Control Status". More... | |
void | SetN2kPGN128777 (tN2kMsg &N2kMsg, unsigned char SID, unsigned char WindlassIdentifier, double RodeCounterValue, double WindlassLineSpeed, tN2kWindlassMotionStates WindlassMotionStatus, tN2kRodeTypeStates RodeTypeStatus, tN2kAnchorDockingStates AnchorDockingStatus, const tN2kWindlassOperatingEvents &WindlassOperatingEvents) |
Setting up PGN 128777 Message "Anchor Windlass Operating Status". More... | |
void | SetN2kPGN128778 (tN2kMsg &N2kMsg, unsigned char SID, unsigned char WindlassIdentifier, double TotalMotorTime, double ControllerVoltage, double MotorCurrent, const tN2kWindlassMonitoringEvents &WindlassMonitoringEvents) |
Setting up PGN 128778Message "Anchor Windlass Monitoring Status". More... | |
void | SetN2kPGN129025 (tN2kMsg &N2kMsg, double Latitude, double Longitude) |
Setting up PGN 129025 Message "Position, Rapid Update". More... | |
void | SetN2kPGN129026 (tN2kMsg &N2kMsg, unsigned char SID, tN2kHeadingReference ref, double COG, double SOG) |
Setting up PGN 129026 Message "COG SOG rapid update". More... | |
void | SetN2kPGN129029 (tN2kMsg &N2kMsg, unsigned char SID, uint16_t DaysSince1970, double SecondsSinceMidnight, double Latitude, double Longitude, double Altitude, tN2kGNSStype GNSStype, tN2kGNSSmethod GNSSmethod, unsigned char nSatellites, double HDOP, double PDOP, double GeoidalSeparation, unsigned char nReferenceStations, tN2kGNSStype ReferenceStationType, uint16_t ReferenceSationID, double AgeOfCorrection) |
Setting up PGN 129029 Message "GNSS Position Data". More... | |
void | SetN2kPGN129033 (tN2kMsg &N2kMsg, uint16_t DaysSince1970, double SecondsSinceMidnight, int16_t LocalOffset) |
Setting up PGN 129033 Message "Date,Time & Local offset". More... | |
void | SetN2kPGN129038 (tN2kMsg &N2kMsg, uint8_t MessageID, tN2kAISRepeat Repeat, uint32_t UserID, double Latitude, double Longitude, bool Accuracy, bool RAIM, uint8_t Seconds, double COG, double SOG, tN2kAISTransceiverInformation AISTransceiverInformation, double Heading, double ROT, tN2kAISNavStatus NavStatus) |
Setting up PGN 129038 Message "AIS position reports for Class A". More... | |
void | SetN2kPGN129039 (tN2kMsg &N2kMsg, uint8_t MessageID, tN2kAISRepeat Repeat, uint32_t UserID, double Latitude, double Longitude, bool Accuracy, bool RAIM, uint8_t Seconds, double COG, double SOG, tN2kAISTransceiverInformation AISTransceiverInformation, double Heading, tN2kAISUnit Unit, bool Display, bool DSC, bool Band, bool Msg22, tN2kAISMode Mode, bool State, unsigned char SID) |
Setting up PGN 129039 Message "AIS position reports for Class B". More... | |
void | SetN2kPGN129041 (tN2kMsg &N2kMsg, const tN2kAISAtoNReportData &N2kData) |
Setting up PGN 129041 Message "AIS Aids to Navigation (AtoN) Report". More... | |
void | SetN2kPGN129283 (tN2kMsg &N2kMsg, unsigned char SID, tN2kXTEMode XTEMode, bool NavigationTerminated, double XTE) |
Setting up PGN 129283 Message "Cross Track Error". More... | |
void | SetN2kPGN129284 (tN2kMsg &N2kMsg, unsigned char SID, double DistanceToWaypoint, tN2kHeadingReference BearingReference, bool PerpendicularCrossed, bool ArrivalCircleEntered, tN2kDistanceCalculationType CalculationType, double ETATime, int16_t ETADate, double BearingOriginToDestinationWaypoint, double BearingPositionToDestinationWaypoint, uint32_t OriginWaypointNumber, uint32_t DestinationWaypointNumber, double DestinationLatitude, double DestinationLongitude, double WaypointClosingVelocity) |
Setting up PGN 129284 Message "Navigation Data". More... | |
void | SetN2kPGN129285 (tN2kMsg &N2kMsg, uint16_t Start, uint16_t Database, uint16_t Route, tN2kNavigationDirection NavDirection, const char *RouteName, tN2kGenericStatusPair SupplementaryData) |
Setting up PGN 129285 Message "Route/WP information". More... | |
void | SetN2kPGN129539 (tN2kMsg &N2kMsg, unsigned char SID, tN2kGNSSDOPmode DesiredMode, tN2kGNSSDOPmode ActualMode, double HDOP, double VDOP, double TDOP) |
Setting up PGN 129539 Message "GNSS DOP data". More... | |
void | SetN2kPGN129540 (tN2kMsg &N2kMsg, unsigned char SID, tN2kRangeResidualMode Mode) |
Setting up PGN 129540 Message "GNSS Satellites in View". More... | |
void | SetN2kPGN129794 (tN2kMsg &N2kMsg, uint8_t MessageID, tN2kAISRepeat Repeat, uint32_t UserID, uint32_t IMOnumber, const char *Callsign, const char *Name, uint8_t VesselType, double Length, double Beam, double PosRefStbd, double PosRefBow, uint16_t ETAdate, double ETAtime, double Draught, const char *Destination, tN2kAISVersion AISversion, tN2kGNSStype GNSStype, tN2kAISDTE DTE, tN2kAISTransceiverInformation AISinfo) |
Setting up PGN 129794 Message "AIS static data class A". More... | |
void | SetN2kPGN129802 (tN2kMsg &N2kMsg, uint8_t MessageID, tN2kAISRepeat Repeat, uint32_t SourceID, tN2kAISTransceiverInformation AISTransceiverInformation, char *SafetyRelatedText) |
Setting up PGN129802 Message "AIS Safety Related Broadcast Message". More... | |
void | SetN2kPGN129809 (tN2kMsg &N2kMsg, uint8_t MessageID, tN2kAISRepeat Repeat, uint32_t UserID, const char *Name) |
Setting up PGN 129809 Message "AIS static data class B part A". More... | |
void | SetN2kPGN129810 (tN2kMsg &N2kMsg, uint8_t MessageID, tN2kAISRepeat Repeat, uint32_t UserID, uint8_t VesselType, const char *Vendor, const char *Callsign, double Length, double Beam, double PosRefStbd, double PosRefBow, uint32_t MothershipID) |
Setting up PGN 129810 Message "AIS static data class B part B". More... | |
void | SetN2kPGN130074 (tN2kMsg &N2kMsg, uint16_t Start, uint16_t NumWaypoints, uint16_t Database) |
Setting up PGN 130074 Message " Route and WP Service - WP List -
WP Name & Position". More... | |
void | SetN2kPGN130306 (tN2kMsg &N2kMsg, unsigned char SID, double WindSpeed, double WindAngle, tN2kWindReference WindReference) |
Setting up PGN 130306 Message "Wind Data". More... | |
void | SetN2kPGN130310 (tN2kMsg &N2kMsg, unsigned char SID, double WaterTemperature, double OutsideAmbientAirTemperature, double AtmosphericPressure) |
Setting up PGN 130310 Message " Environmental Parameters - DEPRECATED". More... | |
void | SetN2kPGN130311 (tN2kMsg &N2kMsg, unsigned char SID, tN2kTempSource TempSource, double Temperature, tN2kHumiditySource HumiditySource, double Humidity, double AtmosphericPressure) |
Setting up PGN 130311 Message "Environmental Parameters - DEPRECATED". More... | |
void | SetN2kPGN130312 (tN2kMsg &N2kMsg, unsigned char SID, unsigned char TempInstance, tN2kTempSource TempSource, double ActualTemperature, double SetTemperature) |
Setting up PGN 130312 Message "Temperature - DEPRECATED". More... | |
void | SetN2kPGN130313 (tN2kMsg &N2kMsg, unsigned char SID, unsigned char HumidityInstance, tN2kHumiditySource HumiditySource, double ActualHumidity, double SetHumidity) |
Setting up PGN 130313 Message "Humidity". More... | |
void | SetN2kPGN130314 (tN2kMsg &N2kMsg, unsigned char SID, unsigned char PressureInstance, tN2kPressureSource PressureSource, double ActualPressure) |
Setting up PGN 130314 Message "Actual Pressure". More... | |
void | SetN2kPGN130315 (tN2kMsg &N2kMsg, unsigned char SID, unsigned char PressureInstance, tN2kPressureSource PressureSource, double SetPressure) |
Setting up PGN 130315 Message "Set Pressure". More... | |
void | SetN2kPGN130316 (tN2kMsg &N2kMsg, unsigned char SID, unsigned char TempInstance, tN2kTempSource TempSource, double ActualTemperature, double SetTemperature) |
Setting up PGN 130316 Message "Temperature, Extended Range". More... | |
void | SetN2kPGN130323 (tN2kMsg &N2kMsg, const tN2kMeteorlogicalStationData &N2kData) |
Setting up PGN 130323 Message "Meterological Station Data". More... | |
void | SetN2kPGN130576 (tN2kMsg &N2kMsg, int8_t PortTrimTab, int8_t StbdTrimTab) |
Setting up PGN 130576 Message "Trim Tab Status". More... | |
void | SetN2kPGN130577 (tN2kMsg &N2kMsg, tN2kDataMode DataMode, tN2kHeadingReference CogReference, unsigned char SID, double COG, double SOG, double Heading, double SpeedThroughWater, double Set, double Drift) |
Setting up PGN 130577 Message "Direction Data". More... | |
#define MaxSatelliteInfoCount 18 |
Definition at line 1255 of file N2kMessages.cpp.
tN2kOnOff N2kGetStatusOnBinaryStatus | ( | tN2kBinaryStatus | BankStatus, |
uint8_t | ItemIndex = 1 |
||
) |
Get single status to full binary bank status.
This helper function gets a single item statue tN2kOnOff out of a 64bit (8byte) bank status value. The bank status can carry up to 28 individual item states.
BankStatus | 64bit full bank status tN2kBinaryStatus |
ItemIndex | index of the item [1 .. 28] |
Definition at line 560 of file N2kMessages.cpp.
void N2kSetStatusBinaryOnStatus | ( | tN2kBinaryStatus & | BankStatus, |
tN2kOnOff | ItemStatus, | ||
uint8_t | ItemIndex = 1 |
||
) |
Set single status to full binary bank status.
This helper function sets a single item statue tN2kOnOff in a 64bit (8byte) bank status value. The bank status can carry up to 28 individual item states.
BankStatus | 64bit full bank status tN2kBinaryStatus |
ItemStatus | individual item status |
ItemIndex | index of the item [1 .. 28] |
Definition at line 568 of file N2kMessages.cpp.
bool ParseN2kPGN127506 | ( | const tN2kMsg & | N2kMsg, |
unsigned char & | SID, | ||
unsigned char & | DCInstance, | ||
tN2kDCType & | DCType, | ||
uint8_t & | StateOfCharge, | ||
uint8_t & | StateOfHealth, | ||
double & | TimeRemaining, | ||
double & | RippleVoltage, | ||
double & | Capacity | ||
) |
Definition at line 702 of file N2kMessages.cpp.
bool ParseN2kPGN129029 | ( | const tN2kMsg & | N2kMsg, |
unsigned char & | SID, | ||
uint16_t & | DaysSince1970, | ||
double & | SecondsSinceMidnight, | ||
double & | Latitude, | ||
double & | Longitude, | ||
double & | Altitude, | ||
tN2kGNSStype & | GNSStype, | ||
tN2kGNSSmethod & | GNSSmethod, | ||
uint8_t & | nSatellites, | ||
double & | HDOP, | ||
double & | PDOP, | ||
double & | GeoidalSeparation, | ||
uint8_t & | nReferenceStations, | ||
tN2kGNSStype & | ReferenceStationType, | ||
uint16_t & | ReferenceSationID, | ||
double & | AgeOfCorrection | ||
) |
Definition at line 1160 of file N2kMessages.cpp.
bool ParseN2kPGN129810 | ( | 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 | ||
) |
Definition at line 1717 of file N2kMessages.cpp.
void SetN2kPGN127506 | ( | tN2kMsg & | N2kMsg, |
unsigned char | SID, | ||
unsigned char | DCInstance, | ||
tN2kDCType | DCType, | ||
uint8_t | StateOfCharge, | ||
uint8_t | StateOfHealth, | ||
double | TimeRemaining, | ||
double | RippleVoltage, | ||
double | Capacity | ||
) |
Definition at line 687 of file N2kMessages.cpp.