diff options
author | Max <msuraev@sysmocom.de> | 2018-02-07 20:44:31 +0100 |
---|---|---|
committer | Max <msuraev@sysmocom.de> | 2018-02-07 20:45:22 +0100 |
commit | 322cfc49427209e5b686e85c4e5f8eb08037819a (patch) | |
tree | 3b4efa65eaec17f1817198b3b7b8d26daa1f528c /include | |
parent | aa0f964ce23f9f0c5107e0bbf46166885c82f8d7 (diff) |
Add helper to get BCC from BSIC
Change-Id: Ib539a8739d53ab60d8fadffcef38152b82a28498
Related: OS#1854
Diffstat (limited to 'include')
-rw-r--r-- | include/osmo-bts/gsm_data_shared.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/osmo-bts/gsm_data_shared.h b/include/osmo-bts/gsm_data_shared.h index f694114a..6c1383fc 100644 --- a/include/osmo-bts/gsm_data_shared.h +++ b/include/osmo-bts/gsm_data_shared.h @@ -890,6 +890,8 @@ struct gsm_lchan *gsm_bts_get_cbch(struct gsm_bts *bts); int gsm_parse_reg(void *ctx, regex_t *reg, char **str, int argc, const char **argv) __attribute__ ((warn_unused_result)); +#define BSIC2BCC(bsic) ((bsic) & 0x3) + static inline uint8_t gsm_ts_tsc(const struct gsm_bts_trx_ts *ts) { if (ts->tsc != -1) |