CCSDS 124.0-B-1 C++ 1.0.0
CCSDS 124.0-B-1 Lossless Compression
Loading...
Searching...
No Matches
config.hpp
Go to the documentation of this file.
1
24#ifndef CCSDS124_CONFIG_HPP
25#define CCSDS124_CONFIG_HPP
26
27#include <cstddef>
28#include <cstdint>
29
30namespace ccsds124 {
31
36inline constexpr int VERSION_MAJOR = 1;
37inline constexpr int VERSION_MINOR = 0;
38inline constexpr int VERSION_PATCH = 0;
47#ifndef CCSDS124_MAX_PACKET_LENGTH
48#define CCSDS124_MAX_PACKET_LENGTH 65535U
49#endif
50
51inline constexpr std::size_t MAX_PACKET_LENGTH = CCSDS124_MAX_PACKET_LENGTH;
52inline constexpr std::size_t MAX_PACKET_BYTES = (MAX_PACKET_LENGTH + 7U) / 8U;
53inline constexpr std::size_t MAX_ROBUSTNESS = 7U;
54inline constexpr std::size_t MAX_HISTORY = 16U;
55inline constexpr std::size_t MAX_VT_HISTORY = 16U;
56inline constexpr std::size_t MAX_OUTPUT_BYTES = MAX_PACKET_BYTES * 6U;
57
59using word_t = std::uint32_t;
60inline constexpr std::size_t BITS_PER_WORD = 32U;
61
70#ifndef CCSDS124_NO_EXCEPTIONS
71#define CCSDS124_NO_EXCEPTIONS 0
72#endif
73
74#ifndef CCSDS124_NO_RTTI
75#define CCSDS124_NO_RTTI 0
76#endif
79} // namespace ccsds124
80
81#endif // CCSDS124_CONFIG_HPP
constexpr std::size_t MAX_OUTPUT_BYTES
Definition config.hpp:56
constexpr std::size_t MAX_ROBUSTNESS
Definition config.hpp:53
constexpr std::size_t MAX_VT_HISTORY
Definition config.hpp:55
std::uint32_t word_t
32-bit word type for bit vector storage (matches C implementation)
Definition config.hpp:59
#define CCSDS124_MAX_PACKET_LENGTH
Maximum packet length in bits (CCSDS max: 65535)
Definition config.hpp:48
constexpr std::size_t MAX_PACKET_BYTES
Definition config.hpp:52
constexpr std::size_t BITS_PER_WORD
Definition config.hpp:60
constexpr std::size_t MAX_PACKET_LENGTH
Definition config.hpp:51
constexpr std::size_t MAX_HISTORY
Definition config.hpp:54
constexpr int VERSION_PATCH
Definition config.hpp:38
constexpr int VERSION_MAJOR
Definition config.hpp:36
constexpr int VERSION_MINOR
Definition config.hpp:37