libosmocoding 1.13.1.1-afb4 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
16 enum gsm0503_amr_dtx_frames {
17 AMR_OTHER,
18 AFS_SID_FIRST,
19 AFS_SID_UPDATE,
20 AFS_SID_UPDATE_CN,
21 AFS_ONSET,
22 AHS_SID_UPDATE,
23 AHS_SID_UPDATE_CN,
24 AHS_SID_FIRST_P1,
25 AHS_SID_FIRST_P2,
26 AHS_ONSET,
27 AHS_SID_FIRST_INH,
28 AHS_SID_UPDATE_INH,
29};
30
31 extern const struct value_string gsm0503_amr_dtx_frame_names[];
32 static inline const char *gsm0503_amr_dtx_frame_name(enum gsm0503_amr_dtx_frames frame)
33{
34 return get_value_string(gsm0503_amr_dtx_frame_names, frame);
35}
36
37 enum 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");
39 enum 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
42 enum gsm0503_amr_dtx_frames gsm0503_detect_afs_dtx_frame2(int *n_errors, int *n_bits_total,
43 int *mode_id, const sbit_t *sbits);
44 enum 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
bits.h
defs.h
ubit_t
uint8_t ubit_t
sbit_t
int8_t sbit_t
gsm0503_detect_afs_dtx_frame
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
gsm0503_detect_ahs_dtx_frame
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
gsm0503_amr_dtx_frame_name
static const char * gsm0503_amr_dtx_frame_name(enum gsm0503_amr_dtx_frames frame)
Definition: gsm0503_amr_dtx.h:32
gsm0503_detect_ahs_dtx_frame2
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
gsm0503_amr_dtx_frame_names
const struct value_string gsm0503_amr_dtx_frame_names[]
Definition: gsm0503_amr_dtx.c:49
gsm0503_amr_dtx_frames
gsm0503_amr_dtx_frames
Definition: gsm0503_amr_dtx.h:16
gsm0503_detect_afs_dtx_frame2
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
@ AHS_SID_FIRST_P2
Definition: gsm0503_amr_dtx.h:25
AHS_ONSET
@ AHS_ONSET
Definition: gsm0503_amr_dtx.h:26
AHS_SID_UPDATE_CN
@ AHS_SID_UPDATE_CN
Definition: gsm0503_amr_dtx.h:23
AHS_SID_FIRST_INH
@ AHS_SID_FIRST_INH
Definition: gsm0503_amr_dtx.h:27
AHS_SID_FIRST_P1
@ AHS_SID_FIRST_P1
Definition: gsm0503_amr_dtx.h:24
AFS_SID_FIRST
@ AFS_SID_FIRST
Definition: gsm0503_amr_dtx.h:18
AHS_SID_UPDATE_INH
@ AHS_SID_UPDATE_INH
Definition: gsm0503_amr_dtx.h:28
AFS_SID_UPDATE_CN
@ AFS_SID_UPDATE_CN
Definition: gsm0503_amr_dtx.h:20
AFS_ONSET
@ AFS_ONSET
Definition: gsm0503_amr_dtx.h:21
AHS_SID_UPDATE
@ AHS_SID_UPDATE
Definition: gsm0503_amr_dtx.h:22
AMR_OTHER
@ AMR_OTHER
Definition: gsm0503_amr_dtx.h:17
AFS_SID_UPDATE
@ AFS_SID_UPDATE
Definition: gsm0503_amr_dtx.h:19
OSMO_DEPRECATED
#define OSMO_DEPRECATED(text)
get_value_string
const char * get_value_string(const struct value_string *vs, uint32_t val)
value_string