comparison g23m/condat/com/include/cl_list.h @ 0:509db1a7b7b8

initial import: leo2moko-r1
author Space Falcon <falcon@ivan.Harhan.ORG>
date Mon, 01 Jun 2015 03:24:05 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:509db1a7b7b8
1 /*
2 +-----------------------------------------------------------------------------
3 | Project : COMLIB
4 | Modul : RR/PL
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 : Definitions of global types used by List Processing functions
18 | and the prototypes of those functions: RR/PL layer.
19 +-----------------------------------------------------------------------------
20 */
21
22 #ifndef CL_LIST_H
23 #define CL_LIST_H
24
25 /*==== CONST ================================================================*/
26
27 #define BITOFFSET_LIST 1024
28
29 #define MAX_BYTES_900 16
30 #define MAX_BYTES_EGSM 23
31 #define MAX_BYTES_1800 47
32 #define MAX_BYTES_1900 38
33 #define MAX_BYTES_DUAL 63
34 #define MAX_BYTES_850 16
35 #define MAX_BYTES_DUAL_EGSM 70
36 #define MAX_BYTES_DUAL_US 54
37
38 #define SET_CHANNEL_BIT 0
39 #define RESET_CHANNEL_BIT 1
40 #define GET_CHANNEL_BIT 2
41 #define CHECK_CHANNEL 3
42
43
44 #define T_LIST_MAX_SIZE 128 /* 1024/8 = 128 */
45 typedef struct
46 {
47 UBYTE channels [T_LIST_MAX_SIZE];
48 } T_LIST;
49
50
51
52 /*==== MACROS ================================================================*/
53
54 #define srv_set_channel(list,ch) scr_channel_bit(list,ch,SET_CHANNEL_BIT)
55 #define srv_unset_channel(list,ch) scr_channel_bit(list,ch,RESET_CHANNEL_BIT)
56 #define srv_get_channel(list,ch) scr_channel_bit(list,ch,GET_CHANNEL_BIT)
57
58 /*==== VARS =================================================================*/
59
60 /*==== TYPES =================================================================*/
61
62 /*==== FUNCTIONS ============================================================*/
63
64 EXTERN UBYTE scr_channel_bit (T_LIST *list,
65 int channel,
66 int mode);
67 EXTERN int srv_create_list (T_LIST *list,
68 USHORT *channel_array,
69 USHORT size,
70 UBYTE zero_at_start,
71 USHORT start_index);
72 EXTERN void srv_clear_list (T_LIST *list);
73 EXTERN void srv_copy_list (T_LIST *target_list,
74 T_LIST *source_list,
75 UBYTE size);
76 EXTERN UBYTE srv_compare_list (T_LIST *list1,
77 T_LIST *list2);
78 EXTERN void srv_merge_list (T_LIST *target_list,
79 T_LIST *list);
80 EXTERN void srv_unmask_list (T_LIST *target,T_LIST *source);
81 EXTERN void srv_trace_freq_in_list (T_LIST *list);
82 EXTERN U8 srv_get_region_from_std (U8 std);
83 EXTERN U16 srv_count_list (T_LIST *list);
84 extern BOOL srv_is_list_set (T_LIST *list);
85
86 #endif /* #ifndef CL_LIST_H */
87
88