GNSS-SDR 0.0.21
An Open Source GNSS Software Defined Receiver
Loading...
Searching...
No Matches
swift_common.h
Go to the documentation of this file.
1/*!
2 * \file swift_common.h
3 * \brief Common definitions used throughout the libswiftnav library
4 * \author Henry Hallam <henry@swift-nav.com>
5 * Fergus Noble <fergus@swift-nav.com>
6 *
7 * -----------------------------------------------------------------------------
8 * GNSS-SDR is a Global Navigation Satellite System software-defined receiver.
9 * This file is part of GNSS-SDR.
10 *
11 * This file was originally borrowed from libswiftnav
12 * <https://github.com/swift-nav/libswiftnav>,
13 * a portable C library implementing GNSS related functions and algorithms,
14 * and then modified by J. Arribas and C. Fernandez
15 *
16 * Copyright (C) 2012 Swift Navigation Inc.
17 * Contact: Henry Hallam <henry@swift-nav.com>
18 * Fergus Noble <fergus@swift-nav.com>
19 *
20 * SPDX-License-Identifier: LGPL-3.0-only
21 *
22 */
23
24
25#ifndef GNSS_SDR_SWIFT_COMMON_H
26#define GNSS_SDR_SWIFT_COMMON_H
27
28/** \addtogroup Telemetry_Decoder
29 * \{ */
30/** \addtogroup Telemetry_Decoder_libswiftcnav
31 * \{ */
32
33
34#define ABS(x) ((x) < 0 ? -(x) : (x))
35#define MIN(x, y) (((x) < (y)) ? (x) : (y))
36#define MAX(x, y) (((x) > (y)) ? (x) : (y))
37#define CLAMP_DIFF(a, b) (MAX((a), (b)) - (b))
38
39#include <inttypes.h>
40#include <stdbool.h>
41#include <stdint.h>
42
43
44/** \} */
45/** \} */
46#endif /* GNSS_SDR_SWIFT_COMMON_H */