21 #ifndef SELKIELoggerN2K_Types
22 #define SELKIELoggerN2K_Types
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.
void n2k_act_print(const n2k_act_message *msg)
Print representation of an n2k_act_message to standard output.
uint8_t n2k_act_checksum(const n2k_act_message *msg)
Calculate checksum for n2k_act_message.
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.
uint8_t priority
N2K Message priority value.
uint32_t PGN
24 bit PGN identifier
uint8_t * data
Message payload.
uint8_t datalen
Length of *data.
uint8_t dst
Message destination.
uint32_t timestamp
Message timestamp.
uint8_t src
Message source.
uint8_t length
Counted from priority to csum.