diff options
author | Jacob Erlbeck <jerlbeck@sysmocom.de> | 2016-01-11 11:15:45 +0100 |
---|---|---|
committer | Jacob Erlbeck <jerlbeck@sysmocom.de> | 2016-02-02 17:06:31 +0100 |
commit | 64a16384c98552cf97b8bdb6923ba353c3689cbe (patch) | |
tree | 449d4d06b58a225741fe07661010d3b269386c48 /src/rlc.h | |
parent | 92ae6d19c909296e77e40dd951939b3a01d61391 (diff) |
edge: Add init functions for gprs_rlc_data_info
Add the functions gprs_rlc_data_info_init_dl/ul which initialise a
gprs_rlc_data_info structure depending on the coding scheme. The
fields num_data_blocks, data_offs_bits, cs, and the data_blocks are
valid after this call. The other fields are set to 0.
The data blocks are initialised to the correct data_len, e == 1
(no extension header field), cv == 15 (not a final block). The other
data block fields are set to 0.
The gprs_rlc_data_block_info can also be initialised separately
by using the gprs_rlc_data_block_info_init function.
Sponsored-by: On-Waves ehf
Diffstat (limited to 'src/rlc.h')
-rw-r--r-- | src/rlc.h | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -99,6 +99,13 @@ struct gprs_rlc_data { GprsCodingScheme cs; }; +void gprs_rlc_data_info_init_dl(struct gprs_rlc_data_info *rlc, + GprsCodingScheme cs); +void gprs_rlc_data_info_init_ul(struct gprs_rlc_data_info *rlc, + GprsCodingScheme cs); +void gprs_rlc_data_block_info_init(struct gprs_rlc_data_block_info *rdbi, + GprsCodingScheme cs); + /* * I hold the currently transferred blocks and will provide * the routines to manipulate these arrays. |