comparison src/g23m-aci/bat/bat_ctrl.h @ 1:d393cd9bb723

src/g23m-*: initial import from Magnetite
author Mychaela Falconia <falcon@freecalypso.org>
date Sun, 15 Jul 2018 04:40:46 +0000
parents
children
comparison
equal deleted inserted replaced
0:b6a5e36de839 1:d393cd9bb723
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 | Purpose : This Modul holds the functions
18 | for the binary AT command library at APPlication side
19 +-----------------------------------------------------------------------------
20 */
21 #ifndef BAT_CTRL_H
22 #define BAT_CTRL_H
23
24
25
26 /*********************************************************************************
27 *
28 * enums
29 *
30 *********************************************************************************/
31
32 typedef enum
33 {
34 BATC_MAX_CLIENTS = 0x8000,/*bit 15 is 1 */
35 BATC_OPEN_CLIENT,
36 BATC_CLOSE_CLIENT,
37 BATC_ABORT_CMD
38 } T_BATC_ctrl_params;
39
40
41 typedef enum
42 {
43 BATC_MAX_CLIENTS_CNF = 0x8000, /* bit 15 is 1 */
44 BATC_MAX_CLIENTS_REJ,
45 BATC_OPEN_CLIENT_CNF,
46 BATC_OPEN_CLIENT_REJ,
47 BATC_ABORT_COMMAND_CNF,
48 BATC_ABORT_COMMAND_REJ
49 } T_BATC_rsp_param;
50
51
52 /*********************************************************************************
53 *
54 * structures
55 *
56 *********************************************************************************/
57
58 typedef struct
59 {
60 U32 batc_dummy;
61 } T_BATC_no_parameter; /* actually never used */
62
63 typedef struct
64 {
65 U32 num_clients;
66 } T_BATC_max_clients; /* max number of clients of an instance */
67
68 typedef struct
69 {
70 U32 client_id;
71 } T_BATC_open_client; /* client to open */
72
73 typedef struct
74 {
75 U32 client_id;
76 } T_BATC_close_client; /* client to close */
77
78 typedef struct
79 {
80 U32 client_id;
81 } T_BATC_abort_cmd; /* client which runs the cmd */
82
83 typedef union
84 {
85 T_BATC_max_clients *ptr_max_clients;
86 T_BATC_open_client *ptr_open_client;
87 T_BATC_close_client *ptr_close_client;
88 T_BATC_abort_cmd *ptr_abort_cmd;
89 } T_BATC_params;
90
91 typedef union
92 {
93 T_BATC_open_client *ptr_bat_open_client_cnf; /* confirmation from BAT to BAT Lib */
94 T_BATC_abort_cmd *ptr_bat_abort_command_cnf; /* confirmation from BAT to BAT Lib */
95 } T_BATC_rsp;
96
97 typedef struct
98 {
99 T_BATC_ctrl_params ctrl_params;
100 T_BATC_params params;
101 }T_BATC_signal;
102
103 typedef struct
104 {
105 T_BATC_rsp_param rsp_params;
106 T_BATC_rsp rsp;
107 }T_BATC_confirm;
108
109
110
111 #endif /* BAT_CTRL_H */
112
113
114