NMEA2000 Library  0.1
Library to handle NMEA 2000 Communication written in C++
N2kGroupFunctionDefaultHandlers.h
Go to the documentation of this file.
1/*
2 * N2kGroupFunctionDefaultHandlers.h
3 *
4 * The MIT License
5 *
6 * Copyright (c) 2015-2024 Timo Lappalainen, Kave Oy, www.kave.fi
7 *
8 * Permission is hereby granted, free of charge, to any person obtaining a
9 * copy of this software and associated documentation files (the "Software"),
10 * to deal in the Software without restriction, including without limitation
11 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
12 * and/or sell copies of the Software, and to permit persons to whom the
13 * Software is furnished to do so, subject to the following conditions:
14 * The above copyright notice and this permission notice shall be included in
15 * all copies or substantial portions of the Software.
16 *
17 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
18 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23 * SOFTWARE.
24*/
25
26/*************************************************************************/
36#ifndef _N2kGroupFunctionDefaultHandlers_H_
37#define _N2kGroupFunctionDefaultHandlers_H_
38
40#include "N2kGroupFunction.h"
41
42#if !defined(N2K_NO_GROUP_FUNCTION_SUPPORT)
43
44/************************************************************************/
64 protected:
65 virtual bool HandleRequest(const tN2kMsg &N2kMsg,
66 uint32_t TransmissionInterval,
67 uint16_t TransmissionIntervalOffset,
68 uint8_t NumberOfParameterPairs,
69 int iDev);
70 virtual bool HandleCommand(const tN2kMsg &N2kMsg, uint8_t PrioritySetting, uint8_t NumberOfParameterPairs, int iDev);
71 public:
73};
74
75
76/************************************************************************/
90 protected:
91 virtual bool HandleRequest(const tN2kMsg &N2kMsg,
92 uint32_t TransmissionInterval,
93 uint16_t TransmissionIntervalOffset,
94 uint8_t NumberOfParameterPairs,
95 int iDev);
96 public:
98};
99
100#if !defined(N2K_NO_HEARTBEAT_SUPPORT)
101
102/************************************************************************/
117 protected:
118 virtual bool HandleRequest(const tN2kMsg &N2kMsg,
119 uint32_t TransmissionInterval,
120 uint16_t TransmissionIntervalOffset,
121 uint8_t NumberOfParameterPairs,
122 int iDev);
123 public:
125};
126#endif
127
128/************************************************************************/
140 protected:
141 virtual bool HandleRequest(const tN2kMsg &N2kMsg,
142 uint32_t TransmissionInterval,
143 uint16_t TransmissionIntervalOffset,
144 uint8_t NumberOfParameterPairs,
145 int iDev);
146 public:
148};
149
150/************************************************************************/
163 protected:
164 virtual bool HandleRequest(const tN2kMsg &N2kMsg,
165 uint32_t TransmissionInterval,
166 uint16_t TransmissionIntervalOffset,
167 uint8_t NumberOfParameterPairs,
168 int iDev);
169 virtual bool HandleCommand(const tN2kMsg &N2kMsg, uint8_t PrioritySetting, uint8_t NumberOfParameterPairs, int iDev);
170 public:
172};
173
174#endif
175#endif
Base and default group function PGN 126208 message handler class.
Specific compiler definition to adapt the library to your needs.
Default Group Function Handler for PGN 126464 - "PGN List - Transmit/Receive PGNs group function".
virtual bool HandleRequest(const tN2kMsg &N2kMsg, uint32_t TransmissionInterval, uint16_t TransmissionIntervalOffset, uint8_t NumberOfParameterPairs, int iDev)
Handle response for request group function.
Default Group Function Handler for PGN 126993 - "Heartbeat".
virtual bool HandleRequest(const tN2kMsg &N2kMsg, uint32_t TransmissionInterval, uint16_t TransmissionIntervalOffset, uint8_t NumberOfParameterPairs, int iDev)
Handle response for request group function.
Default Group Function Handler for PGN 126996 - Product Information.
virtual bool HandleRequest(const tN2kMsg &N2kMsg, uint32_t TransmissionInterval, uint16_t TransmissionIntervalOffset, uint8_t NumberOfParameterPairs, int iDev)
Handle response for request group function.
Default Group Function Handler for PGN 126998 - "Configuration Information".
virtual bool HandleRequest(const tN2kMsg &N2kMsg, uint32_t TransmissionInterval, uint16_t TransmissionIntervalOffset, uint8_t NumberOfParameterPairs, int iDev)
Handle response for request group function.
virtual bool HandleCommand(const tN2kMsg &N2kMsg, uint8_t PrioritySetting, uint8_t NumberOfParameterPairs, int iDev)
Handle response for command group function.
Default Group Function Handler for PGN 60928 - "ISO Address Claim".
virtual bool HandleRequest(const tN2kMsg &N2kMsg, uint32_t TransmissionInterval, uint16_t TransmissionIntervalOffset, uint8_t NumberOfParameterPairs, int iDev)
Handle response for request group function.
virtual bool HandleCommand(const tN2kMsg &N2kMsg, uint8_t PrioritySetting, uint8_t NumberOfParameterPairs, int iDev)
Handle response for command group function.
Base handler class for Group Functions.
This class contains all the data of an NMEA2000 message.
Definition: N2kMsg.h:656
tNMEA2000 device class definition.
Definition: NMEA2000.h:138