F´ Flight Software - C/C++ Documentation
A framework for building embedded system applications to NASA flight quality standards.
IdlePacket.hpp
Go to the documentation of this file.
1 // ======================================================================
2 // \title IdlePacket.hpp
3 // \brief Space Packet Protocol idle packet helpers shared by CCSDS framers
4 // ======================================================================
5 #ifndef SVC_CCSDS_UTILS_IDLE_PACKET_HPP
6 #define SVC_CCSDS_UTILS_IDLE_PACKET_HPP
7 
8 #include <limits>
12 
13 namespace Svc {
14 namespace Ccsds {
15 namespace Utils {
16 
18 namespace IdlePacket {
19 
21 constexpr U8 DATA_PATTERN = 0x44;
22 
25 
27 constexpr FwSizeType MAX_SIZE =
28  SpacePacketHeader::SERIALIZED_SIZE + 1 + static_cast<FwSizeType>(std::numeric_limits<U16>::max());
29 
36 
37 } // namespace IdlePacket
38 } // namespace Utils
39 } // namespace Ccsds
40 } // namespace Svc
41 
42 #endif // SVC_CCSDS_UTILS_IDLE_PACKET_HPP
PlatformSizeType FwSizeType
Fw::SerializeStatus serialize(Fw::SerialBufferBase &serializer, FwSizeType size)
Serialize an idle packet of exactly size bytes (header and idle data) into serializer ...
Definition: IdlePacket.cpp:16
SerializeStatus
forward declaration for string
constexpr U8 DATA_PATTERN
Fill pattern for idle packet data.
Definition: IdlePacket.hpp:21
constexpr FwSizeType MIN_SIZE
Minimum idle packet size: header plus one byte of idle data.
Definition: IdlePacket.hpp:24
uint8_t U8
8-bit unsigned integer
Definition: BasicTypes.h:54
RateGroupDivider component implementation.
constexpr FwSizeType MAX_SIZE
Maximum idle packet size: header plus the largest data length the SPP length field can express...
Definition: IdlePacket.hpp:27