comparison g23m/condat/ms/src/aci/psa_t30.h @ 0:509db1a7b7b8

initial import: leo2moko-r1
author Space Falcon <falcon@ivan.Harhan.ORG>
date Mon, 01 Jun 2015 03:24:05 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:509db1a7b7b8
1 /*
2 +-----------------------------------------------------------------------------
3 | Project : GSM-PS (6147)
4 | Modul : PSA_T30
5 +-----------------------------------------------------------------------------
6 | Copyright 2002 Texas Instruments Berlin, AG
7 | All rights reserved.
8 |
9 | This file is confidential and a trade secret of Texas
10 | Instruments Berlin, AG
11 | The receipt of or possession of this file does not convey
12 | any rights to reproduce or disclose its contents or to
13 | manufacture, use, or sell anything it may describe, in
14 | whole, or in part, without the specific written consent of
15 | Texas Instruments Berlin, AG.
16 +-----------------------------------------------------------------------------
17 | Purpose : Definitions for the protocol stack adapter T30
18 +-----------------------------------------------------------------------------
19 */
20
21 #ifndef PSA_T30_H
22 #define PSA_T30_H
23
24 #ifdef FF_FAX
25
26 #define REPORT_MAX 128
27 #define MSG_SIZE_BITS 2880
28
29 /*==== CONSTANTS ==================================================*/
30
31 typedef enum
32 {
33 NO_VLD_FS = 0, /* not a valid fax status */
34 FS_IDL, /* fax idle */
35 FS_SND_DOC, /* sending fax document */
36 FS_RCV_DOC, /* receiving fax document */
37 FS_DOC_TRF /* fax document transfered */
38 } T_T30_FXST;
39
40 /*==== TYPES ======================================================*/
41
42 typedef struct
43 {
44 UBYTE dir;
45 USHORT l_buf;
46 UBYTE buf[REPORT_MAX];
47 } T_Report;
48
49 typedef struct T30ShrdParm
50 {
51 SHORT cId; /* related call id */
52 UBYTE faxStat; /* status of fax */
53 USHORT trans_rate; /* t30_activate_req, t30_modify_req */
54 UBYTE half_rate; /* t30_activate_req, t30_modify_req */
55 UBYTE threshold; /* t30_activate_req */
56 UBYTE bitord; /* t30_activate_req */
57 USHORT frames_per_prim; /* t30_activate_req */
58 USHORT tbs; /* t30_activate_cnf */
59 USHORT rbs; /* t30_activate_cnf */
60 T_hdlc_info hdlc_rcv; /* t30_cap_ind, t30_cap_req */
61 T_hdlc_info hdlc_snd; /* t30_cap_ind, t30_cap_req */
62 UBYTE sgn_rcv; /* t30_sgn_ind */
63 UBYTE sgn_snd; /* t30_sgn_req */
64 UBYTE cmpl; /* t30_cmpl_ind */
65 UBYTE hdlc_report; /* t30_config_req */
66 U16 test_mode; /* t30_config_req */
67 USHORT err_cause; /* t30_error_ind */
68 USHORT eol; /* t30_info_ind */
69 T_Report report; /* t30_report_ind */
70 UBYTE bcs_phase; /* ks */
71 UBYTE msg_phase;
72 BOOL T30_is_activated;
73 } T_T30_SHRD_PRM;
74
75 typedef struct T30TstPrmRef
76 {
77 const char * key; /* keyword string */
78 UBYTE id; /* corresponding id */
79 } T30_TSTPRM_REF;
80
81 /*==== PROTOTYPES =================================================*/
82
83 EXTERN SHORT psaT30_Ppm (void);
84
85 #ifdef DTI
86 EXTERN void psaT30_Dti_Req (T_DTI_CONN_LINK_ID link_id, UBYTE dti_conn);
87 #endif /* DTI */
88
89 #ifdef FF_FAX
90 EXTERN void psaT30_Init (void);
91 #endif
92
93 EXTERN SHORT psaT30_Ppm (void);
94 EXTERN void psaT30_Modify (void);
95 EXTERN void psaT30_Disconnect (void);
96 EXTERN void psaT30_Config (void);
97 EXTERN void psaT30_Capabilities (void);
98 EXTERN void psaT30_Activate (void);
99 EXTERN void psaT30_Deactivate (void);
100
101 #ifdef TRACING
102 EXTERN void psaT30_shrPrmDump ( void );
103 #endif
104
105 /*==== EXPORT =====================================================*/
106
107 #ifdef PSA_T30F_C
108
109 GLOBAL T_T30_SHRD_PRM t30ShrdPrm;
110
111 #else
112
113 EXTERN T_T30_SHRD_PRM t30ShrdPrm;
114
115 #endif /* PSA_T30F_C */
116
117 #endif /* FF_FAX */
118
119 #endif /* PSA_T30_H */
120
121 /*==== EOF =======================================================*/
122