Loading...
Searching...
No Matches
gsm48_arfcn_range_encode.h
Go to the documentation of this file.
#pragma once
#include <stdint.h>
enum osmo_gsm48_range {
OSMO_GSM48_ARFCN_RANGE_INVALID = -1,
OSMO_GSM48_ARFCN_RANGE_128 = 127,
OSMO_GSM48_ARFCN_RANGE_256 = 255,
OSMO_GSM48_ARFCN_RANGE_512 = 511,
OSMO_GSM48_ARFCN_RANGE_1024 = 1023,
};
#define OSMO_GSM48_RANGE_ENC_MAX_ARFCNS 29
int osmo_gsm48_range_enc_determine_range(const int *arfcns, int size, int *f0_out);
int osmo_gsm48_range_enc_arfcns(enum osmo_gsm48_range rng, const int *arfcns, int sze, int *out, int idx);
int osmo_gsm48_range_enc_find_index(enum osmo_gsm48_range rng, const int *arfcns, int size);
int osmo_gsm48_range_enc_filter_arfcns(int *arfcns, const int sze, const int f0, int *f0_included);
int osmo_gsm48_range_enc_128(uint8_t *chan_list, int f0, int *w);
int osmo_gsm48_range_enc_256(uint8_t *chan_list, int f0, int *w);
int osmo_gsm48_range_enc_512(uint8_t *chan_list, int f0, int *w);
int osmo_gsm48_range_enc_1024(uint8_t *chan_list, int f0, int f0_incl, int *w);
osmo_gsm48_range
osmo_gsm48_range
Definition gsm48_arfcn_range_encode.h:7
OSMO_GSM48_ARFCN_RANGE_1024
@ OSMO_GSM48_ARFCN_RANGE_1024
Definition gsm48_arfcn_range_encode.h:12
OSMO_GSM48_ARFCN_RANGE_INVALID
@ OSMO_GSM48_ARFCN_RANGE_INVALID
Definition gsm48_arfcn_range_encode.h:8
OSMO_GSM48_ARFCN_RANGE_128
@ OSMO_GSM48_ARFCN_RANGE_128
Definition gsm48_arfcn_range_encode.h:9
OSMO_GSM48_ARFCN_RANGE_256
@ OSMO_GSM48_ARFCN_RANGE_256
Definition gsm48_arfcn_range_encode.h:10
OSMO_GSM48_ARFCN_RANGE_512
@ OSMO_GSM48_ARFCN_RANGE_512
Definition gsm48_arfcn_range_encode.h:11
osmo_gsm48_range_enc_1024
int osmo_gsm48_range_enc_1024(uint8_t *chan_list, int f0, int f0_incl, int *w)
Definition gsm48_arfcn_range_encode.c:297
osmo_gsm48_range_enc_512
int osmo_gsm48_range_enc_512(uint8_t *chan_list, int f0, int *w)
Definition gsm48_arfcn_range_encode.c:288
osmo_gsm48_range_enc_arfcns
int osmo_gsm48_range_enc_arfcns(enum osmo_gsm48_range rng, const int *arfcns, int sze, int *out, int idx)
Range encode the ARFCN list.
Definition gsm48_arfcn_range_encode.c:132
osmo_gsm48_range_enc_128
int osmo_gsm48_range_enc_128(uint8_t *chan_list, int f0, int *w)
Definition gsm48_arfcn_range_encode.c:270
osmo_gsm48_range_enc_find_index
int osmo_gsm48_range_enc_find_index(enum osmo_gsm48_range rng, const int *arfcns, int size)
Determine at which index to split the ARFCNs to create an equally size partition for the given range.
Definition gsm48_arfcn_range_encode.c:55
osmo_gsm48_range_enc_filter_arfcns
int osmo_gsm48_range_enc_filter_arfcns(int *arfcns, const int sze, const int f0, int *f0_included)
Definition gsm48_arfcn_range_encode.c:305
osmo_gsm48_range_enc_determine_range
int osmo_gsm48_range_enc_determine_range(const int *arfcns, int size, int *f0_out)
This implements the range determination as described in GSM 04.08 J4.
Definition gsm48_arfcn_range_encode.c:165
osmo_gsm48_range_enc_256
int osmo_gsm48_range_enc_256(uint8_t *chan_list, int f0, int *w)
Definition gsm48_arfcn_range_encode.c:279