aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2018-10-02 21:22:18 +0200
committerPau Espin Pedrol <pespin@sysmocom.de>2018-10-03 12:10:43 +0200
commitb5cfc6b019dbb31ceb52e8747c422bbaa0f60ac9 (patch)
treec0a8033aadbc820fea0f5db2eafc04dd16849e23 /include
parentdd95eb64800945a564d45ccb8d74fcca6daf568e (diff)
ipaccess: Simplify handling of ipaccess e1line ts
Handle encoding specifics behind a macro to make code easier to understand and follow. Change-Id: Ibf251673bff95b7a0b066b19ef4dc6c0f94fff6b
Diffstat (limited to 'include')
-rw-r--r--include/osmocom/abis/e1_input.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/osmocom/abis/e1_input.h b/include/osmocom/abis/e1_input.h
index 79455e1..f9b4850 100644
--- a/include/osmocom/abis/e1_input.h
+++ b/include/osmocom/abis/e1_input.h
@@ -201,6 +201,8 @@ struct e1inp_line {
struct e1inp_driver *driver;
void *driver_data;
};
+#define e1inp_line_ipa_oml_ts(line) (&line->ts[0])
+#define e1inp_line_ipa_rsl_ts(line, trx_id) (&line->ts[1 + (trx_id)])
/* SS_L_INPUT signals */
enum e1inp_signal_input {