aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/Makefile.am1
-rw-r--r--include/osmocom/codec/ecu.h15
2 files changed, 16 insertions, 0 deletions
diff --git a/include/Makefile.am b/include/Makefile.am
index 09f5ca65..f95d90c7 100644
--- a/include/Makefile.am
+++ b/include/Makefile.am
@@ -1,6 +1,7 @@
BUILT_SOURCES = osmocom/gsm/gsm0503.h
nobase_include_HEADERS = \
+ osmocom/codec/ecu.h \
osmocom/codec/codec.h \
osmocom/codec/gsm610_bits.h \
osmocom/core/application.h \
diff --git a/include/osmocom/codec/ecu.h b/include/osmocom/codec/ecu.h
new file mode 100644
index 00000000..f7a29a00
--- /dev/null
+++ b/include/osmocom/codec/ecu.h
@@ -0,0 +1,15 @@
+#pragma once
+
+#include <stdint.h>
+#include <stdbool.h>
+
+#include <osmocom/codec/codec.h>
+
+/* Codec independent ECU state */
+struct osmo_ecu_fr_state {
+ bool subsequent_lost_frame;
+ uint8_t frame_backup[GSM_FR_BYTES];
+};
+
+void osmo_ecu_fr_reset(struct osmo_ecu_fr_state *state, uint8_t *frame);
+int osmo_ecu_fr_conceal(struct osmo_ecu_fr_state *state, uint8_t *frame);