src: use new libosmogsm and include/osmocom/[gsm|core] path to headers
[osmocom-bb.git] / src / target / firmware / board / compal / rf_power.c
1 /* Tx RF power calibration for the Compal/Motorola dualband phones */
2
3 /* (C) 2010 by Harald Welte <laforge@gnumonks.org>
4  *
5  * All Rights Reserved
6  *
7  * This program is free software; you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation; either version 2 of the License, or
10  * (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License along
18  * with this program; if not, write to the Free Software Foundation, Inc.,
19  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
20  *
21  */
22
23 #include <stdint.h>
24 #include <osmocom/core/utils.h>
25
26 /* GSM900 ARFCN 33, Measurements by Steve Markgraf / May 2010 */
27 const int16_t dbm2apc_gsm900[] = {
28         [0]     = 151,
29         [1]     = 152,
30         [2]     = 153,
31         [3]     = 155,
32         [4]     = 156,
33         [5]     = 158,
34         [6]     = 160,
35         [7]     = 162,
36         [8]     = 164,
37         [9]     = 167,
38         [10]    = 170,
39         [11]    = 173,
40         [12]    = 177,
41         [13]    = 182,
42         [14]    = 187,
43         [15]    = 192,
44         [16]    = 199,
45         [17]    = 206,
46         [18]    = 214,
47         [19]    = 223,
48         [20]    = 233,
49         [21]    = 244,
50         [22]    = 260,
51         [23]    = 271,
52         [24]    = 288,
53         [25]    = 307,
54         [26]    = 327,
55         [27]    = 350,
56         [28]    = 376,
57         [29]    = 407,
58         [30]    = 456,
59         [31]    = 575,
60 };
61
62 const int dbm2apc_gsm900_max = ARRAY_SIZE(dbm2apc_gsm900) - 1;