aboutsummaryrefslogtreecommitdiffstats
path: root/include/osmo-bts/amr.h
blob: f313287432c819a79e1d51d5349f6f209c0f6f1a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#ifndef _OSMO_BTS_AMR_H
#define _OSMO_BTS_AMR_H

#include <osmo-bts/gsm_data.h>

#define AMR_TOC_QBIT	0x04
#define AMR_CMR_NONE	0xF

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);
void amr_set_mode_pref(uint8_t *data, const struct amr_multirate_conf *amr_mrc,
		       uint8_t cmi, uint8_t cmr);
unsigned int amr_get_initial_mode(struct gsm_lchan *lchan);

#endif /* _OSMO_BTS_AMR_H */