annotate libhr/tw_gsmhr.h @ 40:e1eabf554a75

libhr: small subset of WIP libgsmhr1
author Mychaela Falconia <falcon@freecalypso.org>
date Fri, 30 Aug 2024 16:41:56 +0000
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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);