comparison src/g23m-aci/aci/dcm_utils.h @ 162:53929b40109c

src/g23m-aci: initial import from TCS3.2/LoCosto
author Mychaela Falconia <falcon@freecalypso.org>
date Tue, 11 Oct 2016 02:02:43 +0000
parents
children
comparison
equal deleted inserted replaced
161:4557e2a9c18e 162:53929b40109c
1 /*
2 +-----------------------------------------------------------------------------
3 | Project : GSM-F&D (8411)
4 | Modul : ACI
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 | Description : This file contains Dcm header file
18 +-----------------------------------------------------------------------------
19 */
20
21
22 #ifndef __DCM_UTILS_H__
23 #define __DCM_UTILS_H__
24
25 #include "prim.h"
26 #include "dcm.h"
27
28 /**
29 * Maximum number of IPU.
30 */
31 #define DCM_MAX_NUMBER_IPU 5
32
33 /*
34 * Application infomation state
35 */
36 #define ROW_FREE 0
37 #define ROW_ASSIGNED 1
38 #define ROW_CLOSING 2
39
40
41 /* msg_header */
42 typedef struct
43 {
44 U8 msg_id;
45 } T_DCM_HDR;
46
47
48 /* Message ID */
49 #define DCM_OPEN_CONN_REQ_MSG 1
50 #define DCM_CLOSE_CONN_REQ_MSG 2
51 #define DCM_GET_CURRENT_CONN_REQ_MSG 3
52 #define DCM_OPEN_CONN_CNF_MSG 4
53 #define DCM_CLOSE_CONN_CNF_MSG 5
54 #define DCM_GET_CURRENT_CONN_CNF_MSG 6
55 #define DCM_ERROR_IND_MSG 7
56 #define DCM_NEXT_CMD_READY_MSG 8
57 #define DCM_NEXT_CMD_STOP_MSG 9
58
59
60 /* Message structure*/
61 typedef struct
62 {
63 T_DCM_HDR hdr; /* Message header */
64 T_DCM_OPEN_CONN_REQ conn_req; /* DCM open req message body */
65 } T_DCM_OPEN_CONN_REQ_MSG;
66
67
68 /* Message structure */
69 typedef struct
70 {
71
72 T_DCM_HDR hdr; /* Message header */
73 T_DCM_CLOSE_CONN_REQ close_req; /* DCM close req message body */
74 } T_DCM_CLOSE_CONN_REQ_MSG;
75
76
77 /* Message structure*/
78 typedef struct
79 {
80 T_DCM_HDR hdr; /* Message header*/
81 T_DCM_GET_CURRENT_CONN_REQ current_conn_req; /* DCM get current conn req message body */
82 } T_DCM_GET_CURRENT_CONN_REQ_MSG;
83
84
85 /* Message structure */
86 typedef struct
87 {
88 /* Message header */
89 T_DCM_HDR hdr;
90 /* Error code. ETSI GSM 07.07 based*/
91 S32 error;
92 /* Result */
93 T_DCM_RET result;
94 } T_DCM_STATUS_IND_MSG;
95
96
97 T_DCM_RET dcm_process_unwaited_events_state_intermediate_conn(T_DCM_HDR * msg_p);
98 T_DCM_RET dcm_process_open_conn_event(T_DCM_OPEN_CONN_REQ_MSG *open_conn_p);
99 T_DCM_RET dcm_process_close_conn_event(T_DCM_CLOSE_CONN_REQ_MSG *close_conn_p);
100 T_DCM_RET dcm_process_get_current_conn_event(T_DCM_GET_CURRENT_CONN_REQ_MSG *current_conn_p);
101 T_DCM_RET dcm_process_unknown_event_in_idle(T_DCM_HDR* msg_p);
102 T_DCM_RET dcm_free_row(U8 current_row);
103 T_DCM_RET dcm_store_ipu_info(U8 row, T_BEARER_TYPE bearer_type, char *apn,
104 char *number, char *pdp_addr, U8 cid_used,
105 char *user, char *password, U32 dns1, U32 dns2,
106 U32 gateway);
107 T_DCM_RET dcm_clear_ipu_info(U8 row);
108 T_DCM_RET dcm_process_event_error_reception(T_DCM_HDR * msg_p);
109 T_DCM_RET dcm_process_cgatt_ans(T_DCM_HDR * msg_p, U8 row);
110 T_DCM_RET dcm_process_cgact_ans(T_DCM_HDR * msg_p, U8 row);
111 T_DCM_RET dcm_process_cgdeact_ans(T_DCM_HDR * msg_p, U8 row);
112 T_DCM_RET dcm_process_sat_dn_ans(T_DCM_HDR * msg_p, U8 row);
113 T_DCM_RET dcm_process_sat_h_ans(T_DCM_HDR * msg_p, U8 row);
114
115 #endif /*__DCM_UTILS_H__*/