F´ Flight Software - C/C++ Documentation
A framework for building embedded system applications to NASA flight quality standards.
RecvBuffComponentImpl.hpp
Go to the documentation of this file.
1 #ifndef REF_LPR_ATM_IMPL_HPP
2 #define REF_LPR_ATM_IMPL_HPP
3 
4 #include <Ref/RecvBuffApp/RecvBuffComponentAc.hpp>
5 
6 namespace Ref {
7 
8 class RecvBuffImpl final : public RecvBuffComponentBase {
9  public:
10  // Only called by derived class
11  RecvBuffImpl(const char* compName);
12 
13  ~RecvBuffImpl();
14 
15  private:
16  // downcall for input port
17  void Data_handler(FwIndexType portNum, Drv::DataBuffer& buff);
18  Ref::PacketStat m_stats;
19  U32 m_buffsReceived; // !< number of buffers received
20  bool m_firstBuffReceived; // !< first buffer received or not
21  U32 m_errBuffs; // !< number of buffers with errors received
22  F32 m_sensor1;
23  F32 m_sensor2;
24 
25  // parameter update notification
26  void parameterUpdated(FwPrmIdType id);
27 };
28 
29 } // namespace Ref
30 
31 #endif
FwIdType FwPrmIdType
The type of a parameter identifier.
float F32
32-bit floating point
Definition: BasicTypes.h:84
RecvBuffImpl(const char *compName)
PlatformIndexType FwIndexType