diff 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
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/libhr/tw_gsmhr.h	Fri Aug 30 16:41:56 2024 +0000
@@ -0,0 +1,22 @@
+/*
+ * This header file is a reduced subset version of <tw_gsmhr.h>
+ * from work-in-progress libgsmhr1, reduced to just the few functions
+ * needed for itt-ater-8.
+ */
+
+#pragma once
+
+#include <stdint.h>
+
+#define	GSMHR_NUM_PARAMS	18	/* actual codec parameters */
+#define	GSMHR_NUM_PARAMS_ENC	20	/* output from the encoder */
+#define	GSMHR_NUM_PARAMS_DEC	22	/* input to the decoder */
+
+#define	GSMHR_FRAME_LEN_RPF	14	/* raw packed format */
+#define	GSMHR_FRAME_LEN_5993	15	/* RFC 5993 and TW-TS-002 */
+
+/* the few functions we've imported from WIP libgsmhr1 */
+
+void gsmhr_pack_ts101318(const int16_t *param, uint8_t *payload);
+int gsmhr_check_common_params(const int16_t *params);
+int gsmhr_check_decoder_params(const int16_t *params);