chenlh
2025-09-18 ab07ada908b82340e7acd899e85a9802cf8a9057
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
60
61
62
63
64
65
/*
 * protocol_internal.h
 *
 *  Created on: 2025Äê7ÔÂ23ÈÕ
 *      Author: 86189
 */
 
#ifndef PROTOCOL_INTERNAL_H_
#define PROTOCOL_INTERNAL_H_
 
//תµ½¿ÉÅäÖÃÓýṹÌå
enum ModuleInterfaceType{
    SOFT_MODULE,
    PHY_INPUT,
    PHY_OUTPUT,
};
 
//V1¸Ä¶¯ÎïÀí¶Ë¿ÚID±äΪ´Ë½á¹¹Ìå.
typedef struct  {
    u16 mPhyID;
    u16 mIntType; //IntDataType
}PhyPort;
 
struct FlowChartHead {
    int crc;
    unsigned short module_num;
    unsigned char  compress;
    unsigned char  version;
 
    unsigned short dsp_buffer_num[12];
};
 
struct Module {
    unsigned int    mID;   //Ä£¿éID
    unsigned short  mType;  //Ä£¿éÀàÐÍ ModuleType
    unsigned short  mTag;   //Ä£¿é¸½¼Ó×ֶΣ¨ÈçEQ6 £¬8¶Î£©
    unsigned char   mRxNum; //Ä£¿é½ÓÊÕͨµÀÊý
    unsigned char   mTxNum; //Ä£¿éÊä³öͨµÀÊý
    unsigned char   mDsp;  //Ä£¿éËùÊôDSP Ë÷Òý
    unsigned char   mPhyModule; //0£¬·ÇÓ²¼þÄ£¿é£¬1-ÎïÀíÊäÈëÄ£¿é£¬2-ÎïÀíÊä³öÄ£¿é.
    int  mParamaddr;  //²ÎÊýÄÚ´æµØÖ·.
    //u16 mRxbufID[];
    //u16 mTxbufID[];
 
};
 
 
 
struct Param {
    unsigned int mID;   //Ä£¿éID
 
    unsigned char mType;
    unsigned char  slotID;
    unsigned short cpu;
 
    unsigned char  pID;  //²ÎÊýID
    unsigned char  dspID;  //Dsp
 
    unsigned short num;
 
    //s16 val[3];
};
 
 
#endif /* PROTOCOL_INTERNAL_H_ */