F´ Flight Software - C/C++ Documentation  devel
A framework for building embedded system applications to NASA flight quality standards.
AmpcsEvrLogPacket.hpp
Go to the documentation of this file.
1 /*
2  * AmpcsEvrLogPacket.hpp
3  *
4  * Created on: October 07, 2016
5  * Author: Kevin F. Ortega
6  * Aadil Rizvi
7  */
8 
9 #ifndef AMPCS_EVR_LOGPACKET_HPP_
10 #define AMPCS_EVR_LOGPACKET_HPP_
11 
12 #include <Fw/Com/ComPacket.hpp>
13 #include <Fw/Log/LogBuffer.hpp>
14 #include <Fw/Time/Time.hpp>
15 #include <cstring>
16 
17 #define AMPCS_EVR_TASK_NAME_LEN 6
18 
19 namespace Fw {
20 
21  class AmpcsEvrLogPacket : public ComPacket {
22  public:
23 
25  virtual ~AmpcsEvrLogPacket();
26 
29 
30  void setTaskName(U8 *taskName, U8 len);
31  void setId(U32 eventID);
32  void setOverSeqNum(U32 overSeqNum);
33  void setCatSeqNum(U32 catSeqNum);
34  void setLogBuffer(LogBuffer& buffer);
35 
36  const U8* getTaskName() const;
37  U32 getId() const;
38  U32 getOverSeqNum() const;
39  U32 getCatSeqNum() const;
41 
42  protected:
44  U32 m_eventID;
47  LogBuffer m_logBuffer; // !< serialized argument data
48  };
49 
50 } /* namespace Fw */
51 
52 #endif /* AMPCS_EVR_LOGPACKET_HPP_ */
#define AMPCS_EVR_TASK_NAME_LEN
uint8_t U8
8-bit unsigned integer
Definition: BasicTypes.h:30
SerializeStatus deserialize(SerializeBufferBase &buffer)
deserialize to contents
const U8 * getTaskName() const
SerializeStatus serialize(SerializeBufferBase &buffer) const
serialize contents
void setOverSeqNum(U32 overSeqNum)
void setId(U32 eventID)
void setLogBuffer(LogBuffer &buffer)
void setCatSeqNum(U32 catSeqNum)
void setTaskName(U8 *taskName, U8 len)
U8 m_taskName[AMPCS_EVR_TASK_NAME_LEN]
SerializeStatus
forward declaration for string