F´ Flight Software - C/C++ Documentation
A framework for building embedded system applications to NASA flight quality standards.
AsyncByteStreamBufferAdapter.hpp
Go to the documentation of this file.
1 // ======================================================================
2 // \title AsyncByteStreamBufferAdapter.hpp
3 // \author bocchino
4 // \brief hpp file for AsyncByteStreamBufferAdapter component implementation class
5 // ======================================================================
6 
7 #ifndef Drv_AsyncByteStreamBufferAdapter_HPP
8 #define Drv_AsyncByteStreamBufferAdapter_HPP
9 
11 
12 namespace Drv {
13 
15  public:
16  // ----------------------------------------------------------------------
17  // Component construction and destruction
18  // ----------------------------------------------------------------------
19 
21  AsyncByteStreamBufferAdapter(const char* const compName
22  );
23 
26 
27  private:
28  // ----------------------------------------------------------------------
29  // Handler implementations for typed input ports
30  // ----------------------------------------------------------------------
31 
35  void bufferIn_handler(FwIndexType portNum,
36  Fw::Buffer& fwBuffer
37  ) override;
38 
42  void bufferOutReturn_handler(FwIndexType portNum,
43  Fw::Buffer& fwBuffer
44  ) override;
45 
50  void byteStreamDriverReady_handler(FwIndexType portNum
51  ) override;
52 
57  void fromByteStreamDriver_handler(FwIndexType portNum,
58  Fw::Buffer& buffer,
59  const Drv::ByteStreamStatus& status) override;
60 
65  void toByteStreamDriverReturn_handler(FwIndexType portNum,
66  Fw::Buffer& buffer,
67  const Drv::ByteStreamStatus& status) override;
68 
69  private:
70  // ----------------------------------------------------------------------
71  // Private member variables
72  // ----------------------------------------------------------------------
73 
75  bool m_driverIsReady = false;
76 };
77 
78 } // namespace Drv
79 
80 #endif
AsyncByteStreamBufferAdapter(const char *const compName)
Construct AsyncByteStreamBufferAdapter object.
Status returned by the send call.
~AsyncByteStreamBufferAdapter()
Destroy AsyncByteStreamBufferAdapter object.
Auto-generated base for AsyncByteStreamBufferAdapter component.
PlatformIndexType FwIndexType