SELKIELogger
1.0.0
|
#include <N2KTypes.h>
Public Attributes | |
uint8_t | length |
Counted from priority to csum. | |
uint8_t | priority |
N2K Message priority value. | |
uint32_t | PGN |
24 bit PGN identifier | |
uint8_t | dst |
Message destination. | |
uint8_t | src |
Message source. | |
uint32_t | timestamp |
Message timestamp. | |
uint8_t | datalen |
Length of *data. | |
uint8_t * | data |
Message payload. | |
uint8_t | csum |
Represent an N2K message received from an ACT gateway device
The PGN value is transmitted as three separate bytes, but combined here as a 24 bit value (stored as an unsigned 32 bit integer).
Transmitted messages are escaped such that any ACT_ESC bytes in the original data are doubled up as ACT_ESC ACT_ESC
Definition at line 80 of file N2KTypes.h.
uint8_t n2k_act_message::csum |
Message checksum: 0 if cs == 0 else 256 - cs, where cs=sum(ACT_N2K+priority+....+data)
Definition at line 95 of file N2KTypes.h.