GNSS-SDR
0.0.13
An Open Source GNSS Software Defined Receiver
src
algorithms
telemetry_decoder
libs
libswiftcnav
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
* This file was originally borrowed from libswiftnav
9
* <https://github.com/swift-nav/libswiftnav>,
10
* a portable C library implementing GNSS related functions and algorithms,
11
* and then modified by J. Arribas and C. Fernandez
12
*
13
* Copyright (C) 2012 Swift Navigation Inc.
14
* Contact: Henry Hallam <henry@swift-nav.com>
15
* Fergus Noble <fergus@swift-nav.com>
16
*
17
* GNSS-SDR is a software defined Global Navigation
18
* Satellite Systems receiver
19
*
20
* This file is part of GNSS-SDR.
21
*
22
* SPDX-License-Identifier: LGPL-3.0-only
23
*.
24
*/
25
26
27
#ifndef GNSS_SDR_SWIFT_COMMON_H
28
#define GNSS_SDR_SWIFT_COMMON_H
29
30
/** \defgroup common Common definitions
31
* Common definitions used throughout the library.
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
#endif
/* GNSS_SDR_SWIFT_COMMON_H_ */
Generated by
1.8.14