/*
|
* messageproc.h
|
*
|
* Created on: 2021Äê11ÔÂ1ÈÕ
|
* Author: graydon
|
*/
|
|
#ifndef MESSAGEPROC_H_
|
#define MESSAGEPROC_H_
|
|
#include <stdint.h>
|
#include "protocol.h"
|
#include "typedefs.h"
|
#include "queue.h"
|
|
class Message{
|
private:
|
Queue<MSG>* 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<MSG>(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_ */
|