AgIsoStack++
A control-function-focused implementation of the major ISOBUS and J1939 protocols
Loading...
Searching...
No Matches
can_message_frame.hpp
Go to the documentation of this file.
1//================================================================================================
9//================================================================================================
10
11#ifndef CAN_MESSAGE_FRAME_HPP
12#define CAN_MESSAGE_FRAME_HPP
13
14#include <cstdint>
15
16namespace isobus
17{
18 //================================================================================================
22 //================================================================================================
24 {
25 public:
28 std::uint32_t get_number_bits_in_message() const;
29
30 std::uint64_t timestamp_us;
31 std::uint32_t identifier;
32 std::uint8_t channel;
33 std::uint8_t data[8];
34 std::uint8_t dataLength;
36 };
37
38} // namespace isobus
39
40#endif // CAN_MESSAGE_FRAME_HPP
A CAN frame for interfacing with a hardware layer, like socket CAN or other interface.
std::uint8_t dataLength
The length of the data used in the frame.
std::uint32_t identifier
The 32 bit identifier of the frame.
std::uint64_t timestamp_us
A microsecond timestamp.
bool isExtendedFrame
Denotes if the frame is extended format.
std::uint32_t get_number_bits_in_message() const
std::uint8_t data[8]
The data payload of the frame.
std::uint8_t channel
The CAN channel index associated with the frame.
This namespace encompasses all of the ISO11783 stack's functionality to reduce global namespace pollu...