diff options
author | Philipp Maier <pmaier@sysmocom.de> | 2023-02-08 16:25:40 +0100 |
---|---|---|
committer | Philipp Maier <pmaier@sysmocom.de> | 2023-02-08 16:30:33 +0100 |
commit | 6622a97bfb760addbe8078f9541b75db2399e495 (patch) | |
tree | 9b485bffea221c1b2c54e74667834657975874ba | |
parent | 656f135ed0bb7bda2c3f5f99dcbe5d2f53a39968 (diff) |
e1_input: add define constant for full subslot (whole E1 timeslot)
The struct gsm_e1_subslot has a memeber e1_ts_ss, which describes the
I.460 subslot to use inside an E1 timeslot. This is usually just an
integer number (e.g. 0,1,2,3 for a line with 4 16kbps subslots). However
it is also possible to use no subslots at all. This is encoded by
setting e1_ts_ss to 0xff. When this magic number is used somewhere in
the code it is not immediately obvious what it means, so lets add a
define constant.
Change-Id: I62725420d1cb2803b87fe5aa5e6ca1f3740be9eb
Related: OS#5198
-rw-r--r-- | include/osmocom/abis/e1_input.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/osmocom/abis/e1_input.h b/include/osmocom/abis/e1_input.h index 8e7f20b..91bf181 100644 --- a/include/osmocom/abis/e1_input.h +++ b/include/osmocom/abis/e1_input.h @@ -148,12 +148,14 @@ struct e1inp_ts { struct msgb *pending_msg; }; +#define E1_SUBSLOT_FULL 0xff + struct gsm_e1_subslot { /* Number of E1 link */ uint8_t e1_nr; /* Number of E1 TS inside E1 link */ uint8_t e1_ts; - /* Sub-slot within the E1 TS, 0xff if full TS */ + /* Sub-slot within the E1 TS, 0xff (E1_SUBSLOT_FULL) if full TS */ uint8_t e1_ts_ss; }; |