NMEA2000 Library
0.1
Library to handle NMEA 2000 Communication written in C++
|
Collection of functions for handling NMEA2000 bus Maretron messages. More...
Go to the source code of this file.
Functions | |
bool | ParseN2kMaretronFluidFR (const tN2kMsg &N2kMsg, unsigned char &SID, unsigned char &FlowRateInstance, tN2kFluidType &FluidType, double &FluidFlowRate) |
Parsing the content of Maretron Message "Fluid Flow Rate" - PGN 65286. More... | |
bool | ParseN2kMaretronPGN130823 (const tN2kMsg &N2kMsg, unsigned char &SID, unsigned char &TempInstance, tN2kTempSource &TempSource, double &ActualTemperature, double &SetTemperature) |
Parsing the content of Maretron Message PGN 130823 "Temperature High Range". More... | |
bool | ParseN2kMaretronPGN65286 (const tN2kMsg &N2kMsg, unsigned char &SID, unsigned char &FlowRateInstance, tN2kFluidType &FluidType, double &FluidFlowRate) |
Parsing the content of Maretron Message PGN 65286 "Fluid Flow Rate". More... | |
bool | ParseN2kMaretronPGN65287 (const tN2kMsg &N2kMsg, unsigned char &SID, unsigned char &VolumeInstance, tN2kFluidType &FluidType, double &TripVolume) |
Parsing the content of Maretron Message PGN 65287 "Trip Volume". More... | |
bool | ParseN2kMaretronTempHR (const tN2kMsg &N2kMsg, unsigned char &SID, unsigned char &TempInstance, tN2kTempSource &TempSource, double &ActualTemperature, double &SetTemperature) |
Parsing the content of Maretron Message "Temperature High Range" - PGN 130823. More... | |
bool | ParseN2kMaretronTripVolume (const tN2kMsg &N2kMsg, unsigned char &SID, unsigned char &VolumeInstance, tN2kFluidType &FluidType, double &TripVolume) |
Parsing the content of Maretron Message "Trip Volume" - PGN 65287. More... | |
void | SetN2kMaretronFluidFR (tN2kMsg &N2kMsg, unsigned char SID, unsigned char FlowRateInstance, tN2kFluidType FluidType, double FluidFlowRate) |
Setting up Maretron Message "Fluid Flow Rate" - PGN 65286. More... | |
void | SetN2kMaretronPGN130823 (tN2kMsg &N2kMsg, unsigned char SID, unsigned char TempInstance, tN2kTempSource TempSource, double ActualTemperature, double SetTemperature=N2kDoubleNA) |
Setting up PGN 130823 for Maretron Message "Temperature High Range". More... | |
void | SetN2kMaretronPGN65286 (tN2kMsg &N2kMsg, unsigned char SID, unsigned char FlowRateInstance, tN2kFluidType FluidType, double FluidFlowRate) |
Setting up PGN 65286 for Maretron Message "Fluid Flow Rate". More... | |
void | SetN2kMaretronPGN65287 (tN2kMsg &N2kMsg, unsigned char SID, unsigned char VolumeInstance, tN2kFluidType FluidType, double TripVolume) |
Setting up PGN 65287 for Maretron Message "Trip Volume". More... | |
void | SetN2kMaretronTempHR (tN2kMsg &N2kMsg, unsigned char SID, unsigned char TempInstance, tN2kTempSource TempSource, double ActualTemperature, double SetTemperature=N2kDoubleNA) |
Setting up Maretron Message "Temperature High Range" - PGN 130823. More... | |
void | SetN2kMaretronTripVolume (tN2kMsg &N2kMsg, unsigned char SID, unsigned char VolumeInstance, tN2kFluidType FluidType, double TripVolume) |
Setting up Maretron Message "Trip Volume" - PGN 65287. More... | |
Collection of functions for handling NMEA2000 bus Maretron messages.
This is collection of functions for handling NMEA2000 bus Maretron messages. Library contains functions to e.g. create message named with PGN like SetN2kPGN130823 and inline alias for them like SetN2kLatLonRapid. Each Setxxx funtion sets related message PGN and its default priority. So if you want to change priority on function, you have to do it after Setxxx call.
If you do not send any Maretron messages to NMEA2000 bus, you do not need this library.
Definition in file N2kMaretron.h.
|
inline |
Parsing the content of Maretron Message "Fluid Flow Rate" - PGN 65286.
Alias of PGN 65286. This alias was introduced to improve the readability of the source code. See parameter details on ParseN2kMaretronPGN65286
Definition at line 218 of file N2kMaretron.h.
bool ParseN2kMaretronPGN130823 | ( | const tN2kMsg & | N2kMsg, |
unsigned char & | SID, | ||
unsigned char & | TempInstance, | ||
tN2kTempSource & | TempSource, | ||
double & | ActualTemperature, | ||
double & | SetTemperature | ||
) |
Parsing the content of Maretron Message PGN 130823 "Temperature High Range".
This Temperature High Range Message is used e.g. by MARETRON TMP100. The wide range is required for very high temperature values (e.g. Exhaust Gas Temperatures). see [Maretron TMP100] (https://www.maretron.com/products/tmp100.php)
N2kMsg | Reference to a N2kMsg Object, Output: NMEA2000 message ready to be send. |
SID | Sequence ID. Normally you can just forget its value. See SID. |
TempInstance | This should be unique at least on one device. May be best to have it unique over all devices sending this PGN. |
TempSource | Source of the temperature, see tN2kTempSource |
ActualTemperature | Temperature in K. Use function CToKelvin, if you want to use °C. |
SetTemperature | Set temperature in K. Use function CToKelvin, if you want to use °C. This is meaningful for temperatures which can be controlled like cabin, freezer, refrigeration temperature. |
Definition at line 50 of file N2kMaretron.cpp.
bool ParseN2kMaretronPGN65286 | ( | const tN2kMsg & | N2kMsg, |
unsigned char & | SID, | ||
unsigned char & | FlowRateInstance, | ||
tN2kFluidType & | FluidType, | ||
double & | FluidFlowRate | ||
) |
Parsing the content of Maretron Message PGN 65286 "Fluid Flow Rate".
This Fluid Flow Rate Message is used e.g. by MARETRON FFM100. With this fuel flow rate it is possible to monitor Diesel Fuel , Gasoline/Petrol Fuel Flow and Cooling Water Flow.
see [Maretron FFM100] (https://www.maretron.com/products/ffm100.php)
N2kMsg | Reference to a N2kMsg Object, Output: NMEA2000 message ready to be send. |
SID | Sequence ID. Normally you can just forget its value. See SID. |
FlowRateInstance | This should be unique at least on one device. May be best to have it unique over all devices sending this PGN. |
FluidType | Type of Fluid, see tN2kFluidType [possible values for this field include Fuel, Fresh Water, Waste Water, Live Well, Oil, and Black Water] |
FluidFlowRate | This field is used to indicate the rate of fluid flow in units litres/hour. |
Definition at line 77 of file N2kMaretron.cpp.
bool ParseN2kMaretronPGN65287 | ( | const tN2kMsg & | N2kMsg, |
unsigned char & | SID, | ||
unsigned char & | VolumeInstance, | ||
tN2kFluidType & | FluidType, | ||
double & | TripVolume | ||
) |
Parsing the content of Maretron Message PGN 65287 "Trip Volume".
This Trip Volume Message is used e.g. by MARETRON FFM100. With this Trip Volume it is possible to monitor Diesel Fuel , Gasoline/Petrol Fuel Flow and Cooling Water Flow.
see [Maretron FFM100] (https://www.maretron.com/products/ffm100.php)
N2kMsg | Reference to a N2kMsg Object, Output: NMEA2000 message ready to be send. |
SID | Sequence ID. Normally you can just forget its value. See SID. |
VolumeInstance | This should be unique at least on one device. May be best to have it unique over all devices sending this PGN. |
FluidType | Type of Fluid, see tN2kFluidType [possible values for this field include Fuel, Fresh Water, Waste Water, Live Well, Oil, and Black Water] |
TripVolume | This field is used to indicate the trip volume units of litres. |
Definition at line 103 of file N2kMaretron.cpp.
|
inline |
Parsing the content of Maretron Message "Temperature High Range" - PGN 130823.
Alias of PGN 130823. This alias was introduced to improve the readability of the source code. See parameter details on ParseN2kMaretronPGN130823
Definition at line 134 of file N2kMaretron.h.
|
inline |
Parsing the content of Maretron Message "Trip Volume" - PGN 65287.
Alias of PGN 65287. This alias was introduced to improve the readability of the source code. See parameter details on ParseN2kMaretronPGN65287
Definition at line 300 of file N2kMaretron.h.
|
inline |
Setting up Maretron Message "Fluid Flow Rate" - PGN 65286.
Alias of PGN 65286. This alias was introduced to improve the readability of the source code. See parameter details on SetN2kMaretronPGN65286
Definition at line 176 of file N2kMaretron.h.
void SetN2kMaretronPGN130823 | ( | tN2kMsg & | N2kMsg, |
unsigned char | SID, | ||
unsigned char | TempInstance, | ||
tN2kTempSource | TempSource, | ||
double | ActualTemperature, | ||
double | SetTemperature = N2kDoubleNA |
||
) |
Setting up PGN 130823 for Maretron Message "Temperature High Range".
This Temperature High Range Message is used e.g. by MARETRON TMP100. The wide range is required for very high temperature values (e.g. Exhaust Gas Temperatures). see [Maretron TMP100] (https://www.maretron.com/products/tmp100.php)
N2kMsg | Reference to a N2kMsg Object, Output: NMEA2000 message ready to be send. |
SID | Sequence identifier. In most cases you can use just 0xff for SID. See SID. The sequence identifier field is used to tie different PGNs data together to same sampling or calculation time. |
TempInstance | This should be unique at least on one device. May be best to have it unique over all devices sending this PGN. |
TempSource | Source of the temperature, see tN2kTempSource |
ActualTemperature | Temperature in K. Use function CToKelvin, if you want to use °C. |
SetTemperature | Set temperature in K. Use function CToKelvin, if you want to use °C. This is meaningful for temperatures which can be controlled like cabin, freezer, refrigeration temperature. |
Definition at line 38 of file N2kMaretron.cpp.
void SetN2kMaretronPGN65286 | ( | tN2kMsg & | N2kMsg, |
unsigned char | SID, | ||
unsigned char | FlowRateInstance, | ||
tN2kFluidType | FluidType, | ||
double | FluidFlowRate | ||
) |
Setting up PGN 65286 for Maretron Message "Fluid Flow Rate".
This Fluid Flow Rate Message is used e.g. by MARETRON FFM100. With this fuel flow rate it is possible to monitor Diesel Fuel , Gasoline/Petrol Fuel Flow and Cooling Water Flow.
see [Maretron FFM100] (https://www.maretron.com/products/ffm100.php)
N2kMsg | Reference to a N2kMsg Object, Output: NMEA2000 message ready to be send. |
SID | Sequence identifier. In most cases you can use just 0xff for SID. See SID. The sequence identifier field is used to tie different PGNs data together to same sampling or calculation time. |
FlowRateInstance | This should be unique at least on one device. May be best to have it unique over all devices sending this PGN. |
FluidType | Type of Fluid, see tN2kFluidType [possible values for this field include Fuel, Fresh Water, Waste Water, Live Well, Oil, and Black Water] |
FluidFlowRate | This field is used to indicate the rate of fluid flow in units litres/hour. |
Definition at line 66 of file N2kMaretron.cpp.
void SetN2kMaretronPGN65287 | ( | tN2kMsg & | N2kMsg, |
unsigned char | SID, | ||
unsigned char | VolumeInstance, | ||
tN2kFluidType | FluidType, | ||
double | TripVolume | ||
) |
Setting up PGN 65287 for Maretron Message "Trip Volume".
This Trip Volume Message is used e.g. by MARETRON FFM100. With this Trip Volume it is possible to monitor Diesel Fuel , Gasoline/Petrol Fuel Flow and Cooling Water Flow.
see [Maretron FFM100] (https://www.maretron.com/products/ffm100.php)
N2kMsg | Reference to a N2kMsg Object, Output: NMEA2000 message ready to be send. |
SID | Sequence identifier. In most cases you can use just 0xff for SID. See SID. The sequence identifier field is used to tie different PGNs data together to same sampling or calculation time. |
VolumeInstance | This should be unique at least on one device. May be best to have it unique over all devices sending this PGN. |
FluidType | Type of Fluid, see tN2kFluidType [possible values for this field include Fuel, Fresh Water, Waste Water, Live Well, Oil, and Black Water] |
TripVolume | This field is used to indicate the trip volume units of litres. |
Definition at line 92 of file N2kMaretron.cpp.
|
inline |
Setting up Maretron Message "Temperature High Range" - PGN 130823.
Alias of PGN 130823. This alias was introduced to improve the readability of the source code. See parameter details on SetN2kMaretronPGN130823
Definition at line 89 of file N2kMaretron.h.
|
inline |
Setting up Maretron Message "Trip Volume" - PGN 65287.
Alias of PGN 65287. This alias was introduced to improve the readability of the source code. See parameter details on SetN2kMaretronPGN65287
Definition at line 259 of file N2kMaretron.h.