2011-09-09 20:32:45 +00:00
|
|
|
#ifndef _OSMO_BTS_AMR_H
|
|
|
|
#define _OSMO_BTS_AMR_H
|
|
|
|
|
|
|
|
#include <osmo-bts/gsm_data.h>
|
|
|
|
|
2014-07-24 19:24:29 +00:00
|
|
|
#define AMR_TOC_QBIT 0x04
|
|
|
|
#define AMR_CMR_NONE 0xF
|
|
|
|
|
2011-09-09 20:32:45 +00:00
|
|
|
void amr_log_mr_conf(int ss, int logl, const char *pfx,
|
|
|
|
struct amr_multirate_conf *amr_mrc);
|
|
|
|
|
|
|
|
int amr_parse_mr_conf(struct amr_multirate_conf *amr_mrc,
|
|
|
|
const uint8_t *mr_conf, unsigned int len);
|
2016-09-27 17:47:08 +00:00
|
|
|
void amr_set_mode_pref(uint8_t *data, const struct amr_multirate_conf *amr_mrc,
|
|
|
|
uint8_t cmi, uint8_t cmr);
|
2011-09-09 20:32:45 +00:00
|
|
|
unsigned int amr_get_initial_mode(struct gsm_lchan *lchan);
|
2022-04-12 10:55:52 +00:00
|
|
|
void amr_init_mr_conf_def(struct gsm_lchan *lchan);
|
2011-09-09 20:32:45 +00:00
|
|
|
|
|
|
|
#endif /* _OSMO_BTS_AMR_H */
|