summaryrefslogtreecommitdiffstats
path: root/include/osmocom/codec
diff options
context:
space:
mode:
Diffstat (limited to 'include/osmocom/codec')
-rw-r--r--include/osmocom/codec/ecu.h15
1 files changed, 15 insertions, 0 deletions
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);