DBC framework
frame_info.h
Go to the documentation of this file.
1/**
2 * @file frame_info.h
3 * @brief
4 *
5 * Created: 2026-03-13
6 * Author: Deeaitch (Dim. Himro)
7 *
8 * Licensed under the MIT License.
9 * See LICENSE file in the project root for full license text.
10 */
11
12#ifndef FRAME_INFO_H
13#define FRAME_INFO_H
14
15#include <string>
16#include <vector>
17#include <cstdint>
18
19#include "signal_info.h"
20
21/**
22 * @brief Describes one CAN frame from a DBC file.
23 */
24struct FrameInfo {
25 std::string name; /**< Frame name. */
26 std::uint32_t canId; /**< Normalized CAN identifier. */
27 bool isExtended; /**< true for extended frame. */
28 std::uint32_t pgn; /**< J1939 PGN if applicable. */
29 bool hasPgn; /**< true if PGN was derived. */
30 std::uint8_t dlc; /**< Frame payload length. */
31 std::string transmitter; /**< Transmitter ECU name. */
32 std::string comment; /**< Optional frame comment. */
33 std::vector<SignalInfo> signals; /**< Signals contained in the frame. */
34
36 : name()
37 , canId (0U)
38 , isExtended (false)
39 , pgn (0U)
40 , hasPgn (false)
41 , dlc (0U)
42 , transmitter()
43 , comment()
44 , signals() {
45 }
46};
47
48#endif /* FRAME_INFO_H */
Created: 2026-03-13 Author: Deeaitch (Dim. Himro)
Describes one CAN frame from a DBC file.
Definition: frame_info.h:24
bool isExtended
Definition: frame_info.h:27
bool hasPgn
Definition: frame_info.h:29
std::string transmitter
Definition: frame_info.h:31
std::vector< SignalInfo > signals
Definition: frame_info.h:33
std::uint8_t dlc
Definition: frame_info.h:30
std::string name
Definition: frame_info.h:25
std::string comment
Definition: frame_info.h:32
std::uint32_t pgn
Definition: frame_info.h:28
std::uint32_t canId
Definition: frame_info.h:26