blob: f7a29a003d4d5a79cec1499279f376c6c50c6968 [file] [log] [blame]
Philipp Maier40def492017-12-16 03:42:15 +07001#pragma once
2
3#include <stdint.h>
4#include <stdbool.h>
5
6#include <osmocom/codec/codec.h>
7
8/* Codec independent ECU state */
9struct osmo_ecu_fr_state {
10 bool subsequent_lost_frame;
11 uint8_t frame_backup[GSM_FR_BYTES];
12};
13
14void osmo_ecu_fr_reset(struct osmo_ecu_fr_state *state, uint8_t *frame);
15int osmo_ecu_fr_conceal(struct osmo_ecu_fr_state *state, uint8_t *frame);