4 #include <osmocore/gsm48_ie.h>
6 /* collection of system information of the current cell */
8 /* frequency mask flags of frequency type */
9 #define FREQ_TYPE_SERV 0x01 /* frequency of the serving cell */
10 #define FREQ_TYPE_HOPP 0x02 /* frequency used for channel hopping */
11 #define FREQ_TYPE_NCELL 0x1c /* frequency of the neighbor cell */
12 #define FREQ_TYPE_NCELL_2 0x04 /* sub channel of SI 2 */
13 #define FREQ_TYPE_NCELL_2bis 0x08 /* sub channel of SI 2bis */
14 #define FREQ_TYPE_NCELL_2ter 0x10 /* sub channel of SI 2ter */
15 #define FREQ_TYPE_REP 0xe0 /* frequency to be reported */
16 #define FREQ_TYPE_REP_5 0x20 /* sub channel of SI 5 */
17 #define FREQ_TYPE_REP_5bis 0x40 /* sub channel of SI 5bis */
18 #define FREQ_TYPE_REP_5ter 0x80 /* sub channel of SI 5ter */
19 #define FREQ_TYPE_SI_2_5 0xfc /* both SI 2 and SI 5 */
21 /* structure of all received system informations */
22 struct gsm48_sysinfo {
23 /* flags of available information */
24 uint8_t si1, si2, si2bis, si2ter, si3,
25 si4, si5, si5bis, si5ter, si6;
27 /* memory maps to simply detect change in system info messages */
39 struct gsm_sysinfo_freq freq[1024]; /* all frequencies */
40 uint16_t hopping[64]; /* hopping arfcn */
45 uint16_t mcc, mnc, lac; /* LAI */
46 uint8_t max_retrans; /* decoded */
47 uint8_t tx_integer; /* decoded */
48 uint8_t reest_denied; /* 1 = denied */
49 uint8_t cell_barr; /* 1 = barred */
50 uint16_t class_barr; /* bit 10 is emergency */
68 int8_t ms_txpwr_max_cch;
69 int8_t cell_resel_hyst_db;
70 int8_t rxlev_acc_min_db;
74 uint8_t bcch_radio_link_timeout;
78 uint8_t sacch_radio_link_timeout;
83 uint8_t bs_ag_blks_res;
85 uint8_t pag_mf_periods;
86 int32_t t3212; /* real value in seconds */
87 /* channel description */
89 uint8_t h; /* using hopping */
93 uint8_t chan_nr; /* type, slot, sub slot */
96 uint8_t nb_ext_ind_si2;
97 uint8_t nb_ba_ind_si2;
98 uint8_t nb_ext_ind_si2bis;
99 uint8_t nb_ba_ind_si2bis;
100 uint8_t nb_multi_rep_si2ter; /* see GSM 05.08 8.4.3 */
101 uint8_t nb_ext_ind_si5;
102 uint8_t nb_ba_ind_si5;
103 uint8_t nb_ext_ind_si5bis;
104 uint8_t nb_ba_ind_si5bis;
105 uint8_t nb_multi_rep_si5ter;
106 uint8_t nb_ncc_permitted;
107 uint8_t nb_max_retrans; /* decoded */
108 uint8_t nb_tx_integer; /* decoded */
109 uint8_t nb_reest_denied; /* 1 = denied */
110 uint8_t nb_cell_barr; /* 1 = barred */
111 uint16_t nb_class_barr; /* bit 10 is emergency */
114 int gsm48_sysinfo_dump(struct gsm48_sysinfo *s, uint16_t arfcn,
115 void (*print)(void *, const char *, ...), void *priv);
117 #endif /* _SYSINFO_H */