24#ifndef DETERMINISTICESPASYNCWEBSERVER_NMEA2000_H
25#define DETERMINISTICESPASYNCWEBSERVER_NMEA2000_H
29#if DETWS_ENABLE_NMEA2000
36#define N2K_FP_SEQ_SHIFT 5
37#define N2K_FP_FRAME_MASK 0x1Fu
38#define N2K_FP_F0_DATA 6u
39#define N2K_FP_FN_DATA 7u
42enum class N2kFpResult : uint8_t
61 uint8_t buf[DETWS_N2K_FP_MAX];
65uint8_t n2k_fastpacket_num_frames(uint16_t total_len);
71bool n2k_fastpacket_build_frame(
CanFrame *out, uint8_t seq, uint8_t frame_idx, uint8_t priority, uint32_t pgn,
72 uint8_t sa, uint8_t da,
const uint8_t *data, uint16_t total_len);
75void n2k_fastpacket_reset(N2kFastPacketRx *rx);
78N2kFpResult n2k_fastpacket_feed(N2kFastPacketRx *rx,
const CanFrame *f);
81bool n2k_build_single(
CanFrame *out, uint8_t priority, uint32_t pgn, uint8_t sa, uint8_t da,
const uint8_t *data,
User-facing configuration for DeterministicESPAsyncWebServer.
Shared CAN 2.0 frame type for the CAN-based industrial codecs (one source of truth).
SAE J1939 message codec (DETWS_ENABLE_J1939) - the heavy-duty-vehicle / agriculture / marine / genset...