summaryrefslogtreecommitdiffstats
path: root/src/host/layer23/include/osmocom/l1ctl.h
diff options
context:
space:
mode:
authorHarald Welte2010-03-03 14:24:05 +0100
committerHarald Welte2010-03-03 14:25:21 +0100
commitd4e118a7a059a9d675d0d8a8ea75fdc88f43afb7 (patch)
treeb685489a7e6f68f829e30b58602ce622cd5adc0e /src/host/layer23/include/osmocom/l1ctl.h
parentlayer2: Rename layer2.[ch] to l1ctl.[ch] as they only remote-control L1 (diff)
downloadosmocom-d4e118a7a059a9d675d0d8a8ea75fdc88f43afb7.tar.gz
osmocom-d4e118a7a059a9d675d0d8a8ea75fdc88f43afb7.tar.xz
osmocom-d4e118a7a059a9d675d0d8a8ea75fdc88f43afb7.zip
Rename 'layer2' program to 'layer23' program
Diffstat (limited to 'src/host/layer23/include/osmocom/l1ctl.h')
-rw-r--r--src/host/layer23/include/osmocom/l1ctl.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/host/layer23/include/osmocom/l1ctl.h b/src/host/layer23/include/osmocom/l1ctl.h
new file mode 100644
index 0000000..0d5cba6
--- /dev/null
+++ b/src/host/layer23/include/osmocom/l1ctl.h
@@ -0,0 +1,25 @@
+#ifndef osmocom_l1ctl_h
+#define osmocom_l1ctl_h
+
+#include <osmocore/msgb.h>
+#include <osmocom/osmocom_data.h>
+
+struct osmocom_ms;
+
+/* Receive incoming data from L1 using L1CTL format */
+int l1ctl_recv(struct osmocom_ms *ms, struct msgb *msg);
+
+/* Transmit L1CTL_DATA_REQ */
+int tx_ph_data_req(struct osmocom_ms *ms, struct msgb *msg,
+ uint8_t chan_nr, uint8_t link_id);
+
+/* Transmit L1CTL_RACH_REQ */
+int tx_ph_rach_req(struct osmocom_ms *ms);
+
+/* Transmit L1CTL_DM_EST_REQ */
+int tx_ph_dm_est_req(struct osmocom_ms *ms, uint16_t band_arfcn, uint8_t chan_nr);
+
+extern int osmo_send_l1(struct osmocom_ms *ms, struct msgb *msg);
+
+
+#endif