qipp
2025-11-07 1db34b4e65f72d8ae8b1f0efbc7a4395f9bbcae8
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
/*
 * 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:
    ubool ConfiGurable;//ÊÇ·ñΪ¿ÉÅäÖÃ
    u32   mDevStatusNum ;
    DeviceStatus mDevStatus[4];
 
    Queue<MSG>* txQueue;
 
    s32 PresetProcess(MSG* pmsg);
 
    s32 PresetProcess(MSG* pmsg, int pad);
 
    s32 TopoProcess(MSG* pmsg);
 
    s32 TopoProcess();
 
    s32 ParamCtrl(MSG* pmsg);
 
    s32 SystemConfigSetProcess(MSG* pmsg);
 
    s32 RxMessageHandler(MSG* pmsg);
 
    s32 LevelProcess(MSG* pmsg);
public:
    Message(u32 num)
    {
        ConfiGurable = ufalse;
        txQueue = new Queue<MSG>(num);
        mDevStatusNum = 0;
    }
    ~Message()
    {
        delete []txQueue;
    }
 
    s32 Send(MSG* pmsg );
    s32 Send(MsgType msg_type, uvoidptr buffer, u32 len);
    s32 DSPStatusProcess(MSG* pmsg);
    s32 PushDSPStatus(u16 ID, s16 value);
    uvoid Proc();
};
 
#endif /* MESSAGEPROC_H_ */