36#ifndef MSG_LOG_H_INCLUDED
37#define MSG_LOG_H_INCLUDED
39#include "memutils/common_utils/common_types.h"
50 uint16_t m_param_size;
53 MsgLog(uint8_t kind, uint16_t type, uint16_t dest, uint8_t pri, uint16_t reply,
54 uint8_t src_cpu, uint16_t stored, uint16_t param_size, uint32_t param) :
59 m_pri_dest((pri << 15) | dest),
62 m_stored(
static_cast<uint8_t
>(stored)),
63 m_param_size(param_size),
67 MsgLog(uint8_t kind, uint16_t dest, uint8_t pri, uint16_t stored,
MsgPacket* msg) :
71 m_type(msg->getType()),
72 m_pri_dest((pri << 15) | dest),
73 m_reply(msg->getReply()),
74 m_src_cpu(msg->getSrcCpu()),
75 m_stored(
static_cast<uint8_t
>(stored)),
76 m_param_size(msg->getParamSize()),
77 m_param(msg->peekParamHead())
90#if defined(DMP_MSG_SEQ2_NUM) && DMP_MSG_SEQ2_NUM != 0
93#define DUMP_MSG_SEQ_LOCK(p) do { InterruptLock _lock_; DMP_MSG_SEQ2_SEQ_LOG(p); } while (0)
94#define DUMP_MSG_SEQ(p) DMP_MSG_SEQ2_SEQ_LOG(p)
96#define DUMP_MSG_SEQ_LOCK(p)
97#define DUMP_MSG_SEQ(p)
105 uint16_t m_msg_reply;
106 uint16_t m_top_msg_type;
107 uint16_t m_top_msg_reply;
113 m_msg_type(msg->getType()),
114 m_msg_reply(msg->getReply()),
115 m_top_msg_type(top_msg->getType()),
116 m_top_msg_reply(top_msg->getReply())
122#if defined(DMP_MSG_PEAK_NUM) && DMP_MSG_PEAK_NUM != 0
123#define DUMP_MSG_PEAK(id, pri, p) DMP_MSG_PEAK_IDX_LOG((((id) - 1) * NumMsgPri + (pri)), (p))
125#define DUMP_MSG_PEAK(id, pri, p)
130#ifndef DMP_MSGLIB_NUM
131#define DMP_MSGLIB_DEBUG_PRINT(...)
132#define DMP_MSGLIB_DEBUG(p)
133#define DMP_MSGLIB_INFO(p)
134#define DMP_MSGLIB_NOTICE(p)
135#define DMP_MSGLIB_WARN(p)
136#define DMP_MSGLIB_ERROR(p)
Definition: MsgPacket.h:142