aboutsummaryrefslogtreecommitdiffstats
path: root/include/osmo-bts/pcu_if.h
blob: 298c1dcc62d924e53f833b96c6b68a7cc3aad32c (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
#ifndef _PCU_IF_H
#define _PCU_IF_H

#define PCU_SOCK_DEFAULT	"/tmp/pcu_bts"

extern int pcu_direct;
extern int pcu_start_meas_flags;

int pcu_tx_info_ind(void);
int pcu_tx_rts_req(struct gsm_bts_trx_ts *ts, uint8_t is_ptcch, uint32_t fn,
	uint16_t arfcn, uint8_t block_nr);
int pcu_tx_data_ind(struct gsm_bts_trx_ts *ts, uint8_t is_ptcch, uint32_t fn,
	uint16_t arfcn, uint8_t block_nr, uint8_t *data, uint8_t len,
		    int8_t rssi, uint16_t ber10k, int16_t bto, int16_t lqual);
int pcu_tx_rach_ind(struct gsm_bts *bts, int16_t qta, uint16_t ra, uint32_t fn,
	uint8_t is_11bit, enum ph_burst_type burst_type);
int pcu_tx_time_ind(uint32_t fn);
int pcu_tx_pag_req(const uint8_t *identity_lv, uint8_t chan_needed);
int pcu_tx_pch_data_cnf(uint32_t fn, uint8_t *data, uint8_t len);

int pcu_sock_init(const char *path);
void pcu_sock_exit(void);

bool pcu_connected(void);

int  pcu_tx_nm_start_meas(struct gsm_bts *bts, uint8_t meas_id, uint8_t ack_flag);
int  pcu_tx_nm_meas_res_req(struct gsm_bts *bts, uint8_t meas_id);
int  pcu_tx_nm_stop_meas(struct gsm_bts *bts, uint8_t meas_id);

#endif /* _PCU_IF_H */