summaryrefslogtreecommitdiffstats
path: root/src/host/layer23/include/osmocom
diff options
context:
space:
mode:
authorAndreas Eversberg <jolly@eversberg.eu>2011-12-14 09:37:50 +0100
committerAndreas Eversberg <jolly@eversberg.eu>2016-09-25 08:11:48 +0200
commit450a84eafc36e774045733c092a51aaa63bea862 (patch)
tree13bceb03c2ad123cc02db4c2ab9f7c445ade031a /src/host/layer23/include/osmocom
parent39f7b1595c33b7df16294f2a97e3b6a2abbfb170 (diff)
[HACK] Use display and keypad via L1CTL
This hack is just for demonstration.
Diffstat (limited to 'src/host/layer23/include/osmocom')
-rw-r--r--src/host/layer23/include/osmocom/bb/common/l1ctl.h2
-rw-r--r--src/host/layer23/include/osmocom/bb/common/osmocom_data.h6
-rw-r--r--src/host/layer23/include/osmocom/bb/ui/ui.h3
3 files changed, 10 insertions, 1 deletions
diff --git a/src/host/layer23/include/osmocom/bb/common/l1ctl.h b/src/host/layer23/include/osmocom/bb/common/l1ctl.h
index 3cf014e4..d05c64d8 100644
--- a/src/host/layer23/include/osmocom/bb/common/l1ctl.h
+++ b/src/host/layer23/include/osmocom/bb/common/l1ctl.h
@@ -77,4 +77,6 @@ int l1ctl_tx_neigh_pm_req(struct osmocom_ms *ms, int num, uint16_t *arfcn);
/* Transmit L1CTL_RINGER_REQ */
int l1ctl_tx_ringer_req(struct osmocom_ms *ms, uint8_t volume);
+int l1ctl_tx_display_req(struct osmocom_ms *ms, int x, int y, char *text);
+
#endif
diff --git a/src/host/layer23/include/osmocom/bb/common/osmocom_data.h b/src/host/layer23/include/osmocom/bb/common/osmocom_data.h
index 191fb96d..b69a8267 100644
--- a/src/host/layer23/include/osmocom/bb/common/osmocom_data.h
+++ b/src/host/layer23/include/osmocom/bb/common/osmocom_data.h
@@ -97,6 +97,7 @@ enum osmobb_l1ctl_sig {
S_L1CTL_TCH_MODE_CONF,
S_L1CTL_LOSS_IND,
S_L1CTL_NEIGH_PM_IND,
+ S_L1CTL_KEYPAD,
};
enum osmobb_global_sig {
@@ -134,4 +135,9 @@ struct osmobb_neigh_pm_ind {
uint8_t bsic;
};
+struct osmobb_keypad {
+ struct osmocom_ms *ms;
+ uint8_t key;
+};
+
#endif
diff --git a/src/host/layer23/include/osmocom/bb/ui/ui.h b/src/host/layer23/include/osmocom/bb/ui/ui.h
index 75e2fad7..b2bd26f6 100644
--- a/src/host/layer23/include/osmocom/bb/ui/ui.h
+++ b/src/host/layer23/include/osmocom/bb/ui/ui.h
@@ -3,7 +3,7 @@
#define UI_ROWS 8
#define UI_COLS 12
-#define UI_TARGET 0
+#define UI_TARGET 1
enum ui_key {
UI_KEY_0 = '0',
@@ -20,6 +20,7 @@ enum ui_key {
UI_KEY_HASH = '#',
UI_KEY_F1 = 1,
UI_KEY_F2 = 2,
+ UI_KEY_MENU = 25,
UI_KEY_PICKUP = 26,
UI_KEY_HANGUP = 27,
UI_KEY_UP = 28,