aboutsummaryrefslogtreecommitdiffstats
path: root/src/osmo-bts-trx/trx_if.h
diff options
context:
space:
mode:
authorAndreas Eversberg <jolly@eversberg.eu>2013-02-05 11:45:28 +0100
committerHarald Welte <laforge@gnumonks.org>2015-09-22 16:41:24 +0200
commitacc71ffb4b61b3354bbb2fa14981e4e6a46946e6 (patch)
treeb32d0f93b6055283a74d70e7c777907e22745739 /src/osmo-bts-trx/trx_if.h
parentc64fa4f88818a63bada0e34d179fd04319de47e1 (diff)
TRX: Introduce osmobts-trx, a layer 1 implementation for OpenBTS tranceivers
The code is quite complete, TCH and PDCH channels are not yet tested.
Diffstat (limited to 'src/osmo-bts-trx/trx_if.h')
-rw-r--r--src/osmo-bts-trx/trx_if.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/osmo-bts-trx/trx_if.h b/src/osmo-bts-trx/trx_if.h
new file mode 100644
index 00000000..656bd6a7
--- /dev/null
+++ b/src/osmo-bts-trx/trx_if.h
@@ -0,0 +1,29 @@
+#ifndef TRX_IF_H
+#define TRX_IF_H
+
+extern int tranceiver_available;
+extern const char *tranceiver_ip;
+
+struct trx_ctrl_msg {
+ struct llist_head list;
+ char cmd[128];
+ int cmd_len;
+};
+
+int trx_if_cmd_poweroff(struct trx_l1h *l1h);
+int trx_if_cmd_poweron(struct trx_l1h *l1h);
+int trx_if_cmd_settsc(struct trx_l1h *l1h, uint8_t tsc);
+int trx_if_cmd_setbsic(struct trx_l1h *l1h, uint8_t bsic);
+int trx_if_cmd_setrxgain(struct trx_l1h *l1h, int db);
+int trx_if_cmd_setpower(struct trx_l1h *l1h, int db);
+int trx_if_cmd_setmaxdly(struct trx_l1h *l1h, int dly);
+int trx_if_cmd_setslot(struct trx_l1h *l1h, uint8_t tn, uint8_t type);
+int trx_if_cmd_rxtune(struct trx_l1h *l1h, uint16_t arfcn);
+int trx_if_cmd_txtune(struct trx_l1h *l1h, uint16_t arfcn);
+int trx_if_data(struct trx_l1h *l1h, uint8_t tn, uint32_t fn, uint8_t pwr,
+ const ubit_t *bits);
+int trx_if_open(struct trx_l1h *l1h);
+void trx_if_flush(struct trx_l1h *l1h);
+void trx_if_close(struct trx_l1h *l1h);
+
+#endif /* TRX_IF_H */