Go to the documentation of this file.
28 #define MAX_MESSAGES 32
30 #define MSG_DATA_LEN 48
38 #define IS_CM_MESSAGE(mesg, tx, cx, dx) \
39 ((mesg.type == cmRspType##tx) \
40 && (mesg.class == cmRspClass##cx) \
41 && (mesg.code == cmRsp##dx))
46 #define IS_CE_MESSAGE(mesg, tx, cx, dx) \
47 ((mesg.type == ceRspType##tx) \
48 && (mesg.class == ceRspClass##cx) \
49 && (mesg.code == ceRsp##tx##dx))
68 #define cmReqHWConfig 1
69 #define cmReqMsgLpbk 2
70 #define cmReqVersion 3
71 #define cmReqLoadProc 1
72 #define cmReqStartProc 2
73 #define cmReqReadMem 6
74 #define cmRspHWConfig cmReqHWConfig
75 #define cmRspMsgLpbk cmReqMsgLpbk
76 #define cmRspVersion cmReqVersion
77 #define cmRspLoadProc cmReqLoadProc
78 #define cmRspStartProc cmReqStartProc
79 #define cmRspReadMem cmReqReadMem
80 #define cmRspMiscEngineUp 1
81 #define cmRspInvalid 0
89 #define ceReqTypePhy 1
90 #define ceReqTypeLnk 2
91 #define ceReqTypeCall 3
92 #define ceReqTypeStat 1
93 #define ceRspTypeErr 0
94 #define ceRspTypePhy ceReqTypePhy
95 #define ceRspTypeLnk ceReqTypeLnk
96 #define ceRspTypeCall ceReqTypeCall
97 #define ceRspTypeStat ceReqTypeStat
100 #define ceReqClass0 0
101 #define ceReqClass1 1
102 #define ceReqClass2 2
103 #define ceReqClass3 3
104 #define ceRspClass0 ceReqClass0
105 #define ceRspClass1 ceReqClass1
106 #define ceRspClass2 ceReqClass2
107 #define ceRspClass3 ceReqClass3
110 #define ceReqPhyProcInfo 1
111 #define ceReqPhyConnect 1
112 #define ceReqPhyDisconnect 2
113 #define ceReqPhySetParams 3
114 #define ceReqPhyGetParams 4
115 #define ceReqPhyStatus 1
116 #define ceReqPhyAcfaStatus 2
117 #define ceReqPhyChCallState 3
118 #define ceReqPhyChServState 4
119 #define ceReqPhyRLoopBack 1
120 #define ceRspPhyProcInfo ceReqPhyProcInfo
121 #define ceRspPhyConnect ceReqPhyConnect
122 #define ceRspPhyDisconnect ceReqPhyDisconnect
123 #define ceRspPhySetParams ceReqPhySetParams
124 #define ceRspPhyGetParams ceReqPhyGetParams
125 #define ceRspPhyStatus ceReqPhyStatus
126 #define ceRspPhyAcfaStatus ceReqPhyAcfaStatus
127 #define ceRspPhyChCallState ceReqPhyChCallState
128 #define ceRspPhyChServState ceReqPhyChServState
129 #define ceRspPhyRLoopBack ceReqphyRLoopBack
130 #define ceReqLnkSetParam 1
131 #define ceReqLnkGetParam 2
132 #define ceReqLnkGetStats 3
133 #define ceReqLnkWrite 1
134 #define ceReqLnkRead 2
135 #define ceReqLnkFlush 3
136 #define ceReqLnkWrBufTrc 4
137 #define ceReqLnkRdBufTrc 5
138 #define ceRspLnkSetParam ceReqLnkSetParam
139 #define ceRspLnkGetParam ceReqLnkGetParam
140 #define ceRspLnkGetStats ceReqLnkGetStats
141 #define ceRspLnkWrite ceReqLnkWrite
142 #define ceRspLnkRead ceReqLnkRead
143 #define ceRspLnkFlush ceReqLnkFlush
144 #define ceRspLnkWrBufTrc ceReqLnkWrBufTrc
145 #define ceRspLnkRdBufTrc ceReqLnkRdBufTrc
146 #define ceReqCallSetSwitchType 1
147 #define ceReqCallGetSwitchType 2
148 #define ceReqCallSetFrameFormat 3
149 #define ceReqCallGetFrameFormat 4
150 #define ceReqCallSetCallType 5
151 #define ceReqCallGetCallType 6
152 #define ceReqCallSetSPID 7
153 #define ceReqCallGetSPID 8
154 #define ceReqCallSetMyNumber 9
155 #define ceReqCallGetMyNumber 10
156 #define ceRspCallSetSwitchType ceReqCallSetSwitchType
157 #define ceRspCallGetSwitchType ceReqCallSetSwitchType
158 #define ceRspCallSetFrameFormat ceReqCallSetFrameFormat
159 #define ceRspCallGetFrameFormat ceReqCallGetFrameFormat
160 #define ceRspCallSetCallType ceReqCallSetCallType
161 #define ceRspCallGetCallType ceReqCallGetCallType
162 #define ceRspCallSetSPID ceReqCallSetSPID
163 #define ceRspCallGetSPID ceReqCallGetSPID
164 #define ceRspCallSetMyNumber ceReqCallSetMyNumber
165 #define ceRspCallGetMyNumber ceReqCallGetMyNumber
166 #define ceRspStatAcfaStatus 2
168 #define ceRspErrError 0
173 #define CALLTYPE_64K 0
174 #define CALLTYPE_56K 1
175 #define CALLTYPE_SPEECH 2
176 #define CALLTYPE_31KHZ 3
184 unsigned long buff_offset;
236 volatile unsigned char req_head;
237 volatile unsigned char req_tail;
238 volatile unsigned char rsp_head;
239 volatile unsigned char rsp_tail;
241 volatile unsigned long trace_enable;