aboutsummaryrefslogtreecommitdiffstats
path: root/src/osmo-bts-trx/loops.h
blob: 27b0ef231ba7cca02231cf089e4fc3034b89c8e3 (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
#ifndef _TRX_LOOPS_H
#define _TRX_LOOPS_H

/*
 * calibration of loops
 */

/* how much power levels do we raise/lower as maximum (1 level = 2 dB) */
#define MS_RAISE_MAX 4
#define MS_LOWER_MAX 1

/*
 * loops api
 */

extern int trx_ms_power_loop;
extern int8_t trx_target_rssi;
extern int trx_ta_loop;

int trx_loop_sacch_input(struct trx_l1h *l1h, uint8_t chan_nr,
	struct trx_chan_state *chan_state, int8_t rssi, float toa);

int trx_loop_sacch_clock(struct trx_l1h *l1h, uint8_t chan_nr,
        struct trx_chan_state *chan_state);

int trx_loop_amr_input(struct trx_l1h *l1h, uint8_t chan_nr,
        struct trx_chan_state *chan_state, float ber);

int trx_loop_amr_set(struct trx_chan_state *chan_state, int loop);

#endif /* _TRX_LOOPS_H */