47#ifndef _N2kMessagesEnumToStr_H_
48#define _N2kMessagesEnumToStr_H_
70 const char *str=N2kEnumTypeToStr(a);
102#define MakeN2kEnumTypeToStrFunc(enumType,strs) \
103const char * N2kEnumTypeToStr(enumType enumVal) { \
104 if ( enumVal<(sizeof(strs)/sizeof(const char *)) ) { \
105 return strs[enumVal]; \
106 } else { return N2kEnumTypeEmpty; }\
122const char*
tN2kTimeSourceStrs[] = {
"GPS",
"GLONASS",
"radio station",
"local cesium clock",
"local rubidium clock",
"local crystal clock" };
132const char*
tN2kGNSStypeStrs[] = {
"GPS",
"GLONASS",
"GPS+GLONASS",
"GPS+SBAS/WAAS",
"GPS+SBAS/WAAS+GLONASS",
"Chayka",
"integrated",
"surveyed",
"Galileo" };
150const char*
tN2kFluidTypeStrs[] = {
"Fuel",
"Water",
"Gray water",
"Live well",
"Oil",
"Black water",
"Gasoline Fuel",
151 "Reserved",
"Reserved",
"Reserved",
"Reserved",
"Reserved",
"Reserved",
"Reserved",
152 "Error",
"Unavailable",};
161const char*
tN2kTempSourceStrs[] = {
"sea",
"outside",
"inside",
"engine room",
"main cabin",
"live well",
"bait well",
"refridgeration",
162 "heating system",
"dew point",
"apparent wind chill",
"theoretical wind chill",
"heat index",
"freezer",
"exhaust gas"};
207const char*
tN2kDCTypeStrs[] = {
"battery",
"altenator",
"converter",
"solar cell",
"wind generator"};
234const char*
tN2kPressureStrs[] = {
"atmospheric",
"water",
"steam",
"compressed air",
"hydraulic",
"filter",
"altimete setting",
"oil",
"fuel" };
271const char*
tN2kMagneticVariationStrs[] = {
"Manual",
"Automatic Chart",
"Automatic Table",
"Automatic Calculation",
"WMM 2000",
"WMM 2005",
"WMM 2010",
"WMM 2015",
"WMM 2020" };
280const char*
const tN2kXTEModeStrs[] = {
"Autonomous",
"Differential",
"Estimated",
"Simulator" };
This File contains all SetXXX functions which will be needed to transfer data with a specific PGN.
const char * tN2kSpeedWaterReferenceTypeStrs[]
string representation of the N2k enum tN2kSpeedWaterReferenceType
const char * tN2kBatChemStrs[]
string representation of the N2k enum tN2kBatChem
const char * tN2kPressureStrs[]
string representation of the N2k enum tN2kPressureSource
const char * N2kEnumTypeEmpty
Default value if no string representation is found.
const char * tN2kGNSSmethodStrs[]
string representation of the N2k enum tN2kGNSSmethod
const char * tN2kHeadingReferenceStrs[]
string representation of the N2k enum tN2kHeadingReference
const char * tN2kBatTypeStrs[]
string representation of the N2k enum tN2kBatType
const char * tN2kGNSStypeStrs[]
string representation of the N2k enum tN2kGNSStype
const char * tN2kHumidityStrs[]
string representation of the N2k enum tN2kHumiditySource
const char * tN2kFluidTypeStrs[]
string representation of the N2k enum tN2kFluidType
const char * tN2kRudderDirectionOrderStrs[]
string representation of the N2k enum tN2kRudderDirectionOrder
const char * tN2kOnOffStrs[]
string representation of the N2k enum tN2kOnOff
const char * tN2kBatEqSupportStrs[]
string representation of the N2k enum tN2kBatEqSupport
const char * tN2kTransmissionGearStrs[]
string representation of the N2k enum tN2kTransmissionGear
const char * tN2kDCTypeStrs[]
string representation of the N2k enum tN2kDCType
const char * tN2kBatNomVoltStrs[]
string representation of the N2k enum tN2kBatNomVolt
const char * tN2kMagneticVariationStrs[]
string representation of the N2k enum tN2kMagneticVariation
void PrintN2kEnumType(T a, Stream *OutputStream, bool addLF=true)
Print function for the enum values.
const char * tN2kTimeSourceStrs[]
string representation of the N2k enum tN2kTimeSource
#define MakeN2kEnumTypeToStrFunc(enumType, strs)
Macro function for converting various N2k Enums to a const char.
const char * tN2kTempSourceStrs[]
string representation of the N2k enum tN2kTempSource
const char *const tN2kXTEModeStrs[]
string representation of the N2k enum tN2kXTEModeStrs
tN2kHeadingReference
Enumeration of the heading type according to PGN129233, PGN129237 , PGN129250, PGN129026 and PGN12928...
tN2kBatNomVolt
Enumeration of nominal battery voltage according to PGN 127513.
tN2kTimeSource
Enumeration of sources for the system time according to PGN126992.
tN2kMagneticVariation
Enumeration of magnetic variation according to PGN 127258.
tN2kRudderDirectionOrder
Enumeration of Rudder Direction Order according to PGN127237, 127245.
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.
tN2kOnOff
Enumeration of On/Off status at a NMEA 2000 network.
tN2kTempSource
Enumeration of sources for a temperature value according to PGN130311, PGN130312 and PGN130316.
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.
tN2kSpeedWaterReferenceType
Enumeration of speed thru water sensors types according to PGN128259.
tN2kBatEqSupport
Enumeration of Supports Equalization according to PGN 127513.
tN2kHumiditySource
Enumeration of sources for a humidity value according to PGN130311 and PGN130313.
tN2kPressureSource
Enumeration of sources for a pressure value according to PGN130314 and PGN130315.
tN2kFluidType
Enumeration of fluid types according to PGN127505.
tN2kXTEMode
Enumeration of Cross Track Error modes according to PGN129283.