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