SELKIELogger
1.0.0
|
Go to the source code of this file.
Classes | |
struct | n2k_act_message |
Macros | |
#define | ACT_ESC 0x10 |
Escape character. | |
#define | ACT_SOT 0x02 |
Start of text. | |
#define | ACT_EOT 0x03 |
End of text. | |
#define | ACT_N2K 0x93 |
N2k Message. | |
#define | ACT_BEM 0xA0 |
BEM CMD ?? | |
Functions | |
bool | n2k_act_to_bytes (const n2k_act_message *act, uint8_t **out, size_t *len) |
Convert N2K message to a series of bytes compatible with ACT gateway devices. More... | |
bool | n2k_act_from_bytes (const uint8_t *in, const size_t len, n2k_act_message **msg, size_t *pos, bool debug) |
Convert a series of recieved bytes from ACT gateway devices into a message representation. More... | |
uint8_t | n2k_act_checksum (const n2k_act_message *msg) |
Calculate checksum for n2k_act_message. More... | |
void | n2k_act_print (const n2k_act_message *msg) |
Print representation of an n2k_act_message to standard output. More... | |
Data types and definitions for communication with N2K devices
Encoding and protocol information heavily based on the equivalent functions in the OpenSkipper project, which can be found at https://github.com/OpenSkipper/OpenSkipper
Definition in file N2KTypes.h.