chenlh
2026-01-20 fe4d335b54ede7a47fd4bcf5c228fb427cbcc8c9
src/messageproc.h
@@ -9,31 +9,39 @@
#define MESSAGEPROC_H_
#include <stdint.h>
#include <heapnew>
#include "protocol.h"
#include "typedefs.h"
#include "queue.h"
#include "dsp_report.h"
#include "../drv/memory.h"
#define LEVELS_MAX_LEN   1688
class Message{
private:
   Queue<MSG>* txQueue;
   ReportStatus dsp_status_q;
   s16* Levels;
   u32 levels_max_len;
   s32 PresetProcess(MSG* pmsg);
   s32 ParamCtrl(MSG* pmsg);
   s32 HandshakeMessageProcess(MSG* pmsg);
   s32 RxMessageHandler(MSG* pmsg);
   s32 ChannelParamCopy(MSG* pmsg);
   void param_init(ptag_device_config pDevCfg);
public:
   Message(u32 num)
   {
      levels_max_len = LEVELS_MAX_LEN;
      txQueue = new Queue<MSG>(num);
      Levels = new s16[levels_max_len];
   }
   ~Message()
   {
      delete []Levels;
      delete []txQueue;
   }
@@ -48,6 +56,7 @@
   uvoid Proc();
   uvoid ReportDspStatus(MSG* pmsg);
   uvoid ReportLevel(MSG* pmsg);
};
#endif /* MESSAGEPROC_H_ */