summaryrefslogtreecommitdiffstats
path: root/src/target/firmware/include/rffe.h
blob: 950e597ec84658bb08664abd5ffc186b777b49f2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#ifndef _RFFE_H
#define _RFFE_H

#include <osmocore/gsm_utils.h>

extern const uint8_t system_inherent_gain;

/* initialize RF Frontend */
void rffe_init(void);

/* switch RF Frontend Mode */
void rffe_mode(enum gsm_band band, int tx);

/* get current gain of RF frontend (anything between antenna and baseband in dBm */
uint8_t rffe_get_gain(void);

void rffe_set_gain(int16_t exp_inp, int16_t target_bb);

#endif