F´ Flight Software - C/C++ Documentation
A framework for building embedded system applications to NASA flight quality standards.
SendBuffComponentImpl.hpp
Go to the documentation of this file.
1 #ifndef REF_LPS_ATM_IMPL_HPP
2 #define REF_LPS_ATM_IMPL_HPP
3 
4 #include <Ref/SendBuffApp/SendBuffComponentAc.hpp>
5 
6 namespace Ref {
7 
9 
10 class SendBuffImpl final : public SendBuffComponentBase {
11  public:
12  // Only called by derived class
13  SendBuffImpl(const char* compName);
14  ~SendBuffImpl();
15 
16  private:
17  void SchedIn_handler(FwIndexType portNum, U32 context);
18  void SB_START_PKTS_cmdHandler(FwOpcodeType opcode, U32 cmdSeq);
19  void SB_INJECT_PKT_ERROR_cmdHandler(FwOpcodeType opcode, U32 cmdSeq);
20  void SB_GEN_FATAL_cmdHandler(FwOpcodeType opCode,
21  U32 cmdSeq,
22  U32 arg1,
23  U32 arg2,
24  U32 arg3
25  );
26 
28  /* Generate an ASSERT */
29  void SB_GEN_ASSERT_cmdHandler(FwOpcodeType opCode,
30  U32 cmdSeq,
31  U32 arg1,
32  U32 arg2,
33  U32 arg3,
34  U32 arg4,
35  U32 arg5,
36  U32 arg6
37  );
38  U32 m_invocations;
39  U32 m_buffsSent;
40  U32 m_errorsInjected;
41  bool m_injectError;
42  bool m_sendPackets;
43  U32 m_currPacketId;
44  bool m_firstPacketSent;
45 
46  // buffer data
47  Drv::DataBuffer m_testBuff;
48 
49  // parameter update notification
50  void parameterUpdated(FwPrmIdType id);
51 
52  // send state
53  SendBuff_ActiveState m_state;
54 };
55 
56 } // namespace Ref
57 
58 #endif
FwIdType FwOpcodeType
The type of a command opcode.
SendBuffImpl(const char *compName)
constructor
FwIdType FwPrmIdType
The type of a parameter identifier.
This component sends a data buffer to a driver each time it is invoked by a scheduler.
PlatformIndexType FwIndexType