libosmocoding 1.10.0.27-aec32
Osmocom GSM/GPRS/EGPRS L1 channel coding library
gsm0503_amr_dtx.h
Go to the documentation of this file.
1
5#pragma once
6
7#include <stdint.h>
8
9#include <osmocom/core/defs.h>
10#include <osmocom/core/bits.h>
11
29};
30
31extern const struct value_string gsm0503_amr_dtx_frame_names[];
32static inline const char *gsm0503_amr_dtx_frame_name(enum gsm0503_amr_dtx_frames frame)
33{
35}
36
37enum gsm0503_amr_dtx_frames gsm0503_detect_afs_dtx_frame(int *n_errors, int *n_bits_total, const ubit_t *ubits)
38 OSMO_DEPRECATED("Use gsm0503_detect_afs_dtx_frame2() instead");
39enum gsm0503_amr_dtx_frames gsm0503_detect_ahs_dtx_frame(int *n_errors, int *n_bits_total, const ubit_t *ubits)
40 OSMO_DEPRECATED("Use gsm0503_detect_ahs_dtx_frame2() instead");
41
42enum gsm0503_amr_dtx_frames gsm0503_detect_afs_dtx_frame2(int *n_errors, int *n_bits_total,
43 int *mode_id, const sbit_t *sbits);
44enum gsm0503_amr_dtx_frames gsm0503_detect_ahs_dtx_frame2(int *n_errors, int *n_bits_total,
45 int *mode_id, const sbit_t *sbits);
46
uint8_t ubit_t
int8_t sbit_t
enum gsm0503_amr_dtx_frames gsm0503_detect_afs_dtx_frame(int *n_errors, int *n_bits_total, const ubit_t *ubits) OSMO_DEPRECATED("Use gsm0503_detect_afs_dtx_frame2() instead")
Detect FR AMR DTX frame in unmapped, deinterleaved frame bits.
Definition: gsm0503_amr_dtx.c:303
enum gsm0503_amr_dtx_frames gsm0503_detect_ahs_dtx_frame(int *n_errors, int *n_bits_total, const ubit_t *ubits) OSMO_DEPRECATED("Use gsm0503_detect_ahs_dtx_frame2() instead")
Detect HR AMR DTX frame in unmapped, deinterleaved frame bits.
Definition: gsm0503_amr_dtx.c:347
static const char * gsm0503_amr_dtx_frame_name(enum gsm0503_amr_dtx_frames frame)
Definition: gsm0503_amr_dtx.h:32
enum gsm0503_amr_dtx_frames gsm0503_detect_ahs_dtx_frame2(int *n_errors, int *n_bits_total, int *mode_id, const sbit_t *sbits)
Detect HR AMR DTX frame in unmapped, deinterleaved frame bits.
Definition: gsm0503_amr_dtx.c:320
const struct value_string gsm0503_amr_dtx_frame_names[]
Definition: gsm0503_amr_dtx.c:49
gsm0503_amr_dtx_frames
Definition: gsm0503_amr_dtx.h:16
enum gsm0503_amr_dtx_frames gsm0503_detect_afs_dtx_frame2(int *n_errors, int *n_bits_total, int *mode_id, const sbit_t *sbits)
Detect FR AMR DTX frame in unmapped, deinterleaved frame bits.
Definition: gsm0503_amr_dtx.c:282
@ AHS_SID_FIRST_P2
Definition: gsm0503_amr_dtx.h:25
@ AHS_ONSET
Definition: gsm0503_amr_dtx.h:26
@ AHS_SID_UPDATE_CN
Definition: gsm0503_amr_dtx.h:23
@ AHS_SID_FIRST_INH
Definition: gsm0503_amr_dtx.h:27
@ AHS_SID_FIRST_P1
Definition: gsm0503_amr_dtx.h:24
@ AFS_SID_FIRST
Definition: gsm0503_amr_dtx.h:18
@ AHS_SID_UPDATE_INH
Definition: gsm0503_amr_dtx.h:28
@ AFS_SID_UPDATE_CN
Definition: gsm0503_amr_dtx.h:20
@ AFS_ONSET
Definition: gsm0503_amr_dtx.h:21
@ AHS_SID_UPDATE
Definition: gsm0503_amr_dtx.h:22
@ AMR_OTHER
Definition: gsm0503_amr_dtx.h:17
@ AFS_SID_UPDATE
Definition: gsm0503_amr_dtx.h:19
#define OSMO_DEPRECATED(text)
const char * get_value_string(const struct value_string *vs, uint32_t val)