DBC framework
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
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
*/
24
struct
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
35
FrameInfo
()
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 */
signal_info.h
Created: 2026-03-13 Author: Deeaitch (Dim. Himro)
FrameInfo
Describes one CAN frame from a DBC file.
Definition:
frame_info.h:24
FrameInfo::isExtended
bool isExtended
Definition:
frame_info.h:27
FrameInfo::hasPgn
bool hasPgn
Definition:
frame_info.h:29
FrameInfo::FrameInfo
FrameInfo()
Definition:
frame_info.h:35
FrameInfo::transmitter
std::string transmitter
Definition:
frame_info.h:31
FrameInfo::signals
std::vector< SignalInfo > signals
Definition:
frame_info.h:33
FrameInfo::dlc
std::uint8_t dlc
Definition:
frame_info.h:30
FrameInfo::name
std::string name
Definition:
frame_info.h:25
FrameInfo::comment
std::string comment
Definition:
frame_info.h:32
FrameInfo::pgn
std::uint32_t pgn
Definition:
frame_info.h:28
FrameInfo::canId
std::uint32_t canId
Definition:
frame_info.h:26
Generated on Sun Jun 14 2026 20:49:34 for DBC framework by
1.9.4