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 | |
Harald Welte | c144f3a | 2019-08-01 20:02:40 +0200 | [diff] [blame] | 14 | void osmo_ecu_fr_reset(struct osmo_ecu_fr_state *state, const uint8_t *frame); |
Philipp Maier | 40def49 | 2017-12-16 03:42:15 +0700 | [diff] [blame] | 15 | int osmo_ecu_fr_conceal(struct osmo_ecu_fr_state *state, uint8_t *frame); |