NMEA2000 Library
0.1
Library to handle NMEA 2000 Communication written in C++
|
This class represents a N2k device. More...
#include <NMEA2000.h>
Public Member Functions | |
tDevice (uint64_t _Name, uint8_t _Source=255) | |
Construct a new Device object. More... | |
virtual | ~tDevice () |
Destroy the Device object. More... | |
virtual unsigned short | GetCertificationLevel () const =0 |
Get the certification level from the product information of this device. More... | |
unsigned long | GetCreateTime () const |
Returns the Time of Creation of this device. More... | |
unsigned char | GetDeviceClass () const |
Get the Device Class from the Device Information. More... | |
unsigned char | GetDeviceFunction () const |
Get the Device Function from the Device Information. More... | |
unsigned char | GetDeviceInstance () const |
Get the Device Instance from the Device Information. More... | |
unsigned char | GetDeviceInstanceLower () const |
Get the Device Instance (lower bits) from the Device Information. More... | |
unsigned char | GetDeviceInstanceUpper () const |
Get the Device Instance (upper bits) from the Device Information. More... | |
unsigned char | GetIndustryGroup () const |
Get the Industry Group from the Device Information. More... | |
virtual const char * | GetInstallationDescription1 () const |
Get the installation description 1 from the configuration information of this device. More... | |
virtual const char * | GetInstallationDescription2 () const |
Get the installation description 2 from the configuration information of this device. More... | |
virtual unsigned short | GetLoadEquivalency () const =0 |
Get the load equivalency from the product information of this device. More... | |
uint16_t | GetManufacturerCode () const |
Get the Manufacturer Code from the Device Information. More... | |
virtual const char * | GetManufacturerInformation () const |
Get the manufacturer information from the configuration information of this device. More... | |
virtual const char * | GetModelID () const =0 |
Get the model ID from the product information of this device. More... | |
virtual const char * | GetModelSerialCode () const =0 |
Get the model serial code from the product information of this device. More... | |
virtual const char * | GetModelVersion () const =0 |
Get the model version from the product information of this device. More... | |
virtual unsigned short | GetN2kVersion () const =0 |
Get N2k Standard version from the product information of this device. More... | |
uint64_t | GetName () const |
Get the Name of this device. More... | |
virtual unsigned short | GetProductCode () const =0 |
Get the product code from the product information of this device. More... | |
virtual const unsigned long * | GetReceivePGNs () const |
Get the list of received PGNs from this device. More... | |
uint8_t | GetSource () const |
Returns the Source Address of this device. More... | |
virtual const char * | GetSwCode () const =0 |
Get the Software version code from the product information of this device. More... | |
unsigned char | GetSystemInstance () const |
Get the System Instance from the Device Information. More... | |
virtual const unsigned long * | GetTransmitPGNs () const |
Get the list of transmitted PGNs from this device. More... | |
uint32_t | GetUniqueNumber () const |
Get the unique Number from the Device Information. More... | |
bool | IsSame (uint64_t Other) |
Check if two devices are the same, by comparing the device name. More... | |
Protected Attributes | |
unsigned long | CreateTime |
Timestamp when this device was created. More... | |
tDeviceInformation | DevI |
This object holds all necessary device informations. More... | |
uint8_t | Source |
Source address on bus for this device. More... | |
This class represents a N2k device.
Definition at line 481 of file NMEA2000.h.
|
inline |
Construct a new Device object.
Initialize all the attributes of the device.
_Name | Name of the device |
_Source | Source address on the bus (default = 255) |
Definition at line 499 of file NMEA2000.h.
|
inlinevirtual |
Destroy the Device object.
Definition at line 502 of file NMEA2000.h.
|
pure virtual |
Get the certification level from the product information of this device.
Implemented in tN2kDeviceList::tInternalDevice.
|
inline |
Returns the Time of Creation of this device.
Definition at line 507 of file NMEA2000.h.
|
inline |
Get the Device Class from the Device Information.
Definition at line 558 of file NMEA2000.h.
|
inline |
Get the Device Function from the Device Information.
Definition at line 552 of file NMEA2000.h.
|
inline |
Get the Device Instance from the Device Information.
Definition at line 536 of file NMEA2000.h.
|
inline |
Get the Device Instance (lower bits) from the Device Information.
Definition at line 541 of file NMEA2000.h.
|
inline |
Get the Device Instance (upper bits) from the Device Information.
Definition at line 546 of file NMEA2000.h.
|
inline |
Get the Industry Group from the Device Information.
Definition at line 563 of file NMEA2000.h.
|
inlinevirtual |
Get the installation description 1 from the configuration information of this device.
Reimplemented in tN2kDeviceList::tInternalDevice.
Definition at line 601 of file NMEA2000.h.
|
inlinevirtual |
Get the installation description 2 from the configuration information of this device.
Reimplemented in tN2kDeviceList::tInternalDevice.
Definition at line 604 of file NMEA2000.h.
|
pure virtual |
Get the load equivalency from the product information of this device.
Implemented in tN2kDeviceList::tInternalDevice.
|
inline |
Get the Manufacturer Code from the Device Information.
Definition at line 530 of file NMEA2000.h.
|
inlinevirtual |
Get the manufacturer information from the configuration information of this device.
Reimplemented in tN2kDeviceList::tInternalDevice.
Definition at line 598 of file NMEA2000.h.
|
pure virtual |
Get the model ID from the product information of this device.
Implemented in tN2kDeviceList::tInternalDevice.
|
pure virtual |
Get the model serial code from the product information of this device.
Implemented in tN2kDeviceList::tInternalDevice.
|
pure virtual |
Get the model version from the product information of this device.
Implemented in tN2kDeviceList::tInternalDevice.
|
pure virtual |
Get N2k Standard version from the product information of this device.
Implemented in tN2kDeviceList::tInternalDevice.
|
inline |
|
pure virtual |
Get the product code from the product information of this device.
Implemented in tN2kDeviceList::tInternalDevice.
|
inlinevirtual |
Get the list of received PGNs from this device.
Reimplemented in tN2kDeviceList::tInternalDevice.
Definition at line 609 of file NMEA2000.h.
|
inline |
Returns the Source Address of this device.
Definition at line 505 of file NMEA2000.h.
|
pure virtual |
Get the Software version code from the product information of this device.
Implemented in tN2kDeviceList::tInternalDevice.
|
inline |
Get the System Instance from the Device Information.
Definition at line 568 of file NMEA2000.h.
|
inlinevirtual |
Get the list of transmitted PGNs from this device.
Reimplemented in tN2kDeviceList::tInternalDevice.
Definition at line 607 of file NMEA2000.h.
|
inline |
Get the unique Number from the Device Information.
Definition at line 525 of file NMEA2000.h.
|
inline |
Check if two devices are the same, by comparing the device name.
Other | Name of the other device |
true | |
false |
Definition at line 520 of file NMEA2000.h.
|
protected |
Timestamp when this device was created.
Definition at line 486 of file NMEA2000.h.
|
protected |
This object holds all necessary device informations.
Definition at line 484 of file NMEA2000.h.
|
protected |
Source address on bus for this device.
Definition at line 488 of file NMEA2000.h.