/* * messageproc.h * * Created on: 2021Äê11ÔÂ1ÈÕ * Author: graydon */ #ifndef MESSAGEPROC_H_ #define MESSAGEPROC_H_ #include #include "protocol.h" #include "typedefs.h" #include "queue.h" class Message{ private: Queue* txQueue; s32 PresetProcess(MSG* pmsg); s32 TopoProcess(MSG* pmsg); s32 ParamCtrl(MSG* pmsg); s32 SystemConfigSetProcess(MSG* pmsg); s32 RxMessageHandler(MSG* pmsg); public: Message(u32 num) { txQueue = new Queue(num); } ~Message() { delete []txQueue; } s32 Send(MSG* pmsg ); s32 Send(MsgType msg_type, uvoidptr buffer, u32 len); s32 DSPStatusProcess(MSG* pmsg); uvoid Proc(); }; #endif /* MESSAGEPROC_H_ */