aboutsummaryrefslogtreecommitdiffstats
path: root/include/osmo-bts/cbch.h
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2014-12-29 01:02:29 +0100
committerHarald Welte <laforge@gnumonks.org>2014-12-30 00:32:13 +0100
commit660116fb9d7b382808377274ae4aed7c45e980e3 (patch)
tree8924653d6c8dd69e0c93966c31152a9840fea357 /include/osmo-bts/cbch.h
parentb15d2c9d2f8ebe56672ab2191a4dc39d22fa0ab8 (diff)
CBCH: Implement CBCH block segmentation and RSL_MT_SMS_BC_CMD
* CBCH load indications are not yet sent * The queue length is not yet limited!
Diffstat (limited to 'include/osmo-bts/cbch.h')
-rw-r--r--include/osmo-bts/cbch.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/include/osmo-bts/cbch.h b/include/osmo-bts/cbch.h
new file mode 100644
index 00000000..b4ac409f
--- /dev/null
+++ b/include/osmo-bts/cbch.h
@@ -0,0 +1,16 @@
+#pragma once
+
+#include <osmocom/gsm/gsm_utils.h>
+#include <osmocom/gsm/protocol/gsm_08_58.h>
+
+#include <osmo-bts/gsm_data.h>
+#include <osmo-bts/bts.h>
+
+/* incoming SMS broadcast command from RSL */
+int bts_process_smscb_cmd(struct gsm_bts *bts,
+ struct rsl_ie_cb_cmd_type cmd_type,
+ uint8_t msg_len, const uint8_t *msg);
+
+/* call-back from bts model specific code when it wants to obtain a CBCH
+ * block for a given gsm_time. outbuf must have 23 bytes of space. */
+int bts_cbch_get(struct gsm_bts *bts, uint8_t *outbuf, struct gsm_time *g_time);