950e597ec84658bb08664abd5ffc186b777b49f2
[osmocom-bb.git] / src / target / firmware / include / rffe.h
1 #ifndef _RFFE_H
2 #define _RFFE_H
3
4 #include <osmocore/gsm_utils.h>
5
6 extern const uint8_t system_inherent_gain;
7
8 /* initialize RF Frontend */
9 void rffe_init(void);
10
11 /* switch RF Frontend Mode */
12 void rffe_mode(enum gsm_band band, int tx);
13
14 /* get current gain of RF frontend (anything between antenna and baseband in dBm */
15 uint8_t rffe_get_gain(void);
16
17 void rffe_set_gain(int16_t exp_inp, int16_t target_bb);
18
19 #endif