1 #ifndef osmocom_l1ctl_h
2 #define osmocom_l1ctl_h
4 #include <osmocore/msgb.h>
5 #include <osmocom/bb/common/osmocom_data.h>
9 /* Receive incoming data from L1 using L1CTL format */
10 int l1ctl_recv(struct osmocom_ms *ms, struct msgb *msg);
12 /* Transmit L1CTL_DATA_REQ */
13 int tx_ph_data_req(struct osmocom_ms *ms, struct msgb *msg, uint8_t chan_nr,
16 /* Transmit L1CTL_PARAM_REQ */
17 int l1ctl_tx_ph_param_req(struct osmocom_ms *ms, uint8_t ta, uint8_t tx_power);
19 /* Transmit L1CTL_RACH_REQ */
20 int tx_ph_rach_req(struct osmocom_ms *ms, uint8_t ra, uint8_t fn51,
23 /* Transmit L1CTL_DM_EST_REQ */
24 int tx_ph_dm_est_req_h0(struct osmocom_ms *ms, uint16_t band_arfcn,
25 uint8_t chan_nr, uint8_t tsc);
26 int tx_ph_dm_est_req_h1(struct osmocom_ms *ms, uint8_t maio, uint8_t hsn,
27 uint16_t *ma, uint8_t ma_len, uint8_t chan_nr, uint8_t tsc);
29 /* Transmit L1CTL_DM_REL_REQ */
30 int tx_ph_dm_rel_req(struct osmocom_ms *ms);
32 /* Transmit FBSB_REQ */
33 int l1ctl_tx_fbsb_req(struct osmocom_ms *ms, uint16_t arfcn,
34 uint8_t flags, uint16_t timeout, uint8_t sync_info_idx,
37 int l1ctl_tx_ccch_mode_req(struct osmocom_ms *ms, uint8_t ccch_mode);
39 int l1ctl_tx_echo_req(struct osmocom_ms *ms, unsigned int len);
41 /* Transmit L1CTL_RESET_REQ */
42 int l1ctl_tx_reset_req(struct osmocom_ms *ms, uint8_t type);
44 /* Transmit L1CTL_PM_REQ */
45 int l1ctl_tx_pm_req_range(struct osmocom_ms *ms, uint16_t arfcn_from,