blob: f724266a7ac72c5f5447dc3f2e5030266c5dc775 [file] [log] [blame]
yu.dongc33b3072024-08-21 23:14:49 -07001/*****************************************************************************
2* Copyright Statement:
3* --------------------
4* This software is protected by Copyright and the information contained
5* herein is confidential. The software may not be copied and the information
6* contained herein may not be used or disclosed except with the written
7* permission of MediaTek Inc. (C) 2005
8*
9* BY OPENING THIS FILE, BUYER HEREBY UNEQUIVOCALLY ACKNOWLEDGES AND AGREES
10* THAT THE SOFTWARE/FIRMWARE AND ITS DOCUMENTATIONS ("MEDIATEK SOFTWARE")
11* RECEIVED FROM MEDIATEK AND/OR ITS REPRESENTATIVES ARE PROVIDED TO BUYER ON
12* AN "AS-IS" BASIS ONLY. MEDIATEK EXPRESSLY DISCLAIMS ANY AND ALL WARRANTIES,
13* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF
14* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NONINFRINGEMENT.
15* NEITHER DOES MEDIATEK PROVIDE ANY WARRANTY WHATSOEVER WITH RESPECT TO THE
16* SOFTWARE OF ANY THIRD PARTY WHICH MAY BE USED BY, INCORPORATED IN, OR
17* SUPPLIED WITH THE MEDIATEK SOFTWARE, AND BUYER AGREES TO LOOK ONLY TO SUCH
18* THIRD PARTY FOR ANY WARRANTY CLAIM RELATING THERETO. MEDIATEK SHALL ALSO
19* NOT BE RESPONSIBLE FOR ANY MEDIATEK SOFTWARE RELEASES MADE TO BUYER'S
20* SPECIFICATION OR TO CONFORM TO A PARTICULAR STANDARD OR OPEN FORUM.
21*
22* BUYER'S SOLE AND EXCLUSIVE REMEDY AND MEDIATEK'S ENTIRE AND CUMULATIVE
23* LIABILITY WITH RESPECT TO THE MEDIATEK SOFTWARE RELEASED HEREUNDER WILL BE,
24* AT MEDIATEK'S OPTION, TO REVISE OR REPLACE THE MEDIATEK SOFTWARE AT ISSUE,
25* OR REFUND ANY SOFTWARE LICENSE FEES OR SERVICE CHARGE PAID BY BUYER TO
26* MEDIATEK FOR SUCH MEDIATEK SOFTWARE AT ISSUE.
27*
28* THE TRANSACTION CONTEMPLATED HEREUNDER SHALL BE CONSTRUED IN ACCORDANCE
29* WITH THE LAWS OF THE STATE OF CALIFORNIA, USA, EXCLUDING ITS CONFLICT OF
30* LAWS PRINCIPLES. ANY DISPUTES, CONTROVERSIES OR CLAIMS ARISING THEREOF AND
31* RELATED THERETO SHALL BE SETTLED BY ARBITRATION IN SAN FRANCISCO, CA, UNDER
32* THE RULES OF THE INTERNATIONAL CHAMBER OF COMMERCE (ICC).
33*
34*****************************************************************************/
35
36/*******************************************************************************
37 * Filename:
38 * ---------
39 * l4c2t30_struct.h
40 *
41 * Project:
42 * --------
43 * MAUI
44 *
45 * Description:
46 * ------------
47 * This file is intends for structure definition between T30 and L4C.
48 *
49 * Author:
50 * -------
51 *
52 *=============================================================
53 * HISTORY
54 * Below this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
55 *------------------------------------------------------------------------------
56 * removed!
57 *
58 * removed!
59 * removed!
60 * removed!
61 *
62 * removed!
63 * removed!
64 * removed!
65 *
66 *------------------------------------------------------------------------------
67 * Upper this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
68 *============================================================================
69 ****************************************************************************/
70
71/********************************************************************************
72* Copyright Statement:
73* --------------------
74*
75* This product has been developed using a protocol stack
76* developed by Sasken Communication Technologies Limited.
77*
78********************************************************************************/
79
80
81
82#ifndef _L4C2T30_STRUCT_H
83#define _L4C2T30_STRUCT_H
84
85#include "kal_general_types.h"
86#include "kal_public_defs.h"
87
88typedef struct
89{
90 kal_bool is_present; /* is the parameter available */
91 kal_uint8 para_value; /* the parameter value */
92
93}t30_sub_para_struct;
94
95
96/* the structure defines the t30 session parameters. only valid in Class2. */
97typedef struct
98{
99 t30_sub_para_struct DF;
100 t30_sub_para_struct VR;
101 t30_sub_para_struct WD;
102 t30_sub_para_struct LN;
103
104}t30_fdt_subparam_struct;
105
106
107
108typedef struct
109{
110 t30_sub_para_struct vrc; /* vertical resolution conversion */
111 t30_sub_para_struct dfc; /* data format conversion */
112 t30_sub_para_struct lnc; /* page length conversion */
113 t30_sub_para_struct wdc; /* page width conversion */
114
115}format_conv_struct;
116
117
118typedef struct
119{
120 t30_sub_para_struct pgl; /* percentage of good line */
121 t30_sub_para_struct cbl; /* max tolerable number of consecutive bad lines */
122
123}recv_quality_thresd_struct;
124
125
126typedef struct
127{
128 t30_sub_para_struct sub; /* SUB enable */
129 t30_sub_para_struct sep; /* SEP enable */
130 t30_sub_para_struct pwd; /* PWD enable */
131
132}add_poll_cap_struct;
133
134
135typedef struct
136{
137 kal_uint8 time; /* timeout time value */
138 kal_uint8 action; /* action value */
139
140}dte_inactive_struct;
141
142
143typedef struct
144{
145 t30_sub_para_struct rq; /* receive copy quality enable */
146 t30_sub_para_struct tq; /* transmit copy quality enable */
147
148}copy_quality_struct;
149
150
151typedef struct
152{
153 t30_sub_para_struct rpr; /* receiver parameters report */
154 t30_sub_para_struct tpr; /* transmitter paramerters report */
155 t30_sub_para_struct idr; /* ID string report */
156 t30_sub_para_struct nsr; /* non-standard frames report */
157
158}cap_report_struct;
159
160
161typedef struct
162{
163 t30_sub_para_struct VR;
164 t30_sub_para_struct BR;
165 t30_sub_para_struct WD;
166 t30_sub_para_struct LN;
167 t30_sub_para_struct DF;
168 t30_sub_para_struct EC;
169 t30_sub_para_struct BF;
170 t30_sub_para_struct ST;
171 t30_sub_para_struct JP;
172
173}t30_session_subparam_struct;
174
175
176typedef struct
177{
178 kal_uint8 string[20]; /* local station ID string */
179 kal_uint8 nsf_string[90]; /* pass-through non-standard octet string */
180}t30_str_param_struct;
181
182
183typedef struct
184{
185 t30_session_subparam_struct session_param ; /* session subparameter*/
186 kal_uint8 enable_polled; /* indecate document available for remotes's pooling*/
187 kal_uint8 enable_polling;
188 cap_report_struct report_param ; /* negotiation reporting enable */
189 kal_uint8 PI_enable ; /* procedure interrupt enable*/
190 kal_uint8 page_status; /* page transfer status */
191 copy_quality_struct copy_quality;
192 dte_inactive_struct inactivity_timer; /*DTE inactivity timer*/
193 kal_uint8 packet_protocol; /* Packet protocol control */
194 kal_uint8 data_bit_order; /* Phace C data bit order */
195 kal_uint8 EOL_align; /* phace C received EOL alignment */
196 kal_uint8 cap_to_receive; /* capability to receive */
197 kal_uint8 HDLC_report; /* HDLC frame reporting enable */
198 add_poll_cap_struct add_poll_cap; /*address and polling capability */
199 recv_quality_thresd_struct recv_quality_thresd; /* recive quality threshold */
200 kal_uint8 phase_C_timeout;
201 kal_uint8 hangup_status;
202 kal_uint8 min_speed; /* minimum phace C speed */
203 kal_uint8 carrier_loss_to; /* carrier loss timeout (class 1 ) */
204 kal_uint8 esc_replace_enable; /*double escape charactor replacement (class 1) */
205 format_conv_struct data_format_conver; /* image data format conversion */
206 kal_uint8 buffer_size[2]; /* buffer size, read only*/
207 kal_uint8 CTC_retry_val; /* CTC retry value */
208 kal_uint8 NSF_msg_ind; /* NSF message data indication */
209 kal_uint8 FET_post_cmd; /* end page or document command (only for class 2) */
210
211}t30_rw_param_struct;
212
213
214/* this struct is used for construct the local_param of MSG_ID_L4C_T30_TX_MSG_REQ */
215typedef struct
216{
217 LOCAL_PARA_HDR
218 kal_uint8 mod_value; /* modulation codes */
219 t30_fdt_subparam_struct fdt_subparam; /*session parameters */
220
221}l4c_t30_tx_msg_req_struct;
222
223typedef struct
224{
225 LOCAL_PARA_HDR
226 kal_uint8 mod_value; /* modulation codes */
227}l4c_t30_rx_msg_req_struct;
228
229/* this struct is used for construct the local_param of MSG_ID_L4C_T30_RW_PARAM_REQ */
230typedef struct
231{
232 LOCAL_PARA_HDR
233 kal_uint8 action;
234 kal_uint8 serv_class;
235 kal_uint32 rw_param;
236 t30_rw_param_struct t30_rw_param;
237
238}l4c_t30_rw_param_req_struct;
239
240typedef struct
241{
242 LOCAL_PARA_HDR
243 kal_uint8 action;
244 kal_uint8 serv_class;
245 kal_uint32 rw_str_param;
246 t30_str_param_struct t30_str_param;
247}l4c_t30_rw_str_param_req_struct;
248
249typedef struct
250{
251 LOCAL_PARA_HDR
252 kal_uint8 silence_time;
253}l4c_t30_tx_silence_req_struct;
254
255typedef struct
256{
257 LOCAL_PARA_HDR
258 kal_uint8 silence_time;
259}l4c_t30_rx_silence_req_struct;
260
261typedef struct
262{
263 LOCAL_PARA_HDR
264 kal_uint8 mod_value;
265}l4c_t30_tx_bcs_req_struct;
266
267typedef struct
268{
269 LOCAL_PARA_HDR
270 kal_uint8 mod_value;
271}l4c_t30_rx_bcs_req_struct;
272
273
274
275
276typedef struct
277{
278 LOCAL_PARA_HDR
279 kal_uint8 result_code;
280}l4c_t30_tx_msg_cnf_struct;
281
282typedef struct
283{
284 LOCAL_PARA_HDR
285 kal_uint8 result_code;
286}l4c_t30_rx_msg_cnf_struct;
287
288typedef struct
289{
290 LOCAL_PARA_HDR
291 kal_uint8 result_code;
292}l4c_t30_tx_bcs_cnf_struct;
293
294typedef struct
295{
296 LOCAL_PARA_HDR
297 kal_uint8 result_code;
298}l4c_t30_rx_bcs_cnf_struct;
299
300typedef struct
301{
302 LOCAL_PARA_HDR
303 kal_uint8 action;
304 kal_bool result_code;
305 kal_uint8 result_str[80];
306
307}l4c_t30_rw_param_cnf_struct;
308
309typedef struct
310{
311 LOCAL_PARA_HDR
312 kal_uint8 action;
313 kal_bool result_code;
314 kal_uint8 result_str[110];
315}l4c_t30_rw_str_param_cnf_struct;
316
317typedef struct
318{
319 LOCAL_PARA_HDR
320 kal_uint8 result_code;
321}l4c_t30_ready_ind_struct;
322
323typedef struct
324{
325 LOCAL_PARA_HDR
326 kal_uint8 result_str[250];
327}l4c_t30_report_param_ind_struct;
328
329typedef struct
330{
331 LOCAL_PARA_HDR
332 kal_uint8 page_status;
333}l4c_t30_tx_ppm_req_struct;
334
335typedef struct
336{
337 LOCAL_PARA_HDR
338 kal_uint8 result_code;
339}l4c_t30_tx_ppm_cnf_struct;
340
341typedef struct {
342 LOCAL_PARA_HDR
343 kal_uint8 port;
344}l4c_t30_transfer_uart_req_struct;
345
346typedef struct {
347 LOCAL_PARA_HDR
348 kal_uint8 port;
349 kal_uint8 is_esc_on;
350}l4c_t30_transfer_uart_ind_struct;
351
352#endif
353
354