comparison src/g23m-fad/fad/fad_kerf.c @ 174:90eb61ecd093

src/g23m-fad: initial import from TCS3.2/LoCosto
author Mychaela Falconia <falcon@freecalypso.org>
date Wed, 12 Oct 2016 05:40:46 +0000
parents
children
comparison
equal deleted inserted replaced
173:bf64d785238a 174:90eb61ecd093
1 /*
2 +-----------------------------------------------------------------------------
3 | Project : GSM-F&D (8411)
4 | Modul : FAD_KERF
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 : This Modul defines the procedures and functions for
18 | the component Fax Adaptation 3.45 of the mobile station
19 +-----------------------------------------------------------------------------
20 */
21
22 #ifndef FAD_KERF_C
23 #define FAD_KERF_C
24 #endif
25
26 #define ENTITY_FAD
27
28 /*==== INCLUDES ===================================================*/
29
30 #include <string.h>
31 #include "typedefs.h"
32 #include "pconst.cdg"
33 #include "vsi.h"
34 #include "macdef.h"
35 #include "pconst.cdg"
36 #include "custom.h"
37 #include "gsm.h"
38 #include "cnf_fad.h"
39 #include "mon_fad.h"
40 #include "prim.h"
41 #include "pei.h"
42 #include "tok.h"
43 #include "ccdapi.h"
44 #include "fad.h"
45
46 /*==== CONST =======================================================*/
47
48 /*==== TYPES =======================================================*/
49
50 /*==== VAR EXPORT ==================================================*/
51
52 /*==== VAR LOCAL ===================================================*/
53
54 /*==== FUNCTIONS ===================================================*/
55 /*
56 +--------------------------------------------------------------------+
57 | PROJECT : GSM-F&D (8411) MODULE : FAD_KERF |
58 | STATE : code ROUTINE : ker_init |
59 +--------------------------------------------------------------------+
60
61 PURPOSE : initialise the fad data for the kernel process
62
63 */
64
65 GLOBAL void ker_init (void)
66 {
67 TRACE_FUNCTION ("ker_init()");
68
69 memset (fad_data, 0, sizeof(T_FAD_DATA));
70 INIT_STATE (KER, KER_NULL);
71 }
72
73 /*
74 +--------------------------------------------------------------------+
75 | PROJECT : GSM-F&D (8411) MODULE : FAD_KERF |
76 | STATE : code ROUTINE : ker_SetError |
77 +--------------------------------------------------------------------+
78
79 PURPOSE : report error encountered to T30 (ACI)
80 stop forwarding data to T30
81
82 */
83
84 GLOBAL void ker_SetError(USHORT cause)
85 {
86 PALLOC (fad_error_ind, FAD_ERROR_IND);
87
88 TRACE_FUNCTION ("ker_SetError()");
89
90 fad_error_ind->cause = cause;
91 PSENDX (T30, fad_error_ind);
92 }
93