libosmogsm  0.11.0-dirty
Osmocom GSM library
include/osmocom/gsm/rxlev_stat.h
Go to the documentation of this file.
00001 
00003 #pragma once
00004 
00005 #define NUM_RXLEVS 32
00006 #define NUM_ARFCNS 1024
00007 
00008 struct rxlev_stats {
00009         /* the maximum number of ARFCN's is 1024, and there are 32 RxLevels,
00010          * so in we keep one 1024bit-bitvec for each RxLev */
00011         uint8_t rxlev_buckets[NUM_RXLEVS][NUM_ARFCNS/8];
00012 };
00013 
00014 void rxlev_stat_input(struct rxlev_stats *st, uint16_t arfcn, uint8_t rxlev);
00015 
00016 /* get the next ARFCN that has the specified Rxlev */
00017 int16_t rxlev_stat_get_next(const struct rxlev_stats *st, uint8_t rxlev, int16_t arfcn);
00018 
00019 void rxlev_stat_reset(struct rxlev_stats *st);
00020 
00021 void rxlev_stat_dump(const struct rxlev_stats *st);
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines