NMEA2000 Library
0.1
Library to handle NMEA 2000 Communication written in C++
|
Base and default group function PGN 126208 message handler class. More...
Go to the source code of this file.
Classes | |
class | tN2kGroupFunctionHandler |
Base handler class for Group Functions. More... | |
Macros | |
#define | N2k_KEEP_TRANSMISSION_INTERVAL 0xffffffff |
#define | N2k_MAX_TRANSMISSION_INTERVAL 0xfffffff0 |
#define | N2k_MAX_TRANSMISSION_INTERVAL_OFFSET 0xfffc |
#define | N2k_RESTORE_TRANSMISSION_INTERVAL 0xfffffffe |
Base and default group function PGN 126208 message handler class.
Group functions can be used for requesting, commanding and configuring other bus devices. Example setting depth sounder offset can be done by command group function. This is standard way and other devices should support it. Other common examples are changing device or system information, setting installation description, changing message period.
There are 7 different group functions defined by first field of PGN 126208
Request group function is mandatory for all certified devices. The default handler can only respond "unsupported" to requests other than system PGNs. To fulfill certification requirement developer should inherit 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.
Definition in file N2kGroupFunction.h.
#define N2k_KEEP_TRANSMISSION_INTERVAL 0xffffffff |
Definition at line 68 of file N2kGroupFunction.h.
#define N2k_MAX_TRANSMISSION_INTERVAL 0xfffffff0 |
Definition at line 70 of file N2kGroupFunction.h.
#define N2k_MAX_TRANSMISSION_INTERVAL_OFFSET 0xfffc |
Definition at line 71 of file N2kGroupFunction.h.
#define N2k_RESTORE_TRANSMISSION_INTERVAL 0xfffffffe |
Definition at line 69 of file N2kGroupFunction.h.
FunctionCode for the group function.
There are seven group functions associated with PGN 126208.
The Write Fields group function may be used to modify a device’s factory default PGN instances to create a unique device with unique PGN instance numbers.
The Read Fields group function can be similarly used to interrogate the current PGN instance values of any PGNs not being sent periodically.
Definition at line 85 of file N2kGroupFunction.h.
Error Codes Command used by acknowledge group function.
This error code carried inside the acknowledge group function gives information, if the Request, Command, Read or Write Group Function Message can be satisfied by the receiving device.
Definition at line 216 of file N2kGroupFunction.h.
PGN error code used by acknowledge group function.
This error code carried inside the acknowledge group function gives information, if the Request, Command, Read or Write Group Function Message can be satisfied by the receiving device.
Definition at line 169 of file N2kGroupFunction.h.
Error codes Transmit interval used by acknowledge group function.
This error code carried inside the acknowledge group function gives information, if the Request, Command, Read or Write Group Function Message can be satisfied by the receiving device.
Definition at line 194 of file N2kGroupFunction.h.