diff options
Diffstat (limited to 'src')
130 files changed, 532 insertions, 553 deletions
| diff --git a/src/application.c b/src/application.c index e7c8e0f9..aec3fd7b 100644 --- a/src/application.c +++ b/src/application.c @@ -1,4 +1,5 @@ -/* Utility functions to setup applications */ +/*! \file application.c + *  Routines for helping with the osmocom application setup. */  /*   * (C) 2010 by Harald Welte <laforge@gnumonks.org>   * (C) 2011 by Holger Hans Peter Freyther @@ -21,10 +22,6 @@   *   */ -/*! \file application.c - *  Routines for helping with the osmocom application setup. - */ -  /*! \mainpage libosmocore Documentation   * \section sec_intro Introduction   * This library is a collection of common code used in various diff --git a/src/backtrace.c b/src/backtrace.c index 0240a758..5ce74825 100644 --- a/src/backtrace.c +++ b/src/backtrace.c @@ -1,3 +1,5 @@ +/*! \file backtrace.c + *  Routines related to generating call back traces. */  /*   * (C) 2009 by Holger Hans Peter Freyther <zecke@selfish.org>   * (C) 2012 by Harald Welte <laforge@gnumonks.org> @@ -20,10 +22,6 @@   *   */ -/*! \file backtrace.c - *  Routines realted to generating call back traces - */ -  #include <stdio.h>  #include <stdlib.h>  #include <osmocom/core/utils.h> diff --git a/src/bitcomp.c b/src/bitcomp.c index acf165e0..94f60eb3 100644 --- a/src/bitcomp.c +++ b/src/bitcomp.c @@ -1,6 +1,7 @@ -/* bit compression routines */ - -/* (C) 2016 sysmocom s.f.m.c. GmbH by Max Suraev <msuraev@sysmocom.de> +/*! \file bitcomp.c + * Osmocom bit compression routines */ +/* + * (C) 2016 sysmocom s.f.m.c. GmbH by Max Suraev <msuraev@sysmocom.de>   *   * All Rights Reserved   * @@ -22,11 +23,7 @@  /*! \defgroup bitcomp Bit compression   *  @{ - */ - -/*! \file bitcomp.c - *  Osmocom bit compression routines - */ + * \file bitcomp.c */  #include <stdint.h>  #include <stdbool.h> @@ -26,11 +26,9 @@  /*! \addtogroup bits   *  @{ - *  Osmocom bit level support code - */ - -/*! \file bits.c */ - + *  Osmocom bit level support code. + * + * \file bits.c */  /*! convert unpacked bits to packed bits, return length in bytes   *  \param[out] out output buffer of packed bits diff --git a/src/bitvec.c b/src/bitvec.c index 8ed7296a..f07b42c3 100644 --- a/src/bitvec.c +++ b/src/bitvec.c @@ -1,5 +1,3 @@ -/* bit vector utility routines */ -  /* (C) 2009 by Harald Welte <laforge@gnumonks.org>   * (C) 2012 Ivan Klyuchnikov   * (C) 2015 by Sysmocom s.f.m.c. GmbH @@ -24,10 +22,17 @@  /*! \addtogroup bitvec   *  @{ - *  Osmocom bit vector abstraction - */ - -/*! \file bitvec.c */ + *  Osmocom bit vector abstraction utility routines. + * + *  These functions assume a MSB (most significant bit) first layout of the + *  bits, so that for instance the 5 bit number abcde (a is MSB) can be + *  embedded into a byte sequence like in xxxxxxab cdexxxxx. The bit count + *  starts with the MSB, so the bits in a byte are numbered (MSB) 01234567 (LSB). + *  Note that there are other incompatible encodings, like it is used + *  for the EGPRS RLC data block headers (there the bits are numbered from LSB + *  to MSB). + * + * \file bitvec.c */  #include <errno.h>  #include <stdint.h> diff --git a/src/codec/gsm610.c b/src/codec/gsm610.c index df56583a..d5a21108 | 
