Main MRPT website > C++ reference for MRPT 1.5.9
xsoutputconfiguration.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 XSOUTPUTCONFIGURATION_H
10 #define XSOUTPUTCONFIGURATION_H
11 
12 #include "xstypesconfig.h"
13 #include "pstdint.h"
14 #include "xsdataidentifier.h"
15 
16 #define XS_MAX_OUTPUTCONFIGURATIONS (32)
17 
18 #ifdef __cplusplus
19 extern "C" {
20 #else
21 #define XSOUTPUTCONFIGURATION_INITIALIZER { XDI_None, 0 }
22 #endif
23 
25 
27 
28 #ifdef __cplusplus
29 } // extern "C"
30 #endif
31 
32 
33 /*! \brief Single data type output configuration
34  \details This structure contains a single data type and the frequency at which it should be produced.
35  If m_frequency is 0xFFFF and the %XsOutputConfiguration is used for input, the device will configure
36  itself to its maximum frequency for the data type. If it is 0xFFFF and reported by the device,
37  the data has no maximum frequency, but is sent along with appropriate packets (ie. packet counter)
38 */
40  XsDataIdentifier m_dataIdentifier; //!< The data identifier
41  uint16_t m_frequency; //!< The frequency
42 
43 #ifdef __cplusplus
44  //! Constructor, initializes to an empty object
47 
48  //! Constructor, initializes to specified values
51  {}
52 
53  //! Comparison operator
54  bool operator == (const XsOutputConfiguration& other) const
55  {
56  return m_dataIdentifier == other.m_dataIdentifier && m_frequency == other.m_frequency;
57  }
58 #endif
59 };
61 
62 #endif // file guard
bool operator==(const TPoint2D &p1, const TPoint2D &p2)
Exact comparison between 2D points.
unsigned __int16 uint16_t
Definition: rptypes.h:46
XsDataIdentifier m_dataIdentifier
The data identifier.
struct XsOutputConfiguration XsOutputConfiguration
XsDataIdentifier
Defines the data identifiers.
XSTYPES_DLL_API void XsOutputConfiguration_swap(struct XsOutputConfiguration *a, struct XsOutputConfiguration *b)
uint16_t m_frequency
The frequency.
Single data type output configuration.
GLubyte GLubyte b
Definition: glext.h:5575
JHUFF_TBL long freq[]
Definition: jchuff.h:44
#define XSTYPES_DLL_API
Definition: xstypesconfig.h:9
GLubyte GLubyte GLubyte a
Definition: glext.h:5575



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