summaryrefslogtreecommitdiffstats
path: root/src/target/firmware/board/pirelli_dpl10/rf_power.c
blob: 9b89847dd82a697d6a90979e171dbf7ae181ca16 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
/* Tx RF power calibration for the Pirelli DP-L10 */

/* (C) 2010 by Harald Welte <laforge@gnumonks.org>
 *
 * All Rights Reserved
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License along
 * with this program; if not, write to the Free Software Foundation, Inc.,
 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 *
 */

#include <stdint.h>
#include <osmocom/core/utils.h>

/* GSM900 ARFCN 33, Measurements by Steve Markgraf / May 2010 */
/* FIXME those are from the Compal phones, do measurements with the DP-L10 */
const int16_t dbm2apc_gsm900[] = {
	[0]     = 151,
	[1]     = 152,
	[2]     = 153,
	[3]     = 155,
	[4]     = 156,
	[5]     = 158,
	[6]     = 160,
	[7]     = 162,
	[8]     = 164,
	[9]     = 167,
	[10]    = 170,
	[11]    = 173,
	[12]    = 177,
	[13]    = 182,
	[14]    = 187,
	[15]    = 192,
	[16]    = 199,
	[17]    = 206,
	[18]    = 214,
	[19]    = 223,
	[20]    = 233,
	[21]    = 244,
	[22]    = 260,
	[23]    = 271,
	[24]    = 288,
	[25]    = 307,
	[26]    = 327,
	[27]    = 350,
	[28]    = 376,
	[29]    = 407,
	[30]    = 456,
	[31]    = 575,
};

const int dbm2apc_gsm900_max = ARRAY_SIZE(dbm2apc_gsm900) - 1;