blob: ec0a2f8d43ecc3c66b837d94f220115b7a08269b [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
Harald Weltec144f3a2019-08-01 20:02:40 +020014void osmo_ecu_fr_reset(struct osmo_ecu_fr_state *state, const uint8_t *frame);
Philipp Maier40def492017-12-16 03:42:15 +070015int osmo_ecu_fr_conceal(struct osmo_ecu_fr_state *state, uint8_t *frame);