Skip to content

File candump_format.h

File List > espos_n2k > include > espos_n2k > candump_format.h

Go to the documentation of this file

/* SPDX-FileCopyrightText: 2026 Dirk Wahrheit */
/* SPDX-License-Identifier: Apache-2.0 */
#ifndef COCKPIT_N2K_CANDUMP_FORMAT_H_
#define COCKPIT_N2K_CANDUMP_FORMAT_H_

#include <cstddef>

#include "espos_n2k/can_frame.h"

namespace espos_n2k {

int candump_encode(const CanMessage& msg, const char* iface, char* buf,
                   size_t buf_len);

bool candump_decode(const char* line, CanMessage* out);

size_t candump_resync_offset(const char* buf, size_t len, size_t sent);

}  // namespace espos_n2k

#endif  // COCKPIT_N2K_CANDUMP_FORMAT_H_