F´ Flight Software - C/C++ Documentation
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:
24  virtual ~AmpcsEvrLogPacket();
25 
28 
29  void setTaskName(U8* taskName, U8 len);
30  void setId(U32 eventID);
31  void setOverSeqNum(U32 overSeqNum);
32  void setCatSeqNum(U32 catSeqNum);
33  void setLogBuffer(LogBuffer& buffer);
34 
35  const U8* getTaskName() const;
36  U32 getId() const;
37  U32 getOverSeqNum() const;
38  U32 getCatSeqNum() const;
40 
41  protected:
43  U32 m_eventID;
46  LogBuffer m_logBuffer; // !< serialized argument data
47 };
48 
49 } /* namespace Fw */
50 
51 #endif /* AMPCS_EVR_LOGPACKET_HPP_ */
void setTaskName(U8 *taskName, U8 len)
void setCatSeqNum(U32 catSeqNum)
void setOverSeqNum(U32 overSeqNum)
SerializeStatus
forward declaration for string
#define AMPCS_EVR_TASK_NAME_LEN
void setId(U32 eventID)
uint8_t U8
8-bit unsigned integer
Definition: BasicTypes.h:53
SerializeStatus deserializeFrom(SerializeBufferBase &buffer)
deserialize contents from buffer
const U8 * getTaskName() const
SerializeStatus serializeTo(SerializeBufferBase &buffer) const
serialize contents
U8 m_taskName[AMPCS_EVR_TASK_NAME_LEN]
void setLogBuffer(LogBuffer &buffer)