F´ Flight Software - C/C++ Documentation
A framework for building embedded system applications to NASA flight quality standards.
SdlsKeyPortAc.hpp
Go to the documentation of this file.
1 // ======================================================================
2 // \title SdlsKeyPortAc.hpp
3 // \author Generated by fpp-to-cpp
4 // \brief hpp file for SdlsKey port
5 // ======================================================================
6 
7 #ifndef Svc_Ccsds_SdlsKeyPortAc_HPP
8 #define Svc_Ccsds_SdlsKeyPortAc_HPP
9 
10 #include "Fw/FPrimeBasicTypes.hpp"
13 #if !FW_DIRECT_PORT_CALLS
17 #endif
18 
19 namespace Svc {
20 
21  namespace Ccsds {
22 
23 #if !FW_DIRECT_PORT_CALLS
24 
29  public Fw::InputPortBase
30  {
31 
32  public:
33 
34  // ----------------------------------------------------------------------
35  // Public types for InputSdlsKeyPort
36  // ----------------------------------------------------------------------
37 
40  Fw::PassiveComponentBase* callComp,
41  FwIndexType portNum,
42  U16 securityAssociationIndex,
44  );
45 
46  public:
47 
48  // ----------------------------------------------------------------------
49  // Public constructors for InputSdlsKeyPort
50  // ----------------------------------------------------------------------
51 
54 
55  public:
56 
57  // ----------------------------------------------------------------------
58  // Public member functions for InputSdlsKeyPort
59  // ----------------------------------------------------------------------
60 
62  void init();
63 
65  void addCallComp(
66  Fw::PassiveComponentBase* callComp,
67  CompFuncPtr funcPtr
68  );
69 
72  U16 securityAssociationIndex,
74  );
75 
76  private:
77 
78  // ----------------------------------------------------------------------
79  // Private member functions for InputSdlsKeyPort
80  // ----------------------------------------------------------------------
81 
82 #if FW_PORT_SERIALIZATION == 1
83 
86  Fw::SerializeStatus invokeSerial(
87  Fw::LinearBufferBase& _buffer
88  );
89 
90 #endif
91 
92  private:
93 
94  // ----------------------------------------------------------------------
95  // Private member variables for InputSdlsKeyPort
96  // ----------------------------------------------------------------------
97 
99  CompFuncPtr m_func;
100 
101  };
102 
107  public Fw::OutputPortBase
108  {
109 
110  public:
111 
112  // ----------------------------------------------------------------------
113  // Public constructors for OutputSdlsKeyPort
114  // ----------------------------------------------------------------------
115 
118 
119  public:
120 
121  // ----------------------------------------------------------------------
122  // Public member functions for OutputSdlsKeyPort
123  // ----------------------------------------------------------------------
124 
126  void init();
127 
129  void addCallPort(
130  InputSdlsKeyPort* callPort
131  );
132 
136  U16 securityAssociationIndex,
138  ) const;
139 
140  private:
141 
142  // ----------------------------------------------------------------------
143  // Private member variables for OutputSdlsKeyPort
144  // ----------------------------------------------------------------------
145 
147  InputSdlsKeyPort* m_port;
148 
149  };
150 
151 #endif
152 
153  }
154 
155 }
156 
157 #endif
void addCallPort(InputSdlsKeyPort *callPort)
Register an input port.
Status of an SDLS (Space Data Link Security) encryption/decryption request.
SerializeStatus
forward declaration for string
Svc::Ccsds::SdlsStatus invoke(U16 securityAssociationIndex, Svc::Ccsds::SdlsKeyBuffer &key)
Invoke a port interface.
void init()
Initialization function.
PlatformIndexType FwIndexType
RateGroupDivider component implementation.
Svc::Ccsds::SdlsStatus invoke(U16 securityAssociationIndex, Svc::Ccsds::SdlsKeyBuffer &key) const
Svc::Ccsds::SdlsStatus(* CompFuncPtr)(Fw::PassiveComponentBase *callComp, FwIndexType portNum, U16 securityAssociationIndex, Svc::Ccsds::SdlsKeyBuffer &key)
The port callback function type.
void addCallComp(Fw::PassiveComponentBase *callComp, CompFuncPtr funcPtr)
Register a component.
void init()
Initialization function.