summaryrefslogtreecommitdiffstats
path: root/src/host/layer23/include/osmocom/osmocom_data.h
blob: 18c3c3c0736984239a9c2ade007715dba5fc1829 (plain) (blame)
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
33
34
35
36
37
38
39
40
41
42
43
44
45
#ifndef osmocom_data_h
#define osmocom_data_h

#include <osmocore/select.h>
#include <osmocore/gsm_utils.h>
#include <osmocore/write_queue.h>

#include <osmocom/lapdm.h>

struct osmocom_ms;

/* A layer2 entity */
struct osmol2_entity {
	struct lapdm_entity lapdm_dcch;
	struct lapdm_entity lapdm_acch;
	osmol2_cb_t msg_handler;
};

/* One Mobilestation for osmocom */
struct osmocom_ms {
	char name[32];
	struct write_queue wq;
	enum gsm_band band;
	uint16_t test_arfcn;

	struct osmol2_entity l2_entity;
};

enum osmobb_sig_subsys {
	SS_L1CTL,
};

enum osmobb_meas_sig {
	S_L1CTL_RESET,
	S_L1CTL_PM_RES,
	S_L1CTL_PM_DONE,
};

struct osmobb_meas_res {
	struct osmocom_ms *ms;
	uint16_t band_arfcn;
	uint8_t rx_lev;
};

#endif