comparison src/g23m-fad/tcpip/include/dcfg_api.h @ 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 * @file dcfg_api.h
3 *
4 * API Definition for DCFG SWE.
5 *
6 * @author Jose Yp-Tcha (j-yp-tcha@ti.com)
7 * @version 0.1
8 */
9
10 /*
11 * History:
12 *
13 * Date Author Modification
14 * -------------------------------------------------------------------
15 * 2/6/2003 Jose Yp-Tcha (j-yp-tcha@ti.com) Create.
16 *
17 * (C) Copyright 2003 by Texas Instruments Incorporated, All Rights Reserved
18 */
19
20 #ifndef __DCFG_API_H_
21 #define __DCFG_API_H_
22
23 #include "rvm_gen.h" /* Generic RVM types and functions. */
24
25 #ifdef __cplusplus
26 extern "C"
27 {
28 #endif
29
30 /**
31 * @name DCFG Return type and return values.
32 *
33 * Currently they are the standard RV return types, but they may
34 * be customized in the future.
35 */
36 /*@{*/
37 typedef T_RV_RET T_DCFG_RETURN;
38
39 #define DCFG_OK RV_OK
40 #define DCFG_NOT_SUPPORTED RV_NOT_SUPPORTED
41 #define DCFG_MEMORY_ERR RV_MEMORY_ERR
42 #define DCFG_INTERNAL_ERR RV_INTERNAL_ERR
43 /*@}*/
44
45 /* bearer type shared by CONF et DCM */
46 typedef UINT8 T_BEARER_TYPE;
47 #define BESTONE_BEARER_TYPE 0
48 #define GPRS_BEARER_TYPE 0x01
49 #define GSM_BEARER_TYPE 0x02
50
51 #define DEFAULT_BESTONE_BEARER_TYPE (0xE0 | BESTONE_BEARER_TYPE)
52 #define DEFAULT_GPRS_BEARER_TYPE (0xE0 | GPRS_BEARER_TYPE)
53 #define DEFAULT_GSM_BEARER_TYPE (0xE0 | GSM_BEARER_TYPE)
54
55 /* IP User shared by the system */
56 typedef UINT8 T_APPLI_USER;
57 #define JAVA_USER 0
58
59 // ADD HERE NEW IP USERS
60
61 #define ALL_USER 0xff
62
63 typedef UINT8 T_DESC_ID; // 2 bits for the row, 1 for def, 5 for bearer
64
65 typedef struct
66 {
67 T_APPLI_USER IPU_id;
68 T_DESC_ID desc_id;
69 }T_CONF_ID;
70
71 /* Location of the IP User database informations */
72 #define CONF_DATA_USER_DEFAULT_BEARER ("/gsm/bearer/default_bearer")
73 #define CONF_DATA_USER_GPRS_BEARER ("/gsm/bearer/gprs_bearer")
74 #define CONF_DATA_USER_GSM_BEARER ("/gsm/bearer/gsm_bearer")
75
76 /**
77 * @name API functions
78 *
79 * API functions declarations (bridge functions).
80 */
81 /*@{*/
82
83 /*@}*/
84
85 #ifdef __cplusplus
86 }
87 #endif
88
89 #endif /*__DCFG_API_H_*/
90