NMEA2000 Library
0.1
Library to handle NMEA 2000 Communication written in C++
|
Base handler class for Group Functions. More...
#include <N2kGroupFunction.h>
Public Member Functions | |
tN2kGroupFunctionHandler (tNMEA2000 *_pNMEA2000, unsigned long _PGN) | |
Construct a new tN2kGroupFunctionHandler object. More... | |
virtual bool | Handle (const tN2kMsg &N2kMsg, tN2kGroupFunctionCode GroupFunctionCode, unsigned long PGNForGroupFunction, int iDev) |
Handle group function message. More... | |
void | MatchRequestField (const char *FieldVal, const char *MatchVal, bool &Match, tN2kGroupFunctionParameterErrorCode &ErrorCode) |
Class to test does string field on group function match to PGN field value. More... | |
template<typename T > | |
void | MatchRequestField (T FieldVal, T MatchVal, T Mask, bool &Match, tN2kGroupFunctionParameterErrorCode &ErrorCode) |
Template class to test does field on group function match to PGN field value. More... | |
Static Public Member Functions | |
static void | AddAcknowledgeParameter (tN2kMsg &N2kMsg, uint8_t ParameterPairIndex, tN2kGroupFunctionParameterErrorCode ErrorCode=N2kgfpec_ReadOrWriteIsNotSupported) |
Add parameter error code to acknowledge group function message. More... | |
static void | ChangePNGErrorCode (tN2kMsg &N2kMsg, tN2kGroupFunctionPGNErrorCode PGNErrorCode) |
Change the PGN error code for a acknowledge group function message. More... | |
static void | ChangeTransmissionOrPriorityErrorCode (tN2kMsg &N2kMsg, tN2kGroupFunctionTransmissionOrPriorityErrorCode TransmissionOrPriorityErrorCode) |
Change transmission interval or priority error code for acknowledge group function message. More... | |
static unsigned long | GetPGNForGroupFunction (const tN2kMsg &N2kMsg) |
Get requested/commanded etc. PGN from group function message. More... | |
static bool | Parse (const tN2kMsg &N2kMsg, tN2kGroupFunctionCode &GroupFunctionCode, unsigned long &PGNForGroupFunction) |
Parse group function code and requested/commanded etc. PGN from group function message. More... | |
static bool | ParseAcknowledgeParams (const tN2kMsg &N2kMsg, tN2kGroupFunctionPGNErrorCode &PGNErrorCode, tN2kGroupFunctionTransmissionOrPriorityErrorCode &TransmissionOrPriorityErrorCode, uint8_t &NumberOfParameterPairs) |
Parse parameters from acknowledge group function message. More... | |
static bool | ParseCommandParams (const tN2kMsg &N2kMsg, uint8_t &PrioritySetting, uint8_t &NumberOfParameterPairs) |
Parse parameters from command group function message. More... | |
static bool | ParseReadOrWriteParams (const tN2kMsg &N2kMsg, uint16_t &ManufacturerCode, uint8_t &IndustryGroup, uint8_t &UniqueID, uint8_t &NumberOfSelectionPairs, uint8_t &NumberOfParameterPairs, bool Proprietary=false) |
Parse parameters from read or write group function message. More... | |
static bool | ParseRequestParams (const tN2kMsg &N2kMsg, uint32_t &TransmissionInterval, uint16_t &TransmissionIntervalOffset, uint8_t &NumberOfParameterPairs) |
Parse parameters from request group function message. More... | |
static void | SendAcknowledge (tNMEA2000 *pNMEA2000, unsigned char Destination, int iDev, unsigned long PGN, tN2kGroupFunctionPGNErrorCode PGNErrorCode, tN2kGroupFunctionTransmissionOrPriorityErrorCode TransmissionOrPriorityErrorCode, uint8_t NumberOfParameterPairs=0, tN2kGroupFunctionParameterErrorCode ParameterErrorCodeForAll=N2kgfpec_Acknowledge) |
Send out an acknowledge group function message. More... | |
static void | SetStartAcknowledge (tN2kMsg &N2kMsg, unsigned char Destination, unsigned long PGN, tN2kGroupFunctionPGNErrorCode PGNErrorCode, tN2kGroupFunctionTransmissionOrPriorityErrorCode TransmissionOrPriorityErrorCode, uint8_t NumberOfParameterPairs=0) |
Setting up the group function message for Acknowledge. More... | |
static void | SetStartReadReply (tN2kMsg &N2kMsg, unsigned char Destination, unsigned long PGN, uint16_t ManufacturerCode, uint8_t IndustryGroup, uint8_t UniqueID, uint8_t NumberOfSelectionPairs, uint8_t NumberOfParameterPairs, bool Proprietary) |
Setup start parameters for read reply group function message. More... | |
static void | SetStartWriteReply (tN2kMsg &N2kMsg, unsigned char Destination, unsigned long PGN, uint16_t ManufacturerCode, uint8_t IndustryGroup, uint8_t UniqueID, uint8_t NumberOfSelectionPairs, uint8_t NumberOfParameterPairs, bool Proprietary) |
Setup start parameters for write reply group function message. More... | |
static bool | StartParseCommandPairParameters (const tN2kMsg &N2kMsg, int &Index) |
Get start Index of pair parameters from command group function message. More... | |
static bool | StartParseReadOrWriteParameters (const tN2kMsg &N2kMsg, bool Proprietary, int &Index) |
Get start index of pair parameters on the read or write group function message. More... | |
static bool | StartParseRequestPairParameters (const tN2kMsg &N2kMsg, int &Index) |
Get start Index of pair parameters from request group function message. More... | |
Protected Member Functions | |
virtual tN2kGroupFunctionTransmissionOrPriorityErrorCode | GetRequestGroupFunctionTransmissionOrPriorityErrorCode (uint32_t TransmissionInterval, uint16_t TransmissionIntervalOffset, bool UseIntervalLimits=false, uint32_t IntervalMax=N2k_MAX_TRANSMISSION_INTERVAL, uint32_t IntervalMin=50, bool UseOffsetLimits=false, uint16_t OffsetMax=N2k_MAX_TRANSMISSION_INTERVAL_OFFSET) |
Get request group function transmission or priority error code. More... | |
virtual bool | HandleAcknowledge (const tN2kMsg &N2kMsg, tN2kGroupFunctionPGNErrorCode PGNErrorCode, tN2kGroupFunctionTransmissionOrPriorityErrorCode TransmissionOrPriorityErrorCode, uint8_t NumberOfParameterPairs, int iDev) |
Default handle function for acknowledge group function. More... | |
virtual bool | HandleCommand (const tN2kMsg &N2kMsg, uint8_t PrioritySetting, uint8_t NumberOfParameterPairs, int iDev) |
Handle response for command group function. More... | |
virtual bool | HandleReadFields (const tN2kMsg &N2kMsg, uint16_t ManufacturerCode, uint8_t IndustryGroup, uint8_t UniqueID, uint8_t NumberOfSelectionPairs, uint8_t NumberOfParameterPairs, int iDev) |
Handle response for read fields group function. More... | |
virtual bool | HandleReadFieldsReply (const tN2kMsg &N2kMsg, int iDev) |
Handle read fields reply group function. More... | |
virtual bool | HandleRequest (const tN2kMsg &N2kMsg, uint32_t TransmissionInterval, uint16_t TransmissionIntervalOffset, uint8_t NumberOfParameterPairs, int iDev) |
Handle response for request group function. More... | |
virtual bool | HandleWriteFields (const tN2kMsg &N2kMsg, uint16_t ManufacturerCode, uint8_t IndustryGroup, uint8_t UniqueID, uint8_t NumberOfSelectionPairs, uint8_t NumberOfParameterPairs, int iDev) |
Handle response for write fields group function. More... | |
virtual bool | HandleWriteFieldsReply (const tN2kMsg &N2kMsg, int iDev) |
Handle write fields reply group function. More... | |
Protected Attributes | |
unsigned long | PGN |
Parameter Group Number (PGN) of this Group Function. More... | |
tNMEA2000 * | pNMEA2000 |
NMEA2000 object in order to send messages to the bus More... | |
bool | Proprietary |
Flag, if the Parameter Group is proprietary More... | |
Friends | |
class | tNMEA2000 |
Base handler class for Group Functions.
This class handles all functions which are needed to respond to group function messages. NMEA 2000 definition requires that devices should respond group function messages. This class is base class and works also as default handler, which simply responds “unsupported” for all group functions. To fulfill certification requirement developer should inherit this base class, write supported functions and register handler class to library with tNMEA2000::AddGroupFunctionHandler(). One can find examples for implementation from N2kGroupFunctionDefaultHandlers.h. See e.g., tN2kGroupFunctionHandlerForPGN126998.
Library has inherited default handlers for required system PGNs declared in N2kGroupFunctionDefaultHandlers.h . Those can be used as sample for other PGN group function handlers.
NMEA 2000 library calls each registered handler class until some responses to Handle call true, meaning that it handled request. After get true return library stops requesting handling for rest registered handler classes.
Definition at line 260 of file N2kGroupFunction.h.
tN2kGroupFunctionHandler::tN2kGroupFunctionHandler | ( | tNMEA2000 * | _pNMEA2000, |
unsigned long | _PGN | ||
) |
Construct a new tN2kGroupFunctionHandler object.
_pNMEA2000 | Pointer to an NMEA2000 object, see tNMEA2000 |
_PGN | Parameter Group Number associated with this Group function |
Definition at line 30 of file N2kGroupFunction.cpp.
|
static |
Add parameter error code to acknowledge group function message.
This is a static function for adding parameter error code to prepared PGN 126208 acknowledge group function.
N2kMsg | Input: Prepared acknowledge group function message Output: Acknowledge group function message with added parameter error code. |
ParameterPairIndex | Index of the parameter pair |
ErrorCode | Error code to be added to the message |
Definition at line 449 of file N2kGroupFunction.cpp.
|
static |
Change the PGN error code for a acknowledge group function message.
This is a static function for changing PGN error code of prepared PGN 126208 acknowledge group function.
N2kMsg | Input: Prepared acknowledge group function message Output: Acknowledge group function message with updated PGN error code. |
PGNErrorCode | PGN error code, see tN2kGroupFunctionPGNErrorCode |
Definition at line 433 of file N2kGroupFunction.cpp.
|
static |
Change transmission interval or priority error code for acknowledge group function message.
This is a static function for changing transmission interval or priority error code of prepared PGN 126208 acknowledge group function.
N2kMsg | Input: Prepared acknowledge group function message Output: Acknowledge group function message with updated transmission interval or priority error code. |
TransmissionOrPriorityErrorCode | Transmission interval or priority error code code, see tN2kGroupFunctionTransmissionOrPriorityErrorCode |
Definition at line 441 of file N2kGroupFunction.cpp.
|
static |
Get requested/commanded etc. PGN from group function message.
This is a static function for PGN 126208 handling. The function reads PGN (as 3 bytes) from the group function message.
N2kMsg | Reference to a N2kMsg Object. This message must be PGN 126208 group function message |
Definition at line 249 of file N2kGroupFunction.cpp.
|
protectedvirtual |
Get request group function transmission or priority error code.
Function for resolving transmission or priority error code in tN2kGroupFunctionHandler::HandleRequest function according requested input and interval/offset limits requested PGN accepts. Function resolves only error code. If result is N2kgfTPec_Acknowledge you have to handle also possible change for interval/offset elsewhere on your inherited HandleRequest.
If you support changing for interval and/or offset for your PGN simply use function as is. If you need to set offset limits set UseIntervalLimits and/or UseOffsetLimits and provide limits. For special handling you can override function.
See example of using function on
TransmissionInterval | Interval for Transmission |
TransmissionIntervalOffset | Offset for Transmission Interval |
UseIntervalLimits | Use the Interval limits |
IntervalMax | Maximum Interval |
IntervalMin | Minimum Interval |
UseOffsetLimits | Use Offset limits |
OffsetMax | Maximum offset |
N2kgfTPec_Acknowledge | Both interval or offset are within limits or requested to keep current or restore default. |
N2kgfTPec_TransmitIntervalOrPriorityNotSupported | For other cases. HandleRequest should not change requested PGN interval or offset and should return acknowledge group function with error code. |
Definition at line 108 of file N2kGroupFunction.cpp.
|
virtual |
Handle group function message.
Function parses group function PGN 126208 and forwards handling to specific handler like HandleRequest. This simplifies code for user inherited tN2kGroupFunctionHandler class, since often it is enough just override HandleRequest and let other handlers use default response.
N2kMsg | Reference to a N2kMsg Object, This message is an Group function message |
GroupFunctionCode | Code for Group Function, see tN2kGroupFunctionCode |
PGNForGroupFunction | PGN for the Group function |
iDev | Index off the device in tNMEA2000::Devices |
true | Group Function was handled properly |
false | if (PGN!=PGNForGroupFunction && PGN!=0) or group function was not handled. |
Definition at line 38 of file N2kGroupFunction.cpp.
|
protectedvirtual |
Default handle function for acknowledge group function.
This function handles Acknowledge group function, which is response for Request, Command, ReadFields or WriteFields group function.
N2kMsg | Reference to acknowledge group function message (PGN 126208) |
PGNErrorCode | PGN Error Code, see tN2kGroupFunctionPGNErrorCode |
TransmissionOrPriorityErrorCode | see tN2kGroupFunctionTransmissionOrPriorityErrorCode |
NumberOfParameterPairs | Number of parameter pairs contained inside the group function message |
iDev | Index off the device in tNMEA2000::Devices |
true | If acknowledge was handled. |
false | If acknowledge was not handled. |
Definition at line 189 of file N2kGroupFunction.cpp.
|
protectedvirtual |
Handle response for command group function.
Default response is "not supported". If you support command group function for your transmit PGN, inherit default handler and override HandleCommand for it.
Handler must returns true, if it handled command, false otherwise.
See example of overrided handler on
N2kMsg | Reference to command group function message (PGN 126208) |
PrioritySetting | Priority Setting |
NumberOfParameterPairs | Number of parameter pairs contained inside the group function message |
iDev | Index off the device in tNMEA2000::Devices |
true | If command was handled. |
false | If command was not handled. |
Reimplemented in tN2kGroupFunctionHandlerForPGN60928, and tN2kGroupFunctionHandlerForPGN126998.
Definition at line 170 of file N2kGroupFunction.cpp.
|
protectedvirtual |
Handle response for read fields group function.
Default response is "not supported". If you support read fields group function for your transmit PGN, inherit default handler and override HandleReadFields for it.
Handler must returns true, if it handled read fields, false otherwise.
N2kMsg | Reference to read fields group function message (PGN 126208) |
ManufacturerCode | Manufacturer Code, This will be set to 0xffff for non-propprietary PNGs |
IndustryGroup | Industry Group Code, This will be set to 0xff for non-propprietary PNGs |
UniqueID | Unique ID for the device |
NumberOfSelectionPairs | Number of Selection pairs contained inside the group function message |
NumberOfParameterPairs | Number of parameter pairs contained inside the group function message |
iDev | Index off the device in tNMEA2000::Devices |
true | If read fields was handled. |
false | If read fields was not handled. |
Definition at line 199 of file N2kGroupFunction.cpp.
|
protectedvirtual |
Handle read fields reply group function.
N2kMsg | Reference to read fields reply group function message (PGN 126208) |
iDev | Index off the device in tNMEA2000::Devices |
true | If read fields reply was handled. |
false | If read fields reply was not handled. |
Definition at line 218 of file N2kGroupFunction.cpp.
|
protectedvirtual |
Handle response for request group function.
Default response is "not supported". Certified devices must have inherited handler and respond for requests for all device transmit PGNs.
Use GetRequestGroupFunctionTransmissionOrPriorityErrorCode to get error code for transmission interval/offset request. If that returns N2kgfTPec_Acknowledge, modify your PGN transmission interval/offset according to request.
Handler must returns true, if it handled request, false otherwise.
See example of overrided handler on
N2kMsg | Reference to request group function message (PGN 126208) |
TransmissionInterval | Transmission interval [ms] |
TransmissionIntervalOffset | Offset to the transmission interval [10ms] |
NumberOfParameterPairs | Number of parameter pairs contained inside the group function message |
iDev | Index off the device in tNMEA2000::Devices |
true | If request was handled. |
false | If request was not handled. |
Reimplemented in tN2kGroupFunctionHandlerForPGN60928, tN2kGroupFunctionHandlerForPGN126464, tN2kGroupFunctionHandlerForPGN126993, tN2kGroupFunctionHandlerForPGN126996, and tN2kGroupFunctionHandlerForPGN126998.
Definition at line 138 of file N2kGroupFunction.cpp.
|
protectedvirtual |
Handle response for write fields group function.
Default response is "not supported". If you support write fields group function for your transmit PGN, inherit default handler and override HandleWriteFields for it.
Handler must returns true, if it handled write fields, false otherwise.
N2kMsg | Reference to write fields group function message (PGN 126208) |
ManufacturerCode | Manufacturer Code, This will be set to 0xffff for non-propprietary PNGs |
IndustryGroup | Industry Group Code, This will be set to 0xff for non-propprietary PNGs |
UniqueID | Unique ID for the device |
NumberOfSelectionPairs | Number of Selection pairs contained inside the group function message |
NumberOfParameterPairs | Number of parameter pairs contained inside the group function message |
iDev | Index off the device in tNMEA2000::Devices |
true | If write fields was handled. |
false | If write fields was not handled. |
Definition at line 224 of file N2kGroupFunction.cpp.
|
protectedvirtual |
Handle write fields reply group function.
N2kMsg | Reference to write fields reply group function message (PGN 126208) |
iDev | Index off the device in tNMEA2000::Devices |
true | Always |
Definition at line 243 of file N2kGroupFunction.cpp.
|
inline |
Class to test does string field on group function match to PGN field value.
Some group functions contains filter fields which should match to requested/commanded PGN field. E.g., you may receive request group function globally addressed (255) with some group of field filters. Before you respond request all fields must match to your PGN. See example tN2kGroupFunctionHandlerForPGN126996::HandleRequest().
FieldVal | {type} |
MatchVal | {type} |
Match | {type} |
ErrorCode | {type} |
Definition at line 298 of file N2kGroupFunction.h.
|
inline |
Template class to test does field on group function match to PGN field value.
Some group functions contains filter fields which should match to requested/commanded PGN field. E.g., you may receive request group function globally addressed (255) with some group of field filters. Before you respond request all fields must match to your PGN. See example tN2kGroupFunctionHandlerForPGN126996::HandleRequest().
T |
FieldVal | |
MatchVal | |
Mask | |
Match | |
ErrorCode |
Definition at line 277 of file N2kGroupFunction.h.
|
static |
Parse group function code and requested/commanded etc. PGN from group function message.
This is a static function for PGN 126208 handling.
N2kMsg | Reference to a N2kMsg Object. This message should be PGN 126208 group function message |
GroupFunctionCode | Group Function Code, see tN2kGroupFunctionCode |
PGNForGroupFunction | PGN for the Group function |
true | |
false | if (N2kMsg.PGN!=126208L) |
Definition at line 255 of file N2kGroupFunction.cpp.
|
static |
Parse parameters from acknowledge group function message.
This is a static function for PGN 126208 handling.
N2kMsg | Reference to a N2kMsg Object. This message should be PGN 126208 group function message |
PGNErrorCode | PGN error code, see tN2kGroupFunctionPGNErrorCode |
TransmissionOrPriorityErrorCode | Transmission or Priority error code, see tN2kGroupFunctionTransmissionOrPriorityErrorCode |
NumberOfParameterPairs | Number of parameter pairs contained inside the group function message |
true | |
false | if (N2kMsg.PGN!=126208L) |
Definition at line 313 of file N2kGroupFunction.cpp.
|
static |
Parse parameters from command group function message.
This is a static function for PGN 126208 handling.
N2kMsg | Reference to a N2kMsg Object. This message should be PGN 126208 group function message |
PrioritySetting | Priority setting |
NumberOfParameterPairs | Number of parameter pairs contained inside the group function message |
true | |
false | if (N2kMsg.PGN!=126208L) |
Definition at line 293 of file N2kGroupFunction.cpp.
|
static |
Parse parameters from read or write group function message.
N2kMsg | Reference to a N2kMsg Object. This message should be PGN 126208 group function message |
ManufacturerCode | Manufacturer Code, This will be set to 0xffff for non-propprietary PNGs |
IndustryGroup | Industry Group Code, This will be set to 0xff for non-propprietary PNGs |
UniqueID | Unique ID for the device |
NumberOfSelectionPairs | Number of Selection pairs contained inside the group function message |
NumberOfParameterPairs | Number of parameter pairs contained inside the group function message |
Proprietary | Group function is proprietary |
true | |
false | if (N2kMsg.PGN!=126208L) |
Definition at line 342 of file N2kGroupFunction.cpp.
|
static |
Parse parameters from request group function message.
This is a static function for PGN 126208 handling.
N2kMsg | Reference to a N2kMsg Object. This message should be PGN 126208 group function message |
TransmissionInterval | Transmission interval |
TransmissionIntervalOffset | Offset to the transmission interval |
NumberOfParameterPairs | Number of parameter pairs contained inside the group function message |
true | |
false | if (N2kMsg.PGN!=126208L) |
Definition at line 271 of file N2kGroupFunction.cpp.
|
static |
Send out an acknowledge group function message.
Function builds simple acknowledge group function message with given parameters. This is useful for sending response for no parameters or parameters with same error code.
pNMEA2000 | NMEA2000 object |
Destination | Destination source address |
iDev | Index off the device in tNMEA2000::Devices |
PGN | PGN handled |
PGNErrorCode | PGN error code, see tN2kGroupFunctionPGNErrorCode |
TransmissionOrPriorityErrorCode | Transmission or Priority error code, see tN2kGroupFunctionTransmissionOrPriorityErrorCode |
NumberOfParameterPairs | Number of parameter pairs contained inside the group function message |
ParameterErrorCodeForAll | Error code for all parameter sets, see tN2kGroupFunctionParameterErrorCode |
Definition at line 461 of file N2kGroupFunction.cpp.
|
static |
Setting up the group function message for Acknowledge.
This is a static function for setting up start of PGN 126208 acknowledge group function.
N2kMsg | Input: Reference to a N2kMsg Object Output: Acknowledge group function message prepared with start parameters. |
Destination | Destination source address |
PGN | PGN handled |
PGNErrorCode | PGN error code, see tN2kGroupFunctionPGNErrorCode |
TransmissionOrPriorityErrorCode | Transmission or Priority error code, see tN2kGroupFunctionTransmissionOrPriorityErrorCode |
NumberOfParameterPairs | Number of parameter pairs contained inside the group function message |
Definition at line 416 of file N2kGroupFunction.cpp.
|
static |
Setup start parameters for read reply group function message.
This is a static function for PGN 126208 read fields group function handling.
N2kMsg | Input: Reference to a N2kMsg Object Output: Read reply group function message prepared with start parameters. |
Destination | Destination source address |
PGN | PGN handled |
ManufacturerCode | Manufacturer Code, This will be set to 0xffff for non-propprietary PNGs |
IndustryGroup | Industry Group Code, This will be set to 0xff for non-propprietary PNGs |
UniqueID | Unique ID for the device |
NumberOfSelectionPairs | Number of Selection pairs contained inside the group function message |
NumberOfParameterPairs | Number of parameter pairs contained inside the group function message |
Proprietary | Is this a proprietary group function |
Definition at line 388 of file N2kGroupFunction.cpp.
|
static |
Setup start parameters for write reply group function message.
This is a static function for PGN 126208 write fields group function handling.
N2kMsg | Input: Reference to a N2kMsg Object Output: Write reply group function message prepared with start parameters. |
Destination | Destination source address |
PGN | PGN handled |
ManufacturerCode | Manufacturer Code, This will be set to 0xffff for non-propprietary PNGs |
IndustryGroup | Industry Group Code, This will be set to 0xff for non-propprietary PNGs |
UniqueID | Unique ID for the device |
NumberOfSelectionPairs | Number of Selection pairs contained inside the group function message |
NumberOfParameterPairs | Number of parameter pairs contained inside the group function message |
Proprietary | Is this a proprietary group function |
Definition at line 402 of file N2kGroupFunction.cpp.
|
static |
Get start Index of pair parameters from command group function message.
This is a static function for PGN 126208 handling.
N2kMsg | Reference to a N2kMsg Object. This message should be PGN 126208 group function message |
Index | Index where the Command Pair Parameters start |
true | |
false | if (N2kMsg.PGN!=126208L) |
Definition at line 305 of file N2kGroupFunction.cpp.
|
static |
Get start index of pair parameters on the read or write group function message.
This is a static function for PGN 126208 read or write fields group function handling.
N2kMsg | Reference to a N2kMsg Object. This message should be PGN 126208 group function message |
Proprietary | Group function is proprietary |
Index | Index where the Command Pair Parameters start |
true |
Definition at line 330 of file N2kGroupFunction.cpp.
|
static |
Get start Index of pair parameters from request group function message.
This is a static function for PGN 126208 handling.
N2kMsg | Reference to a N2kMsg Object. This message should be PGN 126208 group function message |
Index | Index where the Request Pair Parameters start |
true | |
false | if (N2kMsg.PGN!=126208L) |
Definition at line 285 of file N2kGroupFunction.cpp.
|
friend |
Definition at line 307 of file N2kGroupFunction.h.
|
protected |
Parameter Group Number (PGN) of this Group Function.
Definition at line 311 of file N2kGroupFunction.h.
|
protected |
NMEA2000 object in order to send messages to the bus
Definition at line 315 of file N2kGroupFunction.h.
|
protected |
Flag, if the Parameter Group is proprietary
Definition at line 313 of file N2kGroupFunction.h.