comparison src/g23m-fad/app/bat_cfg.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 : BAT library
5 +-----------------------------------------------------------------------------
6 | Copyright 2005 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 : configuration for binary AT commands
18 +-----------------------------------------------------------------------------
19 */
20 #ifndef BAT_CFG_H
21 #define BAT_CFG_H
22
23 #include "typedefs.h" /* to include some defined types */
24 #include "l2p_types.h"
25 #include "gdd.h"
26
27
28 /*********************************************************************************
29 *
30 * defines
31 *
32 *********************************************************************************/
33
34 #define L2P_MAINTAIN_SIZE L2P_CONTROL_BLOCK_HDR_SIZE
35
36
37 /*********************************************************************************
38 *
39 * enumerations
40 *
41 *********************************************************************************/
42
43 typedef enum
44 {
45 DEVICE_PACKET = 0
46 /*more to be defined*/
47 }T_BAT_device;
48
49
50 /*********************************************************************************
51 *
52 * A description of the GDD interface
53 *
54 *********************************************************************************/
55
56 typedef struct
57 {
58 T_GDD_FUNC gdd_if;
59 T_GDD_CAP cap;
60 }T_BAT_adapter;
61
62
63 /*********************************************************************************
64 *
65 * A description of the L2P protocol Id
66 *
67 *********************************************************************************/
68
69 typedef struct
70 {
71 T_L2P_SUPPORTED_PROTOCOLS protocol_id;
72 }T_BAT_l2p;
73
74 typedef struct
75 {
76 T_BAT_device device;
77 T_BAT_adapter adapter;
78 T_BAT_l2p l2p;
79 }T_BAT_config;
80
81
82 /*********************************************************************************
83 *
84 * with this release the following configuration data should be used
85 *
86 *********************************************************************************/
87
88
89 extern T_BAT_config *BAT_APP_CONFIG;
90 void app_set_config (void);
91
92
93 #endif /* BAT_CFG_H */
94
95