NMEA2000 Library
0.1
Library to handle NMEA 2000 Communication written in C++
|
Class that holds all the device informations and several helper functions to that. More...
#include <NMEA2000.h>
Classes | |
union | tUnionDeviceInformation |
Union that holds the device informations. More... | |
Public Member Functions | |
tDeviceInformation () | |
Construct a new empty Device Information object. 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... | |
uint16_t | GetManufacturerCode () const |
Get the Manufacturer Code from the Device Information. More... | |
uint64_t | GetName () const |
Get the Name from the Device Information. More... | |
unsigned char | GetSystemInstance () const |
Get the System Instance from the Device Information. 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... | |
void | SetDeviceClass (unsigned char _DeviceClass) |
Set the Device Class to the Device Information. More... | |
void | SetDeviceFunction (unsigned char _DeviceFunction) |
Set the Device Function to the Device Information. More... | |
void | SetDeviceInstance (unsigned char _DeviceInstance) |
Set the Device Instance to the Device Information. More... | |
void | SetIndustryGroup (unsigned char _IndustryGroup) |
Set the Industry Group to the Device Information. More... | |
void | SetManufacturerCode (uint16_t _ManufacturerCode) |
Set the Manufacturer Code to the Device Information. More... | |
void | SetName (uint64_t _Name) |
Set the Name to the Device Information. More... | |
void | SetSystemInstance (unsigned char _SystemInstance) |
Set the System Instance to the Device Information. More... | |
void | SetUniqueNumber (uint32_t _UniqueNumber) |
Set a unique Number to the Device Information. More... | |
Protected Attributes | |
tUnionDeviceInformation | DeviceInformation |
Union that contains all the Device Information More... | |
Class that holds all the device informations and several helper functions to that.
Definition at line 297 of file NMEA2000.h.
|
inline |
Construct a new empty Device Information object.
Definition at line 358 of file NMEA2000.h.
|
inline |
Get the Device Class from the Device Information.
Definition at line 433 of file NMEA2000.h.
|
inline |
Get the Device Function from the Device Information.
Definition at line 419 of file NMEA2000.h.
|
inline |
Get the Device Instance from the Device Information.
Definition at line 394 of file NMEA2000.h.
|
inline |
Get the Device Instance (lower bits) from the Device Information.
Definition at line 400 of file NMEA2000.h.
|
inline |
Get the Device Instance (upper bits) from the Device Information.
Definition at line 405 of file NMEA2000.h.
|
inline |
Get the Industry Group from the Device Information.
Definition at line 445 of file NMEA2000.h.
|
inline |
Get the Manufacturer Code from the Device Information.
Definition at line 382 of file NMEA2000.h.
|
inline |
Get the Name from the Device Information.
Definition at line 462 of file NMEA2000.h.
|
inline |
Get the System Instance from the Device Information.
Definition at line 457 of file NMEA2000.h.
|
inline |
Get the unique Number from the Device Information.
Definition at line 370 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 474 of file NMEA2000.h.
|
inline |
Set the Device Class to the Device Information.
_DeviceClass | Device class code, tDeviceInformation::tUnionDeviceInformation::DeviceClass |
Definition at line 426 of file NMEA2000.h.
|
inline |
Set the Device Function to the Device Information.
_DeviceFunction | Device function code, tDeviceInformation::tUnionDeviceInformation::DeviceFunction |
Definition at line 412 of file NMEA2000.h.
|
inline |
Set the Device Instance to the Device Information.
_DeviceInstance | Instance for the device |
Definition at line 388 of file NMEA2000.h.
|
inline |
Set the Industry Group to the Device Information.
_IndustryGroup | Industry Group |
Definition at line 439 of file NMEA2000.h.
|
inline |
Set the Manufacturer Code to the Device Information.
_ManufacturerCode | Manufacturer Code (max 11 bits) |
Definition at line 376 of file NMEA2000.h.
|
inline |
Set the Name to the Device Information.
_Name | Name of the device |
Definition at line 467 of file NMEA2000.h.
|
inline |
Set the System Instance to the Device Information.
_SystemInstance | System Instance |
Definition at line 451 of file NMEA2000.h.
|
inline |
Set a unique Number to the Device Information.
_UniqueNumber | a unique number for the device (max 21 bits) |
Definition at line 364 of file NMEA2000.h.
|
protected |
Union that contains all the Device Information
Definition at line 352 of file NMEA2000.h.