diff options
author | Jacob Erlbeck <jerlbeck@sysmocom.de> | 2016-02-03 18:31:19 +0100 |
---|---|---|
committer | Jacob Erlbeck <jerlbeck@sysmocom.de> | 2016-02-08 00:45:39 +0100 |
commit | fbd82e4e9f38ed6885e94ccf8d0297bba65b50de (patch) | |
tree | 86525081883cdc40473bdb0130cd1ba170e92882 /src/rlc.h | |
parent | b55f31373554394092bb923acca723cc7808cd49 (diff) |
rlc: Add gprs_rlc_mcs_cps_decode
To access EGPRS data blocks, the optional padding must be taken into
account. Whether padding has been used must be dervied from the CPS
field in the header of the RLC EGPRS data message.
Add this function to decode the CPS value and extract that
information.
Sponsored-by: On-Waves ehf
Diffstat (limited to 'src/rlc.h')
-rw-r--r-- | src/rlc.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -109,6 +109,8 @@ void gprs_rlc_data_block_info_init(struct gprs_rlc_data_block_info *rdbi, GprsCodingScheme cs, bool with_padding); unsigned int gprs_rlc_mcs_cps(GprsCodingScheme cs, int punct, int punct2, int with_padding); +void gprs_rlc_mcs_cps_decode(unsigned int cps, GprsCodingScheme cs, + int *punct, int *punct2, int *with_padding); /* * I hold the currently transferred blocks and will provide |