AgIsoStack++
A control-function-focused implementation of the major ISOBUS and J1939 protocols
Loading...
Searching...
No Matches
can_constants.hpp
Go to the documentation of this file.
1//================================================================================================
8//================================================================================================
9#ifndef CAN_CONSTANTS_HPP
10#define CAN_CONSTANTS_HPP
11
12#include <cstdint>
13
14namespace isobus
15{
16 constexpr std::uint64_t DEFAULT_NAME = 0xFFFFFFFFFFFFFFFF;
17 constexpr std::uint32_t DEFAULT_IDENTIFIER = 0xFFFFFFFF;
18 constexpr std::uint8_t NULL_CAN_ADDRESS = 0xFE;
19 constexpr std::uint8_t BROADCAST_CAN_ADDRESS = 0xFF;
20 constexpr std::uint8_t CAN_DATA_LENGTH = 8;
21 constexpr std::uint32_t CAN_PORT_MAXIMUM = 4;
22 constexpr std::uint16_t NULL_OBJECT_ID = 65535;
23
24}
25
26#endif // CAN_CONSTANTS_HPP
This namespace encompasses all of the ISO11783 stack's functionality to reduce global namespace pollu...
constexpr std::uint8_t NULL_CAN_ADDRESS
The NULL CAN address defined by J1939 and ISO11783.
constexpr std::uint16_t NULL_OBJECT_ID
Special ID used to indicate no object.
constexpr std::uint8_t CAN_DATA_LENGTH
The length of a classical CAN frame.
constexpr std::uint8_t BROADCAST_CAN_ADDRESS
The global/broadcast CAN address.
constexpr std::uint64_t DEFAULT_NAME
An invalid NAME used as a default.
constexpr std::uint32_t DEFAULT_IDENTIFIER
An invalid identifier used as a default.
constexpr std::uint32_t CAN_PORT_MAXIMUM
An arbitrary limit for memory consumption.