F´ Flight Software - C/C++ Documentation
A framework for building embedded system applications to NASA flight quality standards.
ByteStreamBufferAdapter.hpp
Go to the documentation of this file.
1 // ======================================================================
2 // \title ByteStreamBufferAdapter.hpp
3 // \author bocchino
4 // \brief hpp file for ByteStreamBufferAdapter component implementation class
5 // ======================================================================
6 
7 #ifndef Drv_ByteStreamBufferAdapter_HPP
8 #define Drv_ByteStreamBufferAdapter_HPP
9 
11 
12 namespace Drv {
13 
15  public:
16  // ----------------------------------------------------------------------
17  // Component construction and destruction
18  // ----------------------------------------------------------------------
19 
21  ByteStreamBufferAdapter(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 fromByteStreamDriver_handler(FwIndexType portNum,
51  Fw::Buffer& buffer,
52  const Drv::ByteStreamStatus& status) override;
53 
58  void byteStreamDriverReady_handler(FwIndexType portNum
59  ) override;
60 
61  private:
62  // ----------------------------------------------------------------------
63  // Private member variables
64  // ----------------------------------------------------------------------
65 
67  bool m_driverIsReady = false;
68 };
69 
70 } // namespace Drv
71 
72 #endif
Auto-generated base for ByteStreamBufferAdapter component.
Status returned by the send call.
ByteStreamBufferAdapter(const char *const compName)
Construct ByteStreamBufferAdapter object.
~ByteStreamBufferAdapter()
Destroy ByteStreamBufferAdapter object.
PlatformIndexType FwIndexType