Main MRPT website > C++ reference for MRPT 1.5.9
xsrssi.h
Go to the documentation of this file.
1 /* +---------------------------------------------------------------------------+
2  | Mobile Robot Programming Toolkit (MRPT) |
3  | http://www.mrpt.org/ |
4  | |
5  | Copyright (c) 2005-2017, Individual contributors, see AUTHORS file |
6  | See: http://www.mrpt.org/Authors - All rights reserved. |
7  | Released under BSD License. See details in http://www.mrpt.org/License |
8  +---------------------------------------------------------------------------+ */
9 #ifndef XSRSSI_H
10 #define XSRSSI_H
11 
12 #include "xstypesconfig.h"
13 
14 #define XS_RSSI_MAX (128)
15 #define XS_RSSI_UNKNOWN (-XS_RSSI_MAX)
16 
17 #ifdef __cplusplus
18 extern "C" {
19 #endif
20 
23 XSTYPES_DLL_API int XsRssi_unbiased(int raw);
24 
25 #ifdef __cplusplus
26 } // extern "C"
27 namespace XsRssi {
28  /*! \brief The maximum RSSI value. */
29  static const int max = XS_RSSI_MAX;
30  /*! \brief The RSSI value that was reserved for when the RSSI is unknown. */
31  static const int unknown = XS_RSSI_UNKNOWN;
32  /*! \copydoc XsRssi_unbiased */
33  inline int unbiased(int raw)
34  {
35  return XsRssi_unbiased(raw);
36  }
37 }
38 #endif
39 
40 #endif // file guard
XSTYPES_DLL_API int XsRssi_unknown()
#define XS_RSSI_MAX
Definition: xsrssi.h:14
#define XS_RSSI_UNKNOWN
Definition: xsrssi.h:15
#define XSTYPES_DLL_API
Definition: xstypesconfig.h:9
XSTYPES_DLL_API int XsRssi_unbiased(int raw)
XSTYPES_DLL_API int XsRssi_max()



Page generated by Doxygen 1.8.14 for MRPT 1.5.9 Git: 690a4699f Wed Apr 15 19:29:53 2020 +0200 at miƩ abr 15 19:30:12 CEST 2020