Work on Radio Ressource.
[osmocom-bb.git] / src / host / gsm48-andreas / sysinfo.h
1 /*
2  * (C) 2010 by Andreas Eversberg <jolly@eversberg.eu>
3  *
4  * All Rights Reserved
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2 of the License, or
9  * (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License along
17  * with this program; if not, write to the Free Software Foundation, Inc.,
18  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
19  *
20  */
21
22 /* collection of system information of the current cell */
23
24 /* frequency mask flags of frequency type */
25 #define FREQ_TYPE_SERV  (1 << 0)
26 #define FREQ_TYPE_NCELL (1 << 1)
27
28 /* structure of one frequency */
29 struct gsm_sysinfo_freq {
30         /* if the frequency included in the sysinfo */
31         uint8_t mask;
32         /* the power measured as real value */
33         int8_t  rxlev;
34         ...
35 };
36
37 /* structure of all received system informations */
38 struct gsm_sysinfo {
39         struct  gsm_sysinfo_freq        freq[1024];
40         uint16_t                        hopping[64];
41         uint8_t                         hopp_len;
42
43         /* serving cell */
44         uint8_t                         max_retrans; /* decoded */
45         uint8_t                         tx_integer; /* decoded */
46         uint8_t                         reest_denied; /* 1 = denied */
47         uint8_t                         cell_barred; /* 1 = barred */
48         uint8_t                         class_barr[16]; /* 10 is emergency */
49
50         /* neighbor cell */
51         uint8_t                         nb_ext_ind;
52         uint8_t                         nb_ba_ind;
53         uint8_t                         nb_multi_rep; /* see GSM 05.08 8.4.3 */
54         uint8_t                         nb_ncc_permitted;
55         uint8_t                         nb_max_retrans; /* decoded */
56         uint8_t                         nb_tx_integer; /* decoded */
57         uint8_t                         nb_reest_denied; /* 1 = denied */
58         uint8_t                         nb_cell_barred; /* 1 = barred */
59         uint8_t                         nb_class_barr[16]; /* 10 is emergency */
60
61
62         ...
63 };
64