Message handler class.
More...
#include <NMEA2000.h>
Message handler class.
Definition at line 616 of file NMEA2000.h.
◆ tMsgHandler()
tNMEA2000::tMsgHandler::tMsgHandler |
( |
unsigned long |
_PGN = 0 , |
|
|
tNMEA2000 * |
_pNMEA2000 = 0 |
|
) |
| |
|
inline |
Construct a new Message Handler object.
Attaches this message handler to a tNMEA2000 object.
- Parameters
-
_PGN | PGN of the message that should be handled |
_pNMEA2000 | Pointer to tNMEA2000 object, where the handle should be attached |
Definition at line 644 of file NMEA2000.h.
◆ ~tMsgHandler()
virtual tNMEA2000::tMsgHandler::~tMsgHandler |
( |
| ) |
|
|
inlinevirtual |
Destroys the Message Handler object.
Definition at line 651 of file NMEA2000.h.
◆ GetNMEA2000()
tNMEA2000 * tNMEA2000::tMsgHandler::GetNMEA2000 |
( |
| ) |
|
|
inlineprotected |
◆ GetPGN()
unsigned long tNMEA2000::tMsgHandler::GetPGN |
( |
| ) |
const |
|
inline |
Return the PGN that is handled by this message handler.
- Returns
- unsigned long
Definition at line 656 of file NMEA2000.h.
◆ HandleMsg()
virtual void tNMEA2000::tMsgHandler::HandleMsg |
( |
const tN2kMsg & |
N2kMsg | ) |
|
|
protectedpure virtual |
Handles a given message *.
- Parameters
-
N2kMsg | Reference to a N2kMsg Object |
Implemented in tN2kDeviceList.
◆ tNMEA2000
◆ PGN
unsigned long tNMEA2000::tMsgHandler::PGN |
|
protected |
Parameter Group Number
Definition at line 625 of file NMEA2000.h.
The documentation for this class was generated from the following file: