gsm0503_amr_dtx.h
Go to the documentation of this file.
#pragma once
#include <stdint.h>
#include <osmocom/core/defs.h>
#include <osmocom/core/bits.h>
enum gsm0503_amr_dtx_frames {
AMR_OTHER,
AFS_SID_FIRST,
AFS_SID_UPDATE,
AFS_SID_UPDATE_CN,
AFS_ONSET,
AHS_SID_UPDATE,
AHS_SID_UPDATE_CN,
AHS_SID_FIRST_P1,
AHS_SID_FIRST_P2,
AHS_ONSET,
AHS_SID_FIRST_INH,
AHS_SID_UPDATE_INH,
};
extern const struct value_string gsm0503_amr_dtx_frame_names[];
static inline const char *gsm0503_amr_dtx_frame_name(enum gsm0503_amr_dtx_frames frame)
{
return get_value_string(gsm0503_amr_dtx_frame_names, frame);
}
enum gsm0503_amr_dtx_frames gsm0503_detect_afs_dtx_frame(int *n_errors, int *n_bits_total, const ubit_t *ubits);
enum gsm0503_amr_dtx_frames gsm0503_detect_ahs_dtx_frame(int *n_errors, int *n_bits_total, const ubit_t *ubits);
bits.h
defs.h
ubit_t
uint8_t ubit_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)
Detect FR AMR DTX frame in unmapped, deinterleaved frame bits.
Definition: gsm0503_amr_dtx.c:279
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)
Detect HR AMR DTX frame in unmapped, deinterleaved frame bits.
Definition: gsm0503_amr_dtx.c:298
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_amr_dtx_frame_names
const struct value_string gsm0503_amr_dtx_frame_names[]
Definition: gsm0503_amr_dtx.c:47
gsm0503_amr_dtx_frames
gsm0503_amr_dtx_frames
Definition: gsm0503_amr_dtx.h:16
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
get_value_string
const char * get_value_string(const struct value_string *vs, uint32_t val)
value_string