FreeCalypso > hg > fc-magnetite
comparison src/g23m-gprs/sm/sm_user_plane_control.h @ 183:219afcfc6250
src/g23m-gprs: initial import from TCS3.2/LoCosto
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Thu, 13 Oct 2016 04:24:13 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
182:f02d0a0e1849 | 183:219afcfc6250 |
---|---|
1 /*---------------------------------------------------------------------------- | |
2 | Project : 3G PS | |
3 | Module : SM | |
4 +----------------------------------------------------------------------------- | |
5 | Copyright 2003 Texas Instruments. | |
6 | All rights reserved. | |
7 | | |
8 | This file is confidential and a trade secret of Texas | |
9 | Instruments . | |
10 | The receipt of or possession of this file does not convey | |
11 | any rights to reproduce or disclose its contents or to | |
12 | manufacture, use, or sell anything it may describe, in | |
13 | whole, or in part, without the specific written consent of | |
14 | Texas Instruments. | |
15 +----------------------------------------------------------------------------- | |
16 | Purpose: User Plane Control state machine definitions in the SM entity. | |
17 | For design details, see: | |
18 | 8010.908 SM Detailed Specification | |
19 +---------------------------------------------------------------------------*/ | |
20 | |
21 /*==== DECLARATION CONTROL =================================================*/ | |
22 | |
23 #ifndef SM_USER_PLANE_CONTROL_H | |
24 #define SM_USER_PLANE_CONTROL_H | |
25 | |
26 /*==== INCLUDES =============================================================*/ | |
27 | |
28 /*==== CONSTS ===============================================================*/ | |
29 | |
30 /*==== TYPES ================================================================*/ | |
31 | |
32 typedef enum | |
33 { | |
34 /* Incoming primitives */ | |
35 SM_P_SM_ACTIVATE_RES, | |
36 SM_P_SM_DEACTIVATE_RES, | |
37 SM_P_SM_MODIFY_RES, | |
38 /* Events from Context Control */ | |
39 SM_I_USER_PLANE_ACTIVATE_START, | |
40 SM_I_USER_PLANE_ACTIVATE_COMPLETE, | |
41 SM_I_USER_PLANE_DEACTIVATE_LOCAL, | |
42 SM_I_USER_PLANE_MODIFY, | |
43 /* Events from Context Deactivate Control */ | |
44 SM_I_USER_PLANE_DEACTIVATE, | |
45 /* Number of events */ | |
46 SM_USER_PLANE_CONTROL_NUMBER_OF_EVENTS | |
47 } T_SM_USER_PLANE_CONTROL_EVENT; | |
48 | |
49 typedef enum | |
50 { | |
51 SM_USER_PLANE_DEACTIVATED, | |
52 SM_USER_PLANE_ACTIVATE_STARTED, | |
53 SM_USER_PLANE_ACTIVATE_COMPLETING, | |
54 SM_USER_PLANE_ACTIVATED, | |
55 SM_USER_PLANE_MODIFYING, | |
56 SM_USER_PLANE_DEACTIVATING, | |
57 /* Number of states */ | |
58 SM_USER_PLANE_CONTROL_NUMBER_OF_STATES | |
59 } T_SM_USER_PLANE_CONTROL_STATE; | |
60 | |
61 /*==== EXPORTS ==============================================================*/ | |
62 | |
63 extern void sm_user_plane_control_init(struct T_SM_CONTEXT_DATA *context); | |
64 extern void sm_user_plane_control_exit(struct T_SM_CONTEXT_DATA *context); | |
65 #ifdef DEBUG | |
66 extern /*@observer@*/ | |
67 const char *sm_user_plane_control_state(struct T_SM_CONTEXT_DATA *context); | |
68 #endif | |
69 extern void sm_user_plane_control(struct T_SM_CONTEXT_DATA *context, | |
70 T_SM_USER_PLANE_CONTROL_EVENT event, | |
71 /*@null@*/ void *data); | |
72 | |
73 #endif /* SM_USER_PLANE_CONTROL_H */ | |
74 /*==== END OF FILE ==========================================================*/ |