NMEA2000 Library
0.1
Library to handle NMEA 2000 Communication written in C++
|
NMEA2000 library example. Show devices on NMEA2000 bus by using tN2kDeviceList. More...
Go to the source code of this file.
Macros | |
#define | N2k_CAN_INT_PIN 21 |
#define | START_DELAY_IN_S 8 |
Functions | |
void | CheckCommand () |
void | ListDevices (bool force=false) |
void | loop () |
void | PrintDevice (const tNMEA2000::tDevice *pDevice) |
template<typename T > | |
void | PrintLabelValWithConversionCheckUnDef (const char *label, T val, double(*ConvFunc)(double val)=0, bool AddLf=false) |
void | PrintText (const char *Text, bool AddLineFeed=true) |
void | PrintUlongList (const char *prefix, const unsigned long *List) |
void | setup () |
Variables | |
Stream * | OutputStream |
tN2kDeviceList * | pN2kDeviceList |
NMEA2000 library example. Show devices on NMEA2000 bus by using tN2kDeviceList.
tN2kDeviceList is helper class, which automatically keeps track of devices on the bus. This example simplyt lists all devices on the bus and prints their information by using data collected by tN2kDeviceList.
Definition in file DeviceAnalyzer.ino.
#define N2k_CAN_INT_PIN 21 |
Definition at line 13 of file DeviceAnalyzer.ino.
#define START_DELAY_IN_S 8 |
Definition at line 104 of file DeviceAnalyzer.ino.
void CheckCommand | ( | ) |
Definition at line 134 of file DeviceAnalyzer.ino.
void ListDevices | ( | bool | force = false | ) |
Definition at line 106 of file DeviceAnalyzer.ino.
void loop | ( | ) |
Definition at line 144 of file DeviceAnalyzer.ino.
void PrintDevice | ( | const tNMEA2000::tDevice * | pDevice | ) |
Definition at line 86 of file DeviceAnalyzer.ino.
void PrintLabelValWithConversionCheckUnDef | ( | const char * | label, |
T | val, | ||
double(*)(double val) | ConvFunc = 0 , |
||
bool | AddLf = false |
||
) |
Definition at line 21 of file DeviceAnalyzer.ino.
void PrintText | ( | const char * | Text, |
bool | AddLineFeed = true |
||
) |
Definition at line 80 of file DeviceAnalyzer.ino.
void PrintUlongList | ( | const char * | prefix, |
const unsigned long * | List | ||
) |
Definition at line 67 of file DeviceAnalyzer.ino.
void setup | ( | ) |
Definition at line 30 of file DeviceAnalyzer.ino.
Stream* OutputStream |
Definition at line 18 of file DeviceAnalyzer.ino.
tN2kDeviceList* pN2kDeviceList |
Definition at line 17 of file DeviceAnalyzer.ino.