libosmogsm 1.13.1.1-afb4 Osmocom GSM library

rxlev_stat.h
Go to the documentation of this file.
1
3#pragma once
4
5#define NUM_RXLEVS 32
6#define NUM_ARFCNS 1024
7
8 struct rxlev_stats {
9 /* the maximum number of ARFCN's is 1024, and there are 32 RxLevels,
10 * so in we keep one 1024bit-bitvec for each RxLev */
11 uint8_t rxlev_buckets[NUM_RXLEVS][NUM_ARFCNS/8];
12};
13
14 void rxlev_stat_input(struct rxlev_stats *st, uint16_t arfcn, uint8_t rxlev);
15
16/* get the next ARFCN that has the specified Rxlev */
17int16_t rxlev_stat_get_next(const struct rxlev_stats *st, uint8_t rxlev, int16_t arfcn);
18
19 void rxlev_stat_reset(struct rxlev_stats *st);
20
21 void rxlev_stat_dump(const struct rxlev_stats *st);
rxlev_stat_input
void rxlev_stat_input(struct rxlev_stats *st, uint16_t arfcn, uint8_t rxlev)
Definition: rxlev_stat.c:32
rxlev_stat_get_next
int16_t rxlev_stat_get_next(const struct rxlev_stats *st, uint8_t rxlev, int16_t arfcn)
Definition: rxlev_stat.c:46
NUM_ARFCNS
#define NUM_ARFCNS
Definition: rxlev_stat.h:6
rxlev_stat_reset
void rxlev_stat_reset(struct rxlev_stats *st)
Definition: rxlev_stat.c:63
rxlev_stat_dump
void rxlev_stat_dump(const struct rxlev_stats *st)
Definition: rxlev_stat.c:68
NUM_RXLEVS
#define NUM_RXLEVS
Definition: rxlev_stat.h:5
rxlev_stats
Definition: rxlev_stat.h:8
rxlev_stats::rxlev_buckets
uint8_t rxlev_buckets[NUM_RXLEVS][NUM_ARFCNS/8]
Definition: rxlev_stat.h:11