aboutsummaryrefslogtreecommitdiffstats
path: root/src/osmo-bts-sysmo/utils.h
blob: 85a5e8803df1d8c5e8b11be74d1724a6f852516c (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
#ifndef SYSMOBTS_UTILS_H
#define SYSMOBTS_UTILS_H

#include <stdint.h>
#include "femtobts.h"

struct gsm_bts_trx;

int band_femto2osmo(GsmL1_FreqBand_t band);

int sysmobts_select_femto_band(struct gsm_bts_trx *trx, uint16_t arfcn);

int sysmobts_get_nominal_power(struct gsm_bts_trx *trx);

int sysmobts_get_power_trx(struct gsm_bts_trx *trx);

struct msgb;

enum manuf_type_id {
	IPACCESS_MANUF_ID,
	OSMOCOM_MANUF_ID,
};

static const char osmocom_magic[] = "org.osmocom";
static const char ipaccess_magic[] = "com.ipaccess";

int add_manufacturer_id_label(struct msgb *msg, int manuf_type_id);

void prepend_oml_ipa_header(struct msgb *msg);

int check_oml_msg(struct msgb *msg);
#endif