summaryrefslogtreecommitdiffstats
path: root/src/target/firmware/include/rffe.h
blob: a21d183f6266c0f6bbbaf267917df80f38573b10 (plain) (blame)
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 <osmocom/gsm/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