diff options
author | Harald Welte <laforge@gnumonks.org> | 2015-09-22 16:41:54 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2015-09-22 16:41:54 +0200 |
commit | f1fb0fa3af174c605f60458388bba61ef4f40fa8 (patch) | |
tree | 006e46f78dee0ac14ffd321e0bfae344d8160096 /src/osmo-bts-trx/gsm0503_coding.h | |
parent | 329085a8ff2c1162a32eb617068fa5614efcde06 (diff) | |
parent | caa648d92e48a05e676e87b48c21cb0b151c9b4e (diff) |
Merge branch '201509-trx-rebase'0.4.0
Diffstat (limited to 'src/osmo-bts-trx/gsm0503_coding.h')
-rw-r--r-- | src/osmo-bts-trx/gsm0503_coding.h | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/src/osmo-bts-trx/gsm0503_coding.h b/src/osmo-bts-trx/gsm0503_coding.h new file mode 100644 index 00000000..a454d8f4 --- /dev/null +++ b/src/osmo-bts-trx/gsm0503_coding.h @@ -0,0 +1,53 @@ +/* (C) 2013 by Andreas Eversberg <jolly@eversberg.eu> + * (C) 2015 by Alexander Chemeris <Alexander.Chemeris@fairwaves.co> + * + * All Rights Reserved + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation; either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + * + */ + +#ifndef _0503_CODING_H +#define _0503_CODING_H + +int xcch_decode(uint8_t *l2_data, sbit_t *bursts, + int *n_errors, int *n_bits_total); +int xcch_encode(ubit_t *bursts, uint8_t *l2_data); +int pdtch_decode(uint8_t *l2_data, sbit_t *bursts, uint8_t *usf_p, + int *n_errors, int *n_bits_total); +int pdtch_encode(ubit_t *bursts, uint8_t *l2_data, uint8_t l2_len); +int tch_fr_decode(uint8_t *tch_data, sbit_t *bursts, int net_order, + int efr, int *n_errors, int *n_bits_total); +int tch_fr_encode(ubit_t *bursts, uint8_t *tch_data, int len, int net_order); +int tch_hr_decode(uint8_t *tch_data, sbit_t *bursts, int odd, + int *n_errors, int *n_bits_total); +int tch_hr_encode(ubit_t *bursts, uint8_t *tch_data, int len); +int tch_afs_decode(uint8_t *tch_data, sbit_t *bursts, int codec_mode_req, + uint8_t *codec, int codecs, uint8_t *ft, uint8_t *cmr, + int *n_errors, int *n_bits_total); +int tch_afs_encode(ubit_t *bursts, uint8_t *tch_data, int len, + int codec_mode_req, uint8_t *codec, int codecs, uint8_t ft, + uint8_t cmr); +int tch_ahs_decode(uint8_t *tch_data, sbit_t *bursts, int odd, + int codec_mode_req, uint8_t *codec, int codecs, uint8_t *ft, + uint8_t *cmr, int *n_errors, int *n_bits_total); +int tch_ahs_encode(ubit_t *bursts, uint8_t *tch_data, int len, + int codec_mode_req, uint8_t *codec, int codecs, uint8_t ft, + uint8_t cmr); +int rach_decode(uint8_t *ra, sbit_t *burst, uint8_t bsic); +int rach_encode(ubit_t *burst, uint8_t *ra, uint8_t bsic); +int sch_decode(uint8_t *sb_info, sbit_t *burst); +int sch_encode(ubit_t *burst, uint8_t *sb_info); + +#endif /* _0503_CODING_H */ |