FreeCalypso > hg > ice1-trau-tester
annotate libhr/tw_gsmhr.h @ 52:626180a15857 default tip
ater play-d144: emit E-data frames manually,
osmo_trau_frame_encode() is currently broken for this frame type
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Wed, 25 Sep 2024 06:40:43 +0000 |
parents | e1eabf554a75 |
children |
rev | line source |
---|---|
40
e1eabf554a75
libhr: small subset of WIP libgsmhr1
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1 /* |
e1eabf554a75
libhr: small subset of WIP libgsmhr1
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
2 * This header file is a reduced subset version of <tw_gsmhr.h> |
e1eabf554a75
libhr: small subset of WIP libgsmhr1
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
3 * from work-in-progress libgsmhr1, reduced to just the few functions |
e1eabf554a75
libhr: small subset of WIP libgsmhr1
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
4 * needed for itt-ater-8. |
e1eabf554a75
libhr: small subset of WIP libgsmhr1
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
5 */ |
e1eabf554a75
libhr: small subset of WIP libgsmhr1
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
6 |
e1eabf554a75
libhr: small subset of WIP libgsmhr1
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
7 #pragma once |
e1eabf554a75
libhr: small subset of WIP libgsmhr1
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
8 |
e1eabf554a75
libhr: small subset of WIP libgsmhr1
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
9 #include <stdint.h> |
e1eabf554a75
libhr: small subset of WIP libgsmhr1
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
10 |
e1eabf554a75
libhr: small subset of WIP libgsmhr1
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
11 #define GSMHR_NUM_PARAMS 18 /* actual codec parameters */ |
e1eabf554a75
libhr: small subset of WIP libgsmhr1
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
12 #define GSMHR_NUM_PARAMS_ENC 20 /* output from the encoder */ |
e1eabf554a75
libhr: small subset of WIP libgsmhr1
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
13 #define GSMHR_NUM_PARAMS_DEC 22 /* input to the decoder */ |
e1eabf554a75
libhr: small subset of WIP libgsmhr1
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
14 |
e1eabf554a75
libhr: small subset of WIP libgsmhr1
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
15 #define GSMHR_FRAME_LEN_RPF 14 /* raw packed format */ |
e1eabf554a75
libhr: small subset of WIP libgsmhr1
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
16 #define GSMHR_FRAME_LEN_5993 15 /* RFC 5993 and TW-TS-002 */ |
e1eabf554a75
libhr: small subset of WIP libgsmhr1
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
17 |
e1eabf554a75
libhr: small subset of WIP libgsmhr1
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
18 /* the few functions we've imported from WIP libgsmhr1 */ |
e1eabf554a75
libhr: small subset of WIP libgsmhr1
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
19 |
e1eabf554a75
libhr: small subset of WIP libgsmhr1
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
20 void gsmhr_pack_ts101318(const int16_t *param, uint8_t *payload); |
e1eabf554a75
libhr: small subset of WIP libgsmhr1
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
21 int gsmhr_check_common_params(const int16_t *params); |
e1eabf554a75
libhr: small subset of WIP libgsmhr1
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
22 int gsmhr_check_decoder_params(const int16_t *params); |