60 const uint8_t *frame,
unsigned int frame_bytes);
72 const uint8_t *frame,
unsigned int frame_bytes);
#define GSM_FR_BYTES
Definition: codec.h:12
int osmo_ecu_frame_in(struct osmo_ecu_state *st, bool bfi, const uint8_t *frame, unsigned int frame_bytes)
process a received frame a substitute/erroneous frame.
Definition: ecu.c:76
int osmo_ecu_frame_out(struct osmo_ecu_state *st, uint8_t *frame_out)
generate output data for a substitute/erroneous frame.
Definition: ecu.c:90
bool osmo_ecu_is_dtx_pause(struct osmo_ecu_state *st)
check if the current state of this ECU is a DTX pause.
Definition: ecu.c:102
struct osmo_ecu_state * osmo_ecu_init(void *ctx, enum osmo_ecu_codec codec)
initialize an ECU instance for given codec.
Definition: ecu.c:48
void osmo_ecu_fr_reset(struct osmo_ecu_fr_state *state, const uint8_t *frame) OSMO_DEPRECATED_OUTSIDE("Use generic ECU override ion layer instead")
To be called when a good frame is received.
Definition: ecu_fr_old.c:133
osmo_ecu_codec
Definition: ecu.h:20
@ OSMO_ECU_CODEC_FR
Definition: ecu.h:22
@ OSMO_ECU_CODEC_HR
Definition: ecu.h:21
@ _NUM_OSMO_ECU_CODECS
Definition: ecu.h:25
@ OSMO_ECU_CODEC_EFR
Definition: ecu.h:23
@ OSMO_ECU_CODEC_AMR
Definition: ecu.h:24
int osmo_ecu_fr_conceal(struct osmo_ecu_fr_state *state, uint8_t *frame) OSMO_DEPRECATED_OUTSIDE("Use generic ECU override ion layer instead")
To be called when a bad frame is received.
Definition: ecu_fr_old.c:147
int osmo_ecu_register(const struct osmo_ecu_ops *ops, enum osmo_ecu_codec codec)
register an ECU implementation for a given codec
Definition: ecu.c:118
void osmo_ecu_destroy(struct osmo_ecu_state *st)
destroy an ECU instance
Definition: ecu.c:58
#define OSMO_DEPRECATED_OUTSIDE(text)
uint8_t frame_backup[GSM_FR_BYTES]
Definition: ecu.h:12
bool subsequent_lost_frame
Definition: ecu.h:11
int(* frame_out)(struct osmo_ecu_state *st, uint8_t *frame_out)
Definition: ecu.h:73
void(* destroy)(struct osmo_ecu_state *)
Definition: ecu.h:70
int(* frame_in)(struct osmo_ecu_state *st, bool bfi, const uint8_t *frame, unsigned int frame_bytes)
Definition: ecu.h:71
bool(* is_dtx_pause)(struct osmo_ecu_state *st)
Definition: ecu.h:74
enum osmo_ecu_codec codec
Definition: ecu.h:48
uint8_t data[0]
Definition: ecu.h:49