NMEA2000 Library
0.1
Library to handle NMEA 2000 Communication written in C++
|
#include "NMEA2000.h"
#include "N2kDef.h"
#include "N2kGroupFunctionDefaultHandlers.h"
#include <string.h>
#include <stdlib.h>
Go to the source code of this file.
Macros | |
#define | DbgPrintBuf(len, buf, addln) |
#define | DebugStream Serial |
#define | MAX_PGNS_IN_LIST 74 |
#define | MaxHeartbeatInterval 655320UL |
Maximum value for the ISO Heartbeat interval in ms. More... | |
#define | N2kAddressClaimTimeout 250 |
Timeout value for the ISO Address Claim in ms. More... | |
#define | N2kDbg(fmt, args...) |
#define | N2kDbgln(fmt, args...) |
#define | N2kFrameErrDbg(fmt, args...) |
#define | N2kFrameErrDbgln(fmt, args...) |
#define | N2kFrameErrDbgStart(fmt, args...) |
#define | N2kFrameInDbg(fmt, args...) |
#define | N2kFrameInDbgln(fmt, args...) |
#define | N2kFrameInDbgStart(fmt, args...) |
#define | N2kFrameOutDbg(fmt, args...) |
#define | N2kFrameOutDbgln(fmt, args...) |
#define | N2kFrameOutDbgStart(fmt, args...) |
#define | N2kMsgDbg(fmt, args...) |
#define | N2kMsgDbgln(fmt, args...) |
#define | N2kMsgDbgStart(fmt, args...) |
#define | N2kPrintFreeMemory(a) |
#define | TP_CM 60416L |
Multi packet connection management, TP.CM. More... | |
#define | TP_CM_Abort 255 |
Multi packet connection management, Abort Connection. More... | |
#define | TP_CM_AbortBusy 1 |
Already in one or more connection managed sessions and cannot support another. More... | |
#define | TP_CM_AbortNoResources 2 |
System resources were needed for another task so this connection managed session was terminated. More... | |
#define | TP_CM_AbortTimeout 3 |
A timeout occurred and this is the connection abort to close the session. More... | |
#define | TP_CM_ACK 19 |
Multi packet connection management, End of Message Acknowledgement. More... | |
#define | TP_CM_BAM 32 |
Multi packet connection management, Broadcast Announce Message. More... | |
#define | TP_CM_CTS 17 |
Multi packet connection management, Clear To Send. More... | |
#define | TP_CM_RTS 16 |
Multi packet connection management, Request To Send. More... | |
#define | TP_DT 60160L |
Multi packet data transfer. More... | |
#define | TP_MAX_FRAMES 5 |
Max frames, which can be received at time. More... | |
Functions | |
void | CanIdToN2k (unsigned long id, unsigned char &prio, unsigned long &pgn, unsigned char &src, unsigned char &dst) |
Convert a CAN Id to NMEA2000 values. More... | |
void | CopyBufToCANMsg (tN2kCANMsg &CANMsg, unsigned char start, unsigned char len, unsigned char *buf) |
Copy a Buffer to a CAN Message. More... | |
void | CopyProgmemString (const char *str, size_t MaxLen, char *buf) |
bool | IsDefaultFastPacketMessage (unsigned long PGN) |
Checks if the PGN is a Default Fast Packet Message. More... | |
bool | IsDefaultSingleFrameMessage (unsigned long PGN) |
Checks if the given PGN is a Default Single Frame Message. More... | |
bool | IsFastPacketFirstFrame (unsigned char b) |
bool | IsFastPacketSystemMessage (unsigned long PGN) |
Checks if the given PGN is a Fast Packet System Message. More... | |
bool | IsMandatoryFastPacketMessage (unsigned long PGN) |
Checks if the PGN is a Mandatory Fast Packet Message. More... | |
bool | IsProprietaryFastPacketMessage (unsigned long PGN) |
Checks if the PGN is a Proprietary Fast Packet Message. More... | |
bool | IsSingleFrameSystemMessage (unsigned long PGN) |
Checks if the given PGN is a Single Frame System Message. More... | |
unsigned long | N2ktoCanID (unsigned char priority, unsigned long PGN, unsigned long Source, unsigned char Destination) |
Convert NMEA2000 values into a CAN Id. More... | |
bool | ParseN2kPGN126996 (const tN2kMsg &N2kMsg, unsigned short &N2kVersion, unsigned short &ProductCode, int ModelIDSize, char *ModelID, int SwCodeSize, char *SwCode, int ModelVersionSize, char *ModelVersion, int ModelSerialCodeSize, char *ModelSerialCode, unsigned char &CertificationLevel, unsigned char &LoadEquivalency) |
Parsing the content of message PGN 126996 "Product information". More... | |
bool | ParseN2kPGN126998 (const tN2kMsg &N2kMsg, size_t &ManufacturerInformationSize, char *ManufacturerInformation, size_t &InstallationDescription1Size, char *InstallationDescription1, size_t &InstallationDescription2Size, char *InstallationDescription2) |
Parsing the content of message PGN 126998 "Configuration information". More... | |
bool | ParseN2kPGN59904 (const tN2kMsg &N2kMsg, unsigned long &RequestedPGN) |
Parsing the content of message PGN 59904 "ISO request". More... | |
template<typename T > | |
void | PROGMEM_readAnything (const T *sce, T &dest) |
size_t | ProgmemStrLen (const char *str) |
void | SetN2kPGN126464 (tN2kMsg &N2kMsg, uint8_t Destination, tN2kPGNList tr, const unsigned long *PGNs) |
Setting up PGN 126464 Message "PGN List - Transmit PGNs group
function". More... | |
void | SetN2kPGN126993 (tN2kMsg &N2kMsg, uint32_t timeInterval_ms, uint8_t sequenceCounter) |
Setting up PGN 126993 Message "Heartbeat". More... | |
void | SetN2kPGN126996 (tN2kMsg &N2kMsg, unsigned int N2kVersion, unsigned int ProductCode, const char *ModelID, const char *SwCode, const char *ModelVersion, const char *ModelSerialCode, unsigned char CertificationLevel, unsigned char LoadEquivalency) |
Setting up PGN 126996 Message "Product information". More... | |
void | SetN2kPGN126996Progmem (tN2kMsg &N2kMsg, const tNMEA2000::tProductInformation *ProductInformation, char *OptionalSerialCode=0) |
void | SetN2kPGN126998 (tN2kMsg &N2kMsg, const char *ManufacturerInformation, const char *InstallationDescription1, const char *InstallationDescription2, bool UsePgm) |
Setting up PGN 126998 Message "Configuration information". More... | |
void | SetN2kPGN59392 (tN2kMsg &N2kMsg, unsigned char Control, unsigned char GroupFunction, unsigned long PGN) |
ISO Acknowledgement. More... | |
void | SetN2kPGN59904 (tN2kMsg &N2kMsg, uint8_t Destination, unsigned long RequestedPGN) |
Setting up PGN 59904 Message "ISO request". More... | |
void | SetN2kPGN60928 (tN2kMsg &N2kMsg, uint64_t Name) |
Setting up PGN 60928 Message "ISO Address Claim". More... | |
void | SetN2kPGN60928 (tN2kMsg &N2kMsg, unsigned long UniqueNumber, int ManufacturerCode, unsigned char DeviceFunction, unsigned char DeviceClass, unsigned char DeviceInstance, unsigned char SystemInstance, unsigned char IndustryGroup) |
Setting up PGN 60928 Message "ISO Address Claim". More... | |
size_t | StrLen (const char *str) |
unsigned char | TPCtsPackets (unsigned char nPackets) |
Variables | |
const char | DefInstallationDescription1 [] = "" |
Default Installation Description (Field1) More... | |
const char | DefInstallationDescription2 [] = "" |
Default Installation Description (Field2) More... | |
const char | DefManufacturerInformation [] = "NMEA2000 library, https://github.com/ttlappalainen/NMEA2000" |
Default Manufacturer Information. More... | |
const tNMEA2000::tProductInformation | DefProductInformation |
Default Product Information. More... | |
const unsigned long | DefReceiveMessages [] |
Default list of Received Messages. More... | |
const unsigned long | DefTransmitMessages [] |
Default list of Transmit Messages. More... | |
#define DbgPrintBuf | ( | len, | |
buf, | |||
addln | |||
) |
Definition at line 84 of file NMEA2000.cpp.
#define DebugStream Serial |
Definition at line 32 of file NMEA2000.cpp.
#define MAX_PGNS_IN_LIST 74 |
Definition at line 2124 of file NMEA2000.cpp.
#define MaxHeartbeatInterval 655320UL |
Maximum value for the ISO Heartbeat interval in ms.
Definition at line 112 of file NMEA2000.cpp.
#define N2kAddressClaimTimeout 250 |
Timeout value for the ISO Address Claim in ms.
Definition at line 110 of file NMEA2000.cpp.
#define N2kDbg | ( | fmt, | |
args... | |||
) |
Definition at line 91 of file NMEA2000.cpp.
#define N2kDbgln | ( | fmt, | |
args... | |||
) |
Definition at line 92 of file NMEA2000.cpp.
#define N2kFrameErrDbg | ( | fmt, | |
args... | |||
) |
Definition at line 47 of file NMEA2000.cpp.
#define N2kFrameErrDbgln | ( | fmt, | |
args... | |||
) |
Definition at line 48 of file NMEA2000.cpp.
#define N2kFrameErrDbgStart | ( | fmt, | |
args... | |||
) |
Definition at line 46 of file NMEA2000.cpp.
#define N2kFrameInDbg | ( | fmt, | |
args... | |||
) |
Definition at line 57 of file NMEA2000.cpp.
#define N2kFrameInDbgln | ( | fmt, | |
args... | |||
) |
Definition at line 58 of file NMEA2000.cpp.
#define N2kFrameInDbgStart | ( | fmt, | |
args... | |||
) |
Definition at line 56 of file NMEA2000.cpp.
#define N2kFrameOutDbg | ( | fmt, | |
args... | |||
) |
Definition at line 67 of file NMEA2000.cpp.
#define N2kFrameOutDbgln | ( | fmt, | |
args... | |||
) |
Definition at line 68 of file NMEA2000.cpp.
#define N2kFrameOutDbgStart | ( | fmt, | |
args... | |||
) |
Definition at line 66 of file NMEA2000.cpp.
#define N2kMsgDbg | ( | fmt, | |
args... | |||
) |
Definition at line 77 of file NMEA2000.cpp.
#define N2kMsgDbgln | ( | fmt, | |
args... | |||
) |
Definition at line 78 of file NMEA2000.cpp.
#define N2kMsgDbgStart | ( | fmt, | |
args... | |||
) |
Definition at line 76 of file NMEA2000.cpp.
#define N2kPrintFreeMemory | ( | a | ) |
Definition at line 106 of file NMEA2000.cpp.
#define TP_CM 60416L |
Multi packet connection management, TP.CM.
Definition at line 117 of file NMEA2000.cpp.
#define TP_CM_Abort 255 |
Multi packet connection management, Abort Connection.
Definition at line 129 of file NMEA2000.cpp.
#define TP_CM_AbortBusy 1 |
Already in one or more connection managed sessions and cannot support another.
Definition at line 133 of file NMEA2000.cpp.
#define TP_CM_AbortNoResources 2 |
System resources were needed for another task so this connection managed session was terminated.
Definition at line 136 of file NMEA2000.cpp.
#define TP_CM_AbortTimeout 3 |
A timeout occurred and this is the connection abort to close the session.
Definition at line 139 of file NMEA2000.cpp.
#define TP_CM_ACK 19 |
Multi packet connection management, End of Message Acknowledgement.
Definition at line 127 of file NMEA2000.cpp.
#define TP_CM_BAM 32 |
Multi packet connection management, Broadcast Announce Message.
Definition at line 121 of file NMEA2000.cpp.
#define TP_CM_CTS 17 |
Multi packet connection management, Clear To Send.
Definition at line 125 of file NMEA2000.cpp.
#define TP_CM_RTS 16 |
Multi packet connection management, Request To Send.
Definition at line 123 of file NMEA2000.cpp.
#define TP_DT 60160L |
Multi packet data transfer.
Definition at line 119 of file NMEA2000.cpp.
#define TP_MAX_FRAMES 5 |
Max frames, which can be received at time.
Definition at line 115 of file NMEA2000.cpp.
void CanIdToN2k | ( | unsigned long | id, |
unsigned char & | prio, | ||
unsigned long & | pgn, | ||
unsigned char & | src, | ||
unsigned char & | dst | ||
) |
Convert a CAN Id to NMEA2000 values.
id | given CAN Id |
prio | Priority of the N2k message |
pgn | PGN of the N2k message |
src | Source of the N2k message |
dst | Destination of the N2k message |
Definition at line 1277 of file NMEA2000.cpp.
void CopyBufToCANMsg | ( | tN2kCANMsg & | CANMsg, |
unsigned char | start, | ||
unsigned char | len, | ||
unsigned char * | buf | ||
) |
Copy a Buffer to a CAN Message.
CANMsg | Reference to an CANMsg Object with the result |
start | Startbyte inside the buffer |
len | Length of the buffer |
buf | Pointer to a buffer |
Definition at line 1626 of file NMEA2000.cpp.
void CopyProgmemString | ( | const char * | str, |
size_t | MaxLen, | ||
char * | buf | ||
) |
Definition at line 864 of file NMEA2000.cpp.
bool IsDefaultFastPacketMessage | ( | unsigned long | PGN | ) |
Checks if the PGN is a Default Fast Packet Message.
PGN | PGN to be checked |
Definition at line 448 of file NMEA2000.cpp.
bool IsDefaultSingleFrameMessage | ( | unsigned long | PGN | ) |
Checks if the given PGN is a Default Single Frame Message.
PGN | PGN to be tested |
Definition at line 276 of file NMEA2000.cpp.
|
inline |
Definition at line 1971 of file NMEA2000.cpp.
bool IsFastPacketSystemMessage | ( | unsigned long | PGN | ) |
Checks if the given PGN is a Fast Packet System Message.
PGN | PGN to be tested |
Definition at line 234 of file NMEA2000.cpp.
bool IsMandatoryFastPacketMessage | ( | unsigned long | PGN | ) |
Checks if the PGN is a Mandatory Fast Packet Message.
PGN | PGN to be checked |
Definition at line 318 of file NMEA2000.cpp.
bool IsProprietaryFastPacketMessage | ( | unsigned long | PGN | ) |
Checks if the PGN is a Proprietary Fast Packet Message.
PGN | PGN to be checked |
Definition at line 579 of file NMEA2000.cpp.
bool IsSingleFrameSystemMessage | ( | unsigned long | PGN | ) |
Checks if the given PGN is a Single Frame System Message.
PGN | PGN to be tested |
Definition at line 215 of file NMEA2000.cpp.
unsigned long N2ktoCanID | ( | unsigned char | priority, |
unsigned long | PGN, | ||
unsigned long | Source, | ||
unsigned char | Destination | ||
) |
Convert NMEA2000 values into a CAN Id.
priority | Priority of the N2k message |
PGN | PGN of the N2k message |
Source | Source of the N2k message |
Destination | Destination of the N2k message |
Definition at line 1306 of file NMEA2000.cpp.
bool ParseN2kPGN126996 | ( | const tN2kMsg & | N2kMsg, |
unsigned short & | N2kVersion, | ||
unsigned short & | ProductCode, | ||
int | ModelIDSize, | ||
char * | ModelID, | ||
int | SwCodeSize, | ||
char * | SwCode, | ||
int | ModelVersionSize, | ||
char * | ModelVersion, | ||
int | ModelSerialCodeSize, | ||
char * | ModelSerialCode, | ||
unsigned char & | CertificationLevel, | ||
unsigned char & | LoadEquivalency | ||
) |
Parsing the content of message PGN 126996 "Product information".
Provides product information onto the network that could be important for determining quality of data coming from this product.
N2kMsg | Reference to a N2kMsg Object, ready to be send |
N2kVersion | NMEA Network Message Database Version |
ProductCode | NMEA Manufacturer's Product Code |
ModelIDSize | Size of ModelID |
ModelID | Manufacturer's Model ID |
SwCodeSize | Size of Software Version Code |
SwCode | Manufacturer's Software Version Code |
ModelVersionSize | Size of Model Version |
ModelVersion | Manufacturer's Model Version |
ModelSerialCodeSize | Size of Model Serial Code |
ModelSerialCode | Manufacturer's Model Serial Code |
CertificationLevel | NMEA 2000 Certification Level |
LoadEquivalency | Load Equivalency |
true | Parsing of PGN Message successful |
false | Parsing of PGN Message aborted |
Definition at line 2788 of file NMEA2000.cpp.
bool ParseN2kPGN126998 | ( | const tN2kMsg & | N2kMsg, |
size_t & | ManufacturerInformationSize, | ||
char * | ManufacturerInformation, | ||
size_t & | InstallationDescription1Size, | ||
char * | InstallationDescription1, | ||
size_t & | InstallationDescription2Size, | ||
char * | InstallationDescription2 | ||
) |
Parsing the content of message PGN 126998 "Configuration information".
Free-form alphanumeric fields describing the installation (e.g., starboard engine room location) of the device and installation notes (e.g., calibration data).
N2kMsg | Reference to a N2kMsg Object |
ManufacturerInformationSize | Size off Manufacturer Information |
ManufacturerInformation | Manufacturer Information |
InstallationDescription1Size | Size off Installation Description |
InstallationDescription1 | Installation Description, Field 1 |
InstallationDescription2Size | Size off Installation Description |
InstallationDescription2 | Installation Description, Field 2 |
true | Parsing of PGN Message successful |
false | Parsing of PGN Message aborted |
Definition at line 2873 of file NMEA2000.cpp.
bool ParseN2kPGN59904 | ( | const tN2kMsg & | N2kMsg, |
unsigned long & | RequestedPGN | ||
) |
Parsing the content of message PGN 59904 "ISO request".
As defined by ISO, this message has a data length of 3 bytes with no padding added to complete the single frame. The appropriate response to this message is based on the PGN being requested, and whether the receiver supports the requested PGN.
N2kMsg | Reference to a N2kMsg Object |
RequestedPGN | PGN being requested |
true | Parsing of PGN Message successful |
false | Parsing of PGN Message aborted |
Definition at line 2894 of file NMEA2000.cpp.
void PROGMEM_readAnything | ( | const T * | sce, |
T & | dest | ||
) |
Definition at line 2119 of file NMEA2000.cpp.
size_t ProgmemStrLen | ( | const char * | str | ) |
Definition at line 2808 of file NMEA2000.cpp.
void SetN2kPGN126464 | ( | tN2kMsg & | N2kMsg, |
uint8_t | Destination, | ||
tN2kPGNList | tr, | ||
const unsigned long * | PGNs | ||
) |
Setting up PGN 126464 Message "PGN List - Transmit PGNs group function".
The PGN List group function type is defined by the first field. The message will be either a Transmit PGNs or a Receive PGNs group function that identifies the PGNs transmitted from or received by a node.
N2kMsg | Reference to a N2kMsg Object, ready to be send |
Destination | Address of the destination |
tr | Transmit or Receive, see tN2kPGNList |
PGNs | List of PGNs |
Definition at line 2907 of file NMEA2000.cpp.
void SetN2kPGN126993 | ( | tN2kMsg & | N2kMsg, |
uint32_t | timeInterval_ms, | ||
uint8_t | sequenceCounter | ||
) |
Setting up PGN 126993 Message "Heartbeat".
This PGN shall be transmitted by all NMEA devices. Reception of this PGN confirms that a device is still present on the network. Reception of this PGN may also be used to maintain an address to NAME association table within the receiving device.
N2kMsg | Reference to a N2kMsg Object, ready to be send |
timeInterval_ms | time interval in msec (0.01 - 655.32s ) |
sequenceCounter | Sequence counter |
Definition at line 2923 of file NMEA2000.cpp.
void SetN2kPGN126996 | ( | tN2kMsg & | N2kMsg, |
unsigned int | N2kVersion, | ||
unsigned int | ProductCode, | ||
const char * | ModelID, | ||
const char * | SwCode, | ||
const char * | ModelVersion, | ||
const char * | ModelSerialCode, | ||
unsigned char | CertificationLevel = 1 , |
||
unsigned char | LoadEquivalency = 1 |
||
) |
Setting up PGN 126996 Message "Product information".
Provides product information onto the network that could be important for determining quality of data coming from this product.
N2kMsg | Reference to a N2kMsg Object, ready to be send |
N2kVersion | NMEA Network Message Database Version |
ProductCode | NMEA Manufacturer's Product Code |
ModelID | Manufacturer's Model ID |
SwCode | Manufacturer's Software Version Code |
ModelVersion | Manufacturer's Model Version |
ModelSerialCode | Manufacturer's Model Serial Code |
CertificationLevel | NMEA 2000 Certification Level |
LoadEquivalency | Load Equivalency |
Definition at line 2771 of file NMEA2000.cpp.
void SetN2kPGN126996Progmem | ( | tN2kMsg & | N2kMsg, |
const tNMEA2000::tProductInformation * | ProductInformation, | ||
char * | OptionalSerialCode = 0 |
||
) |
Definition at line 2193 of file NMEA2000.cpp.
void SetN2kPGN126998 | ( | tN2kMsg & | N2kMsg, |
const char * | ManufacturerInformation, | ||
const char * | InstallationDescription1 = 0 , |
||
const char * | InstallationDescription2 = 0 , |
||
bool | UsePgm = false |
||
) |
Setting up PGN 126998 Message "Configuration information".
Free-form alphanumeric fields describing the installation (e.g., starboard engine room location) of the device and installation notes (e.g., calibration data).
N2kMsg | Reference to a N2kMsg Object, ready to be send |
ManufacturerInformation | Manufacturer Information |
InstallationDescription1 | Installation Description, Field 1 |
InstallationDescription2 | Installation Description, Field 2 |
UsePgm | Use program memory, default = false |
Definition at line 2823 of file NMEA2000.cpp.
void SetN2kPGN59392 | ( | tN2kMsg & | N2kMsg, |
unsigned char | Control, | ||
unsigned char | GroupFunction, | ||
unsigned long | PGN | ||
) |
ISO Acknowledgement.
Setting up PGN 59392 Message "ISO Acknowledgement".
Definition at line 2732 of file NMEA2000.cpp.
void SetN2kPGN59904 | ( | tN2kMsg & | N2kMsg, |
uint8_t | Destination, | ||
unsigned long | RequestedPGN | ||
) |
Setting up PGN 59904 Message "ISO request".
As defined by ISO, this message has a data length of 3 bytes with no padding added to complete the single frame. The appropriate response to this message is based on the PGN being requested, and whether the receiver supports the requested PGN.
N2kMsg | Reference to a N2kMsg Object, ready to be send |
Destination | Address of the destination |
RequestedPGN | PGN being requested |
Definition at line 2887 of file NMEA2000.cpp.
void SetN2kPGN60928 | ( | tN2kMsg & | N2kMsg, |
uint64_t | Name | ||
) |
Setting up PGN 60928 Message "ISO Address Claim".
This network management message is used to claim a network address and to respond with device information (NAME) requested by the ISO Request or Complex Request Group Function. This PGN contains several fields that are Request Parameters that can be used to control the expected response to requests for this PGN.
N2kMsg | Reference to a N2kMsg Object, ready to be send |
Name | Name of the device |
Definition at line 2762 of file NMEA2000.cpp.
void SetN2kPGN60928 | ( | tN2kMsg & | N2kMsg, |
unsigned long | UniqueNumber, | ||
int | ManufacturerCode, | ||
unsigned char | DeviceFunction, | ||
unsigned char | DeviceClass, | ||
unsigned char | DeviceInstance = 0 , |
||
unsigned char | SystemInstance = 0 , |
||
unsigned char | IndustryGroup = 4 |
||
) |
Setting up PGN 60928 Message "ISO Address Claim".
This network management message is used to claim a network address and to respond with device information (NAME) requested by the ISO Request or Complex Request Group Function. This PGN contains several fields that are Request Parameters that can be used to control the expected response to requests for this PGN.
N2kMsg | Reference to a N2kMsg Object, ready to be send |
UniqueNumber | Unique Number (ISO Identity Number) |
ManufacturerCode | Manufacturer Code |
DeviceFunction | Device Function (ISO Function) |
DeviceClass | Device Class |
DeviceInstance | Device Instance |
SystemInstance | System Instance (ISO Device Class Instance) |
IndustryGroup | Industry Group |
Definition at line 2746 of file NMEA2000.cpp.
size_t StrLen | ( | const char * | str | ) |
Definition at line 2816 of file NMEA2000.cpp.
unsigned char TPCtsPackets | ( | unsigned char | nPackets | ) |
Definition at line 1704 of file NMEA2000.cpp.
const char DefInstallationDescription1[] = "" |
Default Installation Description (Field1)
Definition at line 620 of file NMEA2000.cpp.
const char DefInstallationDescription2[] = "" |
Default Installation Description (Field2)
Definition at line 624 of file NMEA2000.cpp.
const char DefManufacturerInformation[] = "NMEA2000 library, https://github.com/ttlappalainen/NMEA2000" |
Default Manufacturer Information.
Definition at line 616 of file NMEA2000.cpp.
const tNMEA2000::tProductInformation DefProductInformation |
Default Product Information.
This structure holds the default Product Information of the device:
Definition at line 602 of file NMEA2000.cpp.
const unsigned long DefReceiveMessages[] |
Default list of Received Messages.
List of default transmit PGNs:
This list is terminated by 0.
Definition at line 194 of file NMEA2000.cpp.
const unsigned long DefTransmitMessages[] |
Default list of Transmit Messages.
\
List of default transmit PGNs:
This list is terminated by 0.
Definition at line 160 of file NMEA2000.cpp.