F´ Flight Software - C/C++ Documentation
A framework for building embedded system applications to NASA flight quality standards.
CcsdsSdlsFramerComponentAc.hpp
Go to the documentation of this file.
1 // ======================================================================
2 // \title CcsdsSdlsFramerComponentAc.hpp
3 // \author Generated by fpp-to-cpp
4 // \brief hpp file for CcsdsSdlsFramer component base class
5 // ======================================================================
6 
7 #ifndef Svc_Ccsds_CcsdsSdlsFramerComponentAc_HPP
8 #define Svc_Ccsds_CcsdsSdlsFramerComponentAc_HPP
9 
10 #include <atomic>
11 
14 #include "Fw/Cmd/CmdPortAc.hpp"
15 #include "Fw/Cmd/CmdRegPortAc.hpp"
17 #include "Fw/Cmd/CmdString.hpp"
19 #include "Fw/FPrimeBasicTypes.hpp"
20 #include "Fw/Log/LogPortAc.hpp"
21 #include "Fw/Log/LogString.hpp"
22 #include "Fw/Log/LogTextPortAc.hpp"
23 #if !FW_DIRECT_PORT_CALLS
25 #endif
26 #if !FW_DIRECT_PORT_CALLS
28 #endif
30 #include "Fw/Prm/PrmGetPortAc.hpp"
31 #include "Fw/Prm/PrmSetPortAc.hpp"
32 #include "Fw/Prm/PrmString.hpp"
33 #include "Fw/Time/TimePortAc.hpp"
34 #include "Os/Mutex.hpp"
40 
41 namespace Svc {
42 
43  namespace Ccsds {
44 
57  {
58 
59  // ----------------------------------------------------------------------
60  // Friend classes
61  // ----------------------------------------------------------------------
62 
66  friend class CcsdsSdlsFramerTester;
67 
68  protected:
69 
70  // ----------------------------------------------------------------------
71  // Constants
72  // ----------------------------------------------------------------------
73 
75  enum {
77  };
78 
80  enum {
86  };
87 
89  enum {
97  };
98 
100  enum {
108  };
109 
111  enum {
114  };
115 
117  enum {
120  };
121 
123  enum {
126  };
127 
129  enum {
131  };
132 
133  public:
134 
135  // ----------------------------------------------------------------------
136  // Component initialization
137  // ----------------------------------------------------------------------
138 
140  void init(
141  FwEnumStoreType instance = 0
142  );
143 
144 #if !FW_DIRECT_PORT_CALLS
145 
146  public:
147 
148  // ----------------------------------------------------------------------
149  // Getters for special input ports
150  // ----------------------------------------------------------------------
151 
156  FwIndexType portNum
157  );
158 
159 #endif
160 
161 #if !FW_DIRECT_PORT_CALLS
162 
163  public:
164 
165  // ----------------------------------------------------------------------
166  // Getters for typed input ports
167  // ----------------------------------------------------------------------
168 
173  FwIndexType portNum
174  );
175 
180  FwIndexType portNum
181  );
182 
187  FwIndexType portNum
188  );
189 
194  FwIndexType portNum
195  );
196 
201  FwIndexType portNum
202  );
203 
204 #endif
205 
206 #if !FW_DIRECT_PORT_CALLS
207 
208  public:
209 
210  // ----------------------------------------------------------------------
211  // Connect input ports to special output ports
212  // ----------------------------------------------------------------------
213 
216  FwIndexType portNum,
217  Fw::InputCmdRegPort* port
218  );
219 
222  FwIndexType portNum,
224  );
225 
228  FwIndexType portNum,
229  Fw::InputLogPort* port
230  );
231 
232 #if FW_ENABLE_TEXT_LOGGING == 1
233 
235  void set_logTextOut_OutputPort(
236  FwIndexType portNum,
237  Fw::InputLogTextPort* port
238  );
239 
240 #endif
241 
244  FwIndexType portNum,
245  Fw::InputPrmGetPort* port
246  );
247 
250  FwIndexType portNum,
251  Fw::InputPrmSetPort* port
252  );
253 
256  FwIndexType portNum,
257  Fw::InputTimePort* port
258  );
259 
260 #endif
261 
262 #if !FW_DIRECT_PORT_CALLS
263 
264  public:
265 
266  // ----------------------------------------------------------------------
267  // Connect typed input ports to typed output ports
268  // ----------------------------------------------------------------------
269 
272  FwIndexType portNum,
274  );
275 
278  FwIndexType portNum,
280  );
281 
284  FwIndexType portNum,
286  );
287 
290  FwIndexType portNum,
292  );
293 
296  FwIndexType portNum,
298  );
299 
302  FwIndexType portNum,
304  );
305 
308  FwIndexType portNum,
310  );
311 
312 #endif
313 
314 #if !FW_DIRECT_PORT_CALLS && FW_PORT_SERIALIZATION
315 
316  public:
317 
318  // ----------------------------------------------------------------------
319  // Connect serial input ports to special output ports
320  // ----------------------------------------------------------------------
321 
324  FwIndexType portNum,
325  Fw::InputSerializePort* port
326  );
327 
330  FwIndexType portNum,
331  Fw::InputSerializePort* port
332  );
333 
336  FwIndexType portNum,
337  Fw::InputSerializePort* port
338  );
339 
340 #if FW_ENABLE_TEXT_LOGGING == 1
341 
343  void set_logTextOut_OutputPort(
344  FwIndexType portNum,
345  Fw::InputSerializePort* port
346  );
347 
348 #endif
349 
352  FwIndexType portNum,
353  Fw::InputSerializePort* port
354  );
355 
358  FwIndexType portNum,
359  Fw::InputSerializePort* port
360  );
361 
362 #endif
363 
364 #if !FW_DIRECT_PORT_CALLS && FW_PORT_SERIALIZATION
365 
366  public:
367 
368  // ----------------------------------------------------------------------
369  // Connect serial input ports to typed output ports
370  // ----------------------------------------------------------------------
371 
374  FwIndexType portNum,
375  Fw::InputSerializePort* port
376  );
377 
380  FwIndexType portNum,
381  Fw::InputSerializePort* port
382  );
383 
386  FwIndexType portNum,
387  Fw::InputSerializePort* port
388  );
389 
392  FwIndexType portNum,
393  Fw::InputSerializePort* port
394  );
395 
398  FwIndexType portNum,
399  Fw::InputSerializePort* port
400  );
401 
404  FwIndexType portNum,
405  Fw::InputSerializePort* port
406  );
407 
408 #endif
409 
410  public:
411 
412  // ----------------------------------------------------------------------
413  // Command registration
414  // ----------------------------------------------------------------------
415 
419  void regCommands();
420 
421  public:
422 
423  // ----------------------------------------------------------------------
424  // Parameter loading
425  // ----------------------------------------------------------------------
426 
430  void loadParameters();
431 
432  protected:
433 
434  // ----------------------------------------------------------------------
435  // Component construction and destruction
436  // ----------------------------------------------------------------------
437 
440  const char* compName = ""
441  );
442 
445 
446  protected:
447 
448  // ----------------------------------------------------------------------
449  // Getters for numbers of special input ports
450  // ----------------------------------------------------------------------
451 
456  return NUM_CMDIN_INPUT_PORTS;
457  }
458 
459  protected:
460 
461  // ----------------------------------------------------------------------
462  // Getters for numbers of typed input ports
463  // ----------------------------------------------------------------------
464 
470  }
471 
477  }
478 
483  return NUM_DATAIN_INPUT_PORTS;
484  }
485 
491  }
492 
498  }
499 
500  protected:
501 
502  // ----------------------------------------------------------------------
503  // Getters for numbers of special output ports
504  // ----------------------------------------------------------------------
505 
511  }
512 
518  }
519 
525  }
526 
527 #if FW_ENABLE_TEXT_LOGGING == 1
528 
532  static constexpr FwIndexType getNum_logTextOut_OutputPorts() {
534  }
535 
536 #endif
537 
543  }
544 
550  }
551 
557  }
558 
559  protected:
560 
561  // ----------------------------------------------------------------------
562  // Getters for numbers of typed output ports
563  // ----------------------------------------------------------------------
564 
570  }
571 
577  }
578 
584  }
585 
591  }
592 
598  }
599 
605  }
606 
612  }
613 
614  protected:
615 
616  // ----------------------------------------------------------------------
617  // Connection status queries for special output ports
618  // ----------------------------------------------------------------------
619 
624  FwIndexType portNum
625  ) const;
626 
631  FwIndexType portNum
632  ) const;
633 
638  FwIndexType portNum
639  ) const;
640 
641 #if FW_ENABLE_TEXT_LOGGING == 1
642 
646  bool isConnected_logTextOut_OutputPort(
647  FwIndexType portNum
648  ) const;
649 
650 #endif
651 
656  FwIndexType portNum
657  ) const;
658 
663  FwIndexType portNum
664  ) const;
665 
670  FwIndexType portNum
671  ) const;
672 
673  protected:
674 
675  // ----------------------------------------------------------------------
676  // Connection status queries for typed output ports
677  // ----------------------------------------------------------------------
678 
683  FwIndexType portNum
684  ) const;
685 
690  FwIndexType portNum
691  ) const;
692 
697  FwIndexType portNum
698  ) const;
699 
704  FwIndexType portNum
705  ) const;
706 
711  FwIndexType portNum
712  ) const;
713 
718  FwIndexType portNum
719  ) const;
720 
725  FwIndexType portNum
726  ) const;
727 
728 #if FW_DIRECT_PORT_CALLS
729  public:
730 #else
731  protected:
732 #endif
733 
734  // ----------------------------------------------------------------------
735  // Port handler base-class functions for special input ports
736  //
737  // Call these functions directly to bypass the corresponding ports
738  // ----------------------------------------------------------------------
739 
741  void cmdIn_handlerBase(
742  FwIndexType portNum,
743  FwOpcodeType opCode,
744  U32 cmdSeq,
745  Fw::CmdArgBuffer& args
746  );
747 
748  protected:
749 
750  // ----------------------------------------------------------------------
751  // Handlers to implement for typed input ports
752  // ----------------------------------------------------------------------
753 
755  virtual void bufferReturnIn_handler(
756  FwIndexType portNum,
757  Fw::Buffer& data,
758  const ComCfg::FrameContext& context
759  ) = 0;
760 
762  virtual void comStatusIn_handler(
763  FwIndexType portNum,
764  Fw::Success& condition
765  ) = 0;
766 
768  virtual void dataIn_handler(
769  FwIndexType portNum,
770  Fw::Buffer& data,
771  const ComCfg::FrameContext& context
772  ) = 0;
773 
775  virtual void dataReturnIn_handler(
776  FwIndexType portNum,
777  Fw::Buffer& data,
778  const ComCfg::FrameContext& context
779  ) = 0;
780 
782  virtual void encryptIn_handler(
783  FwIndexType portNum,
784  const Svc::Ccsds::SdlsStatus& status,
785  Fw::Buffer& data,
786  const ComCfg::FrameContext& context
787  ) = 0;
788 
789 #if FW_DIRECT_PORT_CALLS
790  public:
791 #else
792  protected:
793 #endif
794 
795  // ----------------------------------------------------------------------
796  // Port handler base-class functions for typed input ports
797  //
798  // Call these functions directly to bypass the corresponding ports
799  // ----------------------------------------------------------------------
800 
803  FwIndexType portNum,
804  Fw::Buffer& data,
805  const ComCfg::FrameContext& context
806  );
807 
810  FwIndexType portNum,
811  Fw::Success& condition
812  );
813 
815  void dataIn_handlerBase(
816  FwIndexType portNum,
817  Fw::Buffer& data,
818  const ComCfg::FrameContext& context
819  );
820 
823  FwIndexType portNum,
824  Fw::Buffer& data,
825  const ComCfg::FrameContext& context
826  );
827 
830  FwIndexType portNum,
831  const Svc::Ccsds::SdlsStatus& status,
832  Fw::Buffer& data,
833  const ComCfg::FrameContext& context
834  );
835 
836  protected:
837 
838  // ----------------------------------------------------------------------
839  // Invocation functions for typed output ports
840  // ----------------------------------------------------------------------
841 
844  FwIndexType portNum,
845  FwSizeType size
846  ) const;
847 
850  FwIndexType portNum,
851  Fw::Buffer& fwBuffer
852  ) const;
853 
855  void comStatusOut_out(
856  FwIndexType portNum,
857  Fw::Success& condition
858  ) const;
859 
861  void dataOut_out(
862  FwIndexType portNum,
863  Fw::Buffer& data,
864  const ComCfg::FrameContext& context
865  ) const;
866 
868  void dataReturnOut_out(
869  FwIndexType portNum,
870  Fw::Buffer& data,
871  const ComCfg::FrameContext& context
872  ) const;
873 
875  void encryptOut_out(
876  FwIndexType portNum,
877  U16 securityAssociationIndex,
878  Fw::Buffer& data,
879  const ComCfg::FrameContext& context
880  ) const;
881 
884  FwIndexType portNum,
885  Fw::Buffer& data,
886  const ComCfg::FrameContext& context
887  ) const;
888 
889  protected:
890 
891  // ----------------------------------------------------------------------
892  // Command response
893  // ----------------------------------------------------------------------
894 
896  void cmdResponse_out(
897  FwOpcodeType opCode,
898  U32 cmdSeq,
899  Fw::CmdResponse response
900  );
901 
902  protected:
903 
904  // ----------------------------------------------------------------------
905  // Event logging functions
906  // ----------------------------------------------------------------------
907 
912 
917 
918  protected:
919 
920  // ----------------------------------------------------------------------
921  // Event throttle reset functions
922  // ----------------------------------------------------------------------
923 
926 
929 
930  protected:
931 
932  // ----------------------------------------------------------------------
933  // Parameter hook functions
934  // ----------------------------------------------------------------------
935 
939  virtual void parameterUpdated(
940  FwPrmIdType id
941  );
942 
948  virtual void parametersLoaded();
949 
955  virtual void parameterLoaded(
956  FwPrmIdType id,
957  Fw::ParamValid valid
958  );
959 
960  protected:
961 
962  // ----------------------------------------------------------------------
963  // Parameter get functions
964  // ----------------------------------------------------------------------
965 
971  U16 paramGet_SA_INDEX(
972  Fw::ParamValid& valid
973  );
974 
975  protected:
976 
977  // ----------------------------------------------------------------------
978  // Time
979  // ----------------------------------------------------------------------
980 
984  Fw::Time getTime() const;
985 
986  private:
987 
988  // ----------------------------------------------------------------------
989  // Calls for messages received on special input ports
990  // ----------------------------------------------------------------------
991 
993  static void m_p_cmdIn_in(
994  Fw::PassiveComponentBase* callComp,
995  FwIndexType portNum,
996  FwOpcodeType opCode,
997  U32 cmdSeq,
998  Fw::CmdArgBuffer& args
999  );
1000 
1001  private:
1002 
1003  // ----------------------------------------------------------------------
1004  // Calls for messages received on typed input ports
1005  // ----------------------------------------------------------------------
1006 
1008  static void m_p_bufferReturnIn_in(
1009  Fw::PassiveComponentBase* callComp,
1010  FwIndexType portNum,
1011  Fw::Buffer& data,
1012  const ComCfg::FrameContext& context
1013  );
1014 
1016  static void m_p_comStatusIn_in(
1017  Fw::PassiveComponentBase* callComp,
1018  FwIndexType portNum,
1019  Fw::Success& condition
1020  );
1021 
1023  static void m_p_dataIn_in(
1024  Fw::PassiveComponentBase* callComp,
1025  FwIndexType portNum,
1026  Fw::Buffer& data,
1027  const ComCfg::FrameContext& context
1028  );
1029 
1031  static void m_p_dataReturnIn_in(
1032  Fw::PassiveComponentBase* callComp,
1033  FwIndexType portNum,
1034  Fw::Buffer& data,
1035  const ComCfg::FrameContext& context
1036  );
1037 
1039  static void m_p_encryptIn_in(
1040  Fw::PassiveComponentBase* callComp,
1041  FwIndexType portNum,
1042  const Svc::Ccsds::SdlsStatus& status,
1043  Fw::Buffer& data,
1044  const ComCfg::FrameContext& context
1045  );
1046 
1047  private:
1048 
1049  // ----------------------------------------------------------------------
1050  // Invocation functions for special output ports
1051  // ----------------------------------------------------------------------
1052 
1054  void cmdRegOut_out(
1055  FwIndexType portNum,
1056  FwOpcodeType opCode
1057  ) const;
1058 
1060  void cmdResponseOut_out(
1061  FwIndexType portNum,
1062  FwOpcodeType opCode,
1063  U32 cmdSeq,
1064  const Fw::CmdResponse& response
1065  ) const;
1066 
1068  void logOut_out(
1069  FwIndexType portNum,
1070  FwEventIdType id,
1071  Fw::Time& timeTag,
1072  const Fw::LogSeverity& severity,
1073  Fw::LogBuffer& args
1074  ) const;
1075 
1076 #if FW_ENABLE_TEXT_LOGGING
1077 
1079  void logTextOut_out(
1080  FwIndexType portNum,
1081  FwEventIdType id,
1082  Fw::Time& timeTag,
1083  const Fw::LogSeverity& severity,
1084  Fw::TextLogString& text
1085  ) const;
1086 
1087 #endif
1088 
1090  Fw::ParamValid prmGetOut_out(
1091  FwIndexType portNum,
1092  FwPrmIdType id,
1093  Fw::ParamBuffer& val
1094  ) const;
1096 
1098  void prmSetOut_out(
1099  FwIndexType portNum,
1100  FwPrmIdType id,
1101  Fw::ParamBuffer& val
1102  ) const;
1103 
1105  void timeCaller_out(
1106  FwIndexType portNum,
1107  Fw::Time& time
1108  ) const;
1109 
1110  private:
1111 
1112  // ----------------------------------------------------------------------
1113  // Parameter set functions
1114  // ----------------------------------------------------------------------
1115 
1119  Fw::CmdResponse paramSet_SA_INDEX(
1120  Fw::SerialBufferBase& val
1121  );
1122 
1123  private:
1124 
1125  // ----------------------------------------------------------------------
1126  // Parameter save functions
1127  // ----------------------------------------------------------------------
1128 
1132  Fw::CmdResponse paramSave_SA_INDEX();
1133 
1134 #if !FW_DIRECT_PORT_CALLS
1135 
1136  private:
1137 
1138  // ----------------------------------------------------------------------
1139  // Special input ports
1140  // ----------------------------------------------------------------------
1141 
1143  Fw::InputCmdPort m_cmdIn_InputPort[NUM_CMDIN_INPUT_PORTS];
1144 
1145 #endif
1146 
1147 #if !FW_DIRECT_PORT_CALLS
1148 
1149  private:
1150 
1151  // ----------------------------------------------------------------------
1152  // Typed input ports
1153  // ----------------------------------------------------------------------
1154 
1157 
1160 
1163 
1166 
1169 
1170 #endif
1171 
1172 #if !FW_DIRECT_PORT_CALLS
1173 
1174  private:
1175 
1176  // ----------------------------------------------------------------------
1177  // Special output ports
1178  // ----------------------------------------------------------------------
1179 
1181  Fw::OutputCmdRegPort m_cmdRegOut_OutputPort[NUM_CMDREGOUT_OUTPUT_PORTS];
1182 
1184  Fw::OutputCmdResponsePort m_cmdResponseOut_OutputPort[NUM_CMDRESPONSEOUT_OUTPUT_PORTS];
1185 
1187  Fw::OutputLogPort m_logOut_OutputPort[NUM_LOGOUT_OUTPUT_PORTS];
1188 
1189 #if FW_ENABLE_TEXT_LOGGING == 1
1190 
1192  Fw::OutputLogTextPort m_logTextOut_OutputPort[NUM_LOGTEXTOUT_OUTPUT_PORTS];
1193 
1194 #endif
1195 
1197  Fw::OutputPrmGetPort m_prmGetOut_OutputPort[NUM_PRMGETOUT_OUTPUT_PORTS];
1198 
1200  Fw::OutputPrmSetPort m_prmSetOut_OutputPort[NUM_PRMSETOUT_OUTPUT_PORTS];
1201 
1203  Fw::OutputTimePort m_timeCaller_OutputPort[NUM_TIMECALLER_OUTPUT_PORTS];
1204 
1205 #endif
1206 
1207 #if !FW_DIRECT_PORT_CALLS
1208 
1209  private:
1210 
1211  // ----------------------------------------------------------------------
1212  // Typed output ports
1213  // ----------------------------------------------------------------------
1214 
1216  Fw::OutputBufferGetPort m_bufferAllocate_OutputPort[NUM_BUFFERALLOCATE_OUTPUT_PORTS];
1217 
1219  Fw::OutputBufferSendPort m_bufferDeallocate_OutputPort[NUM_BUFFERDEALLOCATE_OUTPUT_PORTS];
1220 
1223 
1226 
1229 
1232 
1235 
1236 #endif
1237 
1238  private:
1239 
1240  // ----------------------------------------------------------------------
1241  // Counter values for event throttling
1242  // ----------------------------------------------------------------------
1243 
1245  FwIndexType m_EncryptionFailedThrottle;
1246 
1248  Fw::Time m_EncryptionFailedThrottleTime;
1249 
1251  FwIndexType m_BufferAllocationFailedThrottle;
1252 
1254  Fw::Time m_BufferAllocationFailedThrottleTime;
1255 
1256  private:
1257 
1258  // ----------------------------------------------------------------------
1259  // Parameter validity flags
1260  // ----------------------------------------------------------------------
1261 
1263  Fw::ParamValid m_param_SA_INDEX_valid = Fw::ParamValid::UNINIT;
1264 
1265  private:
1266 
1267  // ----------------------------------------------------------------------
1268  // Parameter variables
1269  // ----------------------------------------------------------------------
1270 
1274  U16 m_SA_INDEX;
1275 
1276  private:
1277 
1278  // ----------------------------------------------------------------------
1279  // Mutexes
1280  // ----------------------------------------------------------------------
1281 
1283  Os::Mutex m_paramLock;
1284 
1286  Os::Mutex m_eventLock;
1287 
1288  };
1289 
1290  }
1291 
1292 }
1293 
1294 #endif
void dataIn_handlerBase(FwIndexType portNum, Fw::Buffer &data, const ComCfg::FrameContext &context)
Handler base-class function for input port dataIn.
friend class CcsdsSdlsFramerTesterBase
Friend class tester to support autocoded test harness.
void set_timeCaller_OutputPort(FwIndexType portNum, Fw::InputTimePort *port)
Connect port to timeCaller[portNum].
void set_prmSetOut_OutputPort(FwIndexType portNum, Fw::InputPrmSetPort *port)
Connect port to prmSetOut[portNum].
FwIdType FwOpcodeType
The type of a command opcode.
void set_dataReturnOut_OutputPort(FwIndexType portNum, Svc::InputComDataWithContextPort *port)
Connect port to dataReturnOut[portNum].
PlatformSizeType FwSizeType
bool isConnected_encryptOut_OutputPort(FwIndexType portNum) const
bool isConnected_logOut_OutputPort(FwIndexType portNum) const
I32 FwEnumStoreType
void bufferReturnIn_handlerBase(FwIndexType portNum, Fw::Buffer &data, const ComCfg::FrameContext &context)
Handler base-class function for input port bufferReturnIn.
virtual void comStatusIn_handler(FwIndexType portNum, Fw::Success &condition)=0
Handler for input port comStatusIn.
void set_prmGetOut_OutputPort(FwIndexType portNum, Fw::InputPrmGetPort *port)
Connect port to prmGetOut[portNum].
static constexpr FwIndexType getNum_dataIn_InputPorts()
bool isConnected_bufferDeallocate_OutputPort(FwIndexType portNum) const
FwIdType FwPrmIdType
The type of a parameter identifier.
Link-time delegating Mutex implementation.
bool isConnected_encryptReturnOut_OutputPort(FwIndexType portNum) const
static constexpr FwIndexType getNum_bufferDeallocate_OutputPorts()
Auto-generated base for CcsdsSdlsFramer component.
bool isConnected_comStatusOut_OutputPort(FwIndexType portNum) const
void comStatusIn_handlerBase(FwIndexType portNum, Fw::Success &condition)
Handler base-class function for input port comStatusIn.
static constexpr FwIndexType getNum_bufferReturnIn_InputPorts()
static constexpr FwIndexType getNum_prmSetOut_OutputPorts()
static constexpr FwIndexType getNum_encryptIn_InputPorts()
void comStatusOut_out(FwIndexType portNum, Fw::Success &condition) const
Invoke output port comStatusOut.
virtual void parameterUpdated(FwPrmIdType id)
Called whenever a parameter is updated.
static constexpr FwIndexType getNum_encryptOut_OutputPorts()
Svc::InputComDataWithContextPort * get_bufferReturnIn_InputPort(FwIndexType portNum)
Enum representing a command response.
void dataReturnIn_handlerBase(FwIndexType portNum, Fw::Buffer &data, const ComCfg::FrameContext &context)
Handler base-class function for input port dataReturnIn.
CcsdsSdlsFramerComponentBase(const char *compName="")
Construct CcsdsSdlsFramerComponentBase object.
Event raised when the allocated frame buffer is too small for the security association index and encr...
void encryptOut_out(FwIndexType portNum, U16 securityAssociationIndex, Fw::Buffer &data, const ComCfg::FrameContext &context) const
Invoke output port encryptOut.
static constexpr FwIndexType getNum_cmdIn_InputPorts()
void log_WARNING_HI_BufferAllocationFailed(FwSizeType allocationSize)
Svc::Ccsds::InputCcsdsSdlsDataPort * get_encryptIn_InputPort(FwIndexType portNum)
void init()
Object initializer.
Definition: ObjBase.cpp:24
Status of an SDLS (Space Data Link Security) encryption/decryption request.
Fw::InputSuccessConditionPort * get_comStatusIn_InputPort(FwIndexType portNum)
void set_logOut_OutputPort(FwIndexType portNum, Fw::InputLogPort *port)
Connect port to logOut[portNum].
static constexpr FwIndexType getNum_cmdRegOut_OutputPorts()
FwIdType FwEventIdType
The type of an event identifier.
void set_bufferAllocate_OutputPort(FwIndexType portNum, Fw::InputBufferGetPort *port)
Connect port to bufferAllocate[portNum].
void bufferDeallocate_out(FwIndexType portNum, Fw::Buffer &fwBuffer) const
Invoke output port bufferDeallocate.
static constexpr FwIndexType getNum_dataOut_OutputPorts()
static constexpr FwIndexType getNum_timeCaller_OutputPorts()
void set_comStatusOut_OutputPort(FwIndexType portNum, Fw::InputSuccessConditionPort *port)
Connect port to comStatusOut[portNum].
bool isConnected_timeCaller_OutputPort(FwIndexType portNum) const
Fw::Buffer bufferAllocate_out(FwIndexType portNum, FwSizeType size) const
Invoke output port bufferAllocate.
void dataOut_out(FwIndexType portNum, Fw::Buffer &data, const ComCfg::FrameContext &context) const
Invoke output port dataOut.
friend class CcsdsSdlsFramerTester
Friend class tester implementation to support white-box testing.
void set_cmdResponseOut_OutputPort(FwIndexType portNum, Fw::InputCmdResponsePort *port)
Connect port to cmdResponseOut[portNum].
static constexpr FwIndexType getNum_comStatusOut_OutputPorts()
virtual ~CcsdsSdlsFramerComponentBase()
Destroy CcsdsSdlsFramerComponentBase object.
Security association index used when the incoming frame context does not specify one.
void cmdResponse_out(FwOpcodeType opCode, U32 cmdSeq, Fw::CmdResponse response)
Emit command response.
static constexpr FwIndexType getNum_prmGetOut_OutputPorts()
bool isConnected_cmdResponseOut_OutputPort(FwIndexType portNum) const
static constexpr FwIndexType getNum_dataReturnIn_InputPorts()
void encryptReturnOut_out(FwIndexType portNum, Fw::Buffer &data, const ComCfg::FrameContext &context) const
Invoke output port encryptReturnOut.
void log_WARNING_HI_EncryptionFailed(const Svc::Ccsds::SdlsStatus &status)
void encryptIn_handlerBase(FwIndexType portNum, const Svc::Ccsds::SdlsStatus &status, Fw::Buffer &data, const ComCfg::FrameContext &context)
Handler base-class function for input port encryptIn.
Enum representing event severity.
static constexpr FwIndexType getNum_dataReturnOut_OutputPorts()
static constexpr FwIndexType getNum_bufferAllocate_OutputPorts()
void loadParameters()
Load the parameters from a parameter source.
void log_WARNING_HI_BufferAllocationFailed_ThrottleClear()
Reset throttle value for BufferAllocationFailed.
bool isConnected_dataReturnOut_OutputPort(FwIndexType portNum) const
virtual void parametersLoaded()
Called whenever parameters are loaded.
void set_encryptReturnOut_OutputPort(FwIndexType portNum, Svc::InputComDataWithContextPort *port)
Connect port to encryptReturnOut[portNum].
virtual void dataReturnIn_handler(FwIndexType portNum, Fw::Buffer &data, const ComCfg::FrameContext &context)=0
Handler for input port dataReturnIn.
void set_dataOut_OutputPort(FwIndexType portNum, Svc::InputComDataWithContextPort *port)
Connect port to dataOut[portNum].
virtual void dataIn_handler(FwIndexType portNum, Fw::Buffer &data, const ComCfg::FrameContext &context)=0
Handler for input port dataIn.
bool isConnected_cmdRegOut_OutputPort(FwIndexType portNum) const
void set_encryptOut_OutputPort(FwIndexType portNum, Svc::Ccsds::InputCcsdsSdlsEncryptionPort *port)
Connect port to encryptOut[portNum].
Svc::InputComDataWithContextPort * get_dataReturnIn_InputPort(FwIndexType portNum)
void log_WARNING_HI_EncryptionFailed_ThrottleClear()
Reset throttle value for EncryptionFailed.
Svc::InputComDataWithContextPort * get_dataIn_InputPort(FwIndexType portNum)
static constexpr FwIndexType getNum_encryptReturnOut_OutputPorts()
PlatformIndexType FwIndexType
virtual void bufferReturnIn_handler(FwIndexType portNum, Fw::Buffer &data, const ComCfg::FrameContext &context)=0
Handler for input port bufferReturnIn.
bool isConnected_prmGetOut_OutputPort(FwIndexType portNum) const
void dataReturnOut_out(FwIndexType portNum, Fw::Buffer &data, const ComCfg::FrameContext &context) const
Invoke output port dataReturnOut.
Type used to pass context info between components during framing/deframing.
RateGroupDivider component implementation.
Enum representing parameter validity.
bool isConnected_prmSetOut_OutputPort(FwIndexType portNum) const
void regCommands()
Register commands with the Command Dispatcher.
void set_cmdRegOut_OutputPort(FwIndexType portNum, Fw::InputCmdRegPort *port)
Connect port to cmdRegOut[portNum].
static constexpr FwIndexType getNum_comStatusIn_InputPorts()
bool isConnected_bufferAllocate_OutputPort(FwIndexType portNum) const
static constexpr FwIndexType getNum_cmdResponseOut_OutputPorts()
bool isConnected_dataOut_OutputPort(FwIndexType portNum) const
Success/Failure.
static constexpr FwIndexType getNum_logOut_OutputPorts()
Fw::InputCmdPort * get_cmdIn_InputPort(FwIndexType portNum)
virtual void encryptIn_handler(FwIndexType portNum, const Svc::Ccsds::SdlsStatus &status, Fw::Buffer &data, const ComCfg::FrameContext &context)=0
Handler for input port encryptIn.
void set_bufferDeallocate_OutputPort(FwIndexType portNum, Fw::InputBufferSendPort *port)
Connect port to bufferDeallocate[portNum].
void cmdIn_handlerBase(FwIndexType portNum, FwOpcodeType opCode, U32 cmdSeq, Fw::CmdArgBuffer &args)
Handler base-class function for input port cmdIn.
virtual void parameterLoaded(FwPrmIdType id, Fw::ParamValid valid)
Called for each parameter when parameters are loaded.