diff options
author | Harald Welte <laforge@osmocom.org> | 2023-05-08 06:22:21 +0200 |
---|---|---|
committer | laforge <laforge@osmocom.org> | 2023-05-22 10:33:10 +0000 |
commit | 1192687620eaed4ebc400a5041d2810a552b26c0 (patch) | |
tree | 184358dfe16aa85f3fade808e5b33d623ede5ea2 /include | |
parent | 242ef1bdea7d05c58cbb02d35291933901f6e849 (diff) |
Add osmo_gsm48_si1ro_nch_pos_{encode,decode} functions
These functions encode/decode the NCH position field within the SI1
rest octets. This is used within ASCI (VBS/VGCS).
Change-Id: I24a0095ac6eee0197f9d9ef9895c7795df6cdc49
Related: OS#5781
Diffstat (limited to 'include')
-rw-r--r-- | include/osmocom/gsm/gsm48_rest_octets.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/osmocom/gsm/gsm48_rest_octets.h b/include/osmocom/gsm/gsm48_rest_octets.h index c8d63b21..cdb2e807 100644 --- a/include/osmocom/gsm/gsm48_rest_octets.h +++ b/include/osmocom/gsm/gsm48_rest_octets.h @@ -13,6 +13,9 @@ /* generate SI1 rest octets */ int osmo_gsm48_rest_octets_si1_encode(uint8_t *data, uint8_t *nch_pos, int is1800_net); +int osmo_gsm48_si1ro_nch_pos_decode(uint8_t value, uint8_t *num_blocks, uint8_t *first_block); +int osmo_gsm48_si1ro_nch_pos_encode(uint8_t num_blocks, uint8_t first_block); + int osmo_gsm48_rest_octets_si2quater_encode(uint8_t *data, uint8_t si2q_index, uint8_t si2q_count, const uint16_t *uarfcn_list, size_t *u_offset, size_t uarfcn_length, uint16_t *scramble_list, |