FreeCalypso > hg > fc-tourmaline
comparison src/g23m-aci/aci/psa_dcmp.c @ 1:fa8dc04885d8
src/g23m-*: import from Magnetite
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Fri, 16 Oct 2020 06:25:50 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
0:4e78acac3d88 | 1:fa8dc04885d8 |
---|---|
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 : defines the signalling functions of the protocol stack adapter for dcm control. | |
18 | | |
19 +----------------------------------------------------------------------------- | |
20 */ | |
21 | |
22 /*********************************** INCLUDES ********************************************/ | |
23 #include "aci_all.h" | |
24 #include "dcm_utils.h" | |
25 #include "dcm_state.h" | |
26 #include "dcm_env.h" | |
27 | |
28 | |
29 /**************************** LOCAL VARIABLE DEFINITION **********************/ | |
30 /**************************** EXTERN VARIABLE DEFINITION *********************/ | |
31 EXTERN T_DCM_RET dcm_handle_message(T_DCM_HDR *msg_p); | |
32 /**************************** LOCAL FUCNTION DEFINITION **********************/ | |
33 /************************** EXTERN FUCNTION DEFINITION ***********************/ | |
34 | |
35 | |
36 /******************************************************************************/ | |
37 GLOBAL void psa_dcm_open_conn_req(T_DCM_OPEN_CONN_REQ* dcm_open_conn_req) | |
38 { | |
39 T_DCM_OPEN_CONN_REQ_MSG dcm_open_conn_req_msg; | |
40 | |
41 TRACE_FUNCTION("psa_dcm_open_conn_req()"); | |
42 | |
43 memset(&dcm_open_conn_req_msg,0x00,sizeof(T_DCM_OPEN_CONN_REQ_MSG)); | |
44 | |
45 dcm_open_conn_req_msg.hdr.msg_id = DCM_OPEN_CONN_REQ_MSG; | |
46 dcm_open_conn_req_msg.conn_req.api_instance = dcm_open_conn_req->api_instance; | |
47 dcm_open_conn_req_msg.conn_req.bearer_select= dcm_open_conn_req->bearer_select; | |
48 dcm_open_conn_req_msg.conn_req.profile_number = dcm_open_conn_req->profile_number; | |
49 dcm_open_conn_req_msg.conn_req.dcm_info_conn = dcm_open_conn_req->dcm_info_conn; | |
50 | |
51 dcm_handle_message((T_DCM_HDR*)&dcm_open_conn_req_msg); | |
52 | |
53 PFREE(dcm_open_conn_req); | |
54 } | |
55 | |
56 | |
57 /******************************************************************************/ | |
58 GLOBAL void psa_dcm_close_conn_req(T_DCM_CLOSE_CONN_REQ* dcm_close_conn_req) | |
59 { | |
60 T_DCM_CLOSE_CONN_REQ_MSG dcm_close_conn_req_msg; | |
61 | |
62 TRACE_FUNCTION("psa_dcm_close_conn_req()"); | |
63 | |
64 memset(&dcm_close_conn_req_msg, 0x00, sizeof(T_DCM_CLOSE_CONN_REQ_MSG)); | |
65 | |
66 dcm_close_conn_req_msg.hdr.msg_id = DCM_CLOSE_CONN_REQ_MSG; | |
67 dcm_close_conn_req_msg.close_req.api_instance = dcm_close_conn_req->api_instance; | |
68 dcm_close_conn_req_msg.close_req.bearer_handle = dcm_close_conn_req->bearer_handle; | |
69 | |
70 dcm_handle_message((T_DCM_HDR*)&dcm_close_conn_req_msg); | |
71 | |
72 PFREE(dcm_close_conn_req); | |
73 } | |
74 | |
75 | |
76 /******************************************************************************/ | |
77 GLOBAL void psa_dcm_get_current_conn_req(T_DCM_GET_CURRENT_CONN_REQ *dcm_get_current_conn_req) | |
78 { | |
79 T_DCM_GET_CURRENT_CONN_REQ_MSG dcm_get_current_conn_req_msg; | |
80 | |
81 TRACE_FUNCTION("psa_dcm_get_current_conn_req()"); | |
82 | |
83 memset(&dcm_get_current_conn_req_msg, 0x00, sizeof(T_DCM_GET_CURRENT_CONN_REQ_MSG)); | |
84 | |
85 dcm_get_current_conn_req_msg.hdr.msg_id = DCM_GET_CURRENT_CONN_REQ_MSG; | |
86 dcm_get_current_conn_req_msg.current_conn_req.api_instance = dcm_get_current_conn_req->api_instance; | |
87 dcm_get_current_conn_req_msg.current_conn_req.bearer_handle = dcm_get_current_conn_req->bearer_handle; | |
88 | |
89 dcm_handle_message((T_DCM_HDR*)&dcm_get_current_conn_req_msg); | |
90 | |
91 PFREE(dcm_get_current_conn_req); | |
92 } | |
93 | |
94 |