F´ Flight Software - C/C++ Documentation
A framework for building embedded system applications to NASA flight quality standards.
CcsdsSdlsFramer.hpp
Go to the documentation of this file.
1 // ======================================================================
2 // \title CcsdsSdlsFramer.hpp
3 // \author devin
4 // \brief hpp file for CcsdsSdlsFramer component implementation class
5 // ======================================================================
6 
7 #ifndef Svc_Ccsds_CcsdsSdlsFramer_HPP
8 #define Svc_Ccsds_CcsdsSdlsFramer_HPP
9 
10 #include "Svc/Ccsds/CcsdsSdlsFramer/CcsdsSdlsFramerComponentAc.hpp"
11 
12 namespace Svc {
13 
14 namespace Ccsds {
15 
16 class CcsdsSdlsFramer final : public CcsdsSdlsFramerComponentBase {
17  public:
18  // ----------------------------------------------------------------------
19  // Component construction and destruction
20  // ----------------------------------------------------------------------
21 
23  CcsdsSdlsFramer(const char* const compName
24  );
25 
28 
29  private:
30  // ----------------------------------------------------------------------
31  // Handler implementations for typed input ports
32  // ----------------------------------------------------------------------
33 
37  void bufferReturnIn_handler(FwIndexType portNum,
38  Fw::Buffer& data,
39  const ComCfg::FrameContext& context) override;
40 
44  void comStatusIn_handler(FwIndexType portNum,
45  Fw::Success& condition) override;
46 
50  void dataIn_handler(FwIndexType portNum,
51  Fw::Buffer& data,
52  const ComCfg::FrameContext& context) override;
53 
57  void dataReturnIn_handler(FwIndexType portNum,
58  Fw::Buffer& data,
59  const ComCfg::FrameContext& context) override;
60 
64  void encryptIn_handler(FwIndexType portNum,
65  const Svc::Ccsds::SdlsStatus& status,
66  Fw::Buffer& data,
67  const ComCfg::FrameContext& context) override;
68 
69  // ----------------------------------------------------------------------
70  // Private helpers
71  // ----------------------------------------------------------------------
72 
74  void sendComStatusOnDrop();
75 };
76 
77 } // namespace Ccsds
78 
79 } // namespace Svc
80 
81 #endif
CcsdsSdlsFramer(const char *const compName)
Construct CcsdsSdlsFramer object.
Status of an SDLS (Space Data Link Security) encryption/decryption request.
PlatformIndexType FwIndexType
Type used to pass context info between components during framing/deframing.
RateGroupDivider component implementation.
Success/Failure.
~CcsdsSdlsFramer()
Destroy CcsdsSdlsFramer object.