fsfw/src/fsfw/tmtcpacket/pus/defs.h

31 lines
705 B
C
Raw Normal View History

2021-10-05 13:13:36 +02:00
#ifndef FSFW_SRC_FSFW_TMTCPACKET_PUS_TM_DEFINITIONS_H_
#define FSFW_SRC_FSFW_TMTCPACKET_PUS_TM_DEFINITIONS_H_
#include <cstdint>
2022-07-21 17:48:11 +02:00
#include <utility>
2021-10-05 13:13:36 +02:00
2022-07-20 22:21:15 +02:00
#include "fsfw/serialize/SerializeIF.h"
2022-07-19 18:13:25 +02:00
namespace ecss {
2021-10-05 13:13:36 +02:00
2022-07-21 11:34:11 +02:00
using PusChecksumT = uint16_t;
2021-10-05 13:13:36 +02:00
//! Version numbers according to ECSS-E-ST-70-41C p.439
2022-07-19 18:13:25 +02:00
enum PusVersion : uint8_t { PUS_A = 1, PUS_C = 2 };
2021-10-05 13:13:36 +02:00
2022-07-21 11:34:11 +02:00
/**
* This struct defines the data structure of a Space Packet when accessed
* via a pointer.
* @ingroup tmtcpackets
*/
struct PusPointers {
const uint8_t* spHeaderStart;
const uint8_t* secHeaderStart;
const uint8_t* userDataStart;
const uint8_t* crcStart;
};
2022-07-19 18:13:25 +02:00
} // namespace ecss
2021-10-05 13:13:36 +02:00
#endif /* FSFW_SRC_FSFW_TMTCPACKET_PUS_TM_DEFINITIONS_H_ */