MRPT  1.9.9
xsoutputconfiguration.h
Go to the documentation of this file.
1 /* +------------------------------------------------------------------------+
2  | Mobile Robot Programming Toolkit (MRPT) |
3  | https://www.mrpt.org/ |
4  | |
5  | Copyright (c) 2005-2019, Individual contributors, see AUTHORS file |
6  | See: https://www.mrpt.org/Authors - All rights reserved. |
7  | Released under BSD License. See: https://www.mrpt.org/License |
8  +------------------------------------------------------------------------+ */
9 #ifndef XSOUTPUTCONFIGURATION_H
10 #define XSOUTPUTCONFIGURATION_H
11 
12 #include "pstdint.h"
13 #include "xsdataidentifier.h"
14 #include "xstypesconfig.h"
15 
16 #define XS_MAX_OUTPUTCONFIGURATIONS (32)
17 
18 #ifdef __cplusplus
19 extern "C"
20 {
21 #else
22 #define XSOUTPUTCONFIGURATION_INITIALIZER \
23  { \
24  XDI_None, 0 \
25  }
26 #endif
27 
28  struct XsOutputConfiguration;
29 
32 
33 #ifdef __cplusplus
34 } // extern "C"
35 #endif
36 
37 /*! \brief Single data type output configuration
38  \details This structure contains a single data type and the frequency at
39  which it should be produced.
40  If m_frequency is 0xFFFF and the %XsOutputConfiguration is used for input,
41  the device will configure
42  itself to its maximum frequency for the data type. If it is 0xFFFF and
43  reported by the device,
44  the data has no maximum frequency, but is sent along with appropriate
45  packets (ie. packet counter)
46 */
48 {
49  /** The data identifier */
51  /** The frequency */
53 
54 #ifdef __cplusplus
55  //! Constructor, initializes to an empty object
57  //! Constructor, initializes to specified values
59  : m_dataIdentifier(di), m_frequency(freq)
60  {
61  }
62 
63  //! Comparison operator
64  bool operator==(const XsOutputConfiguration& other) const
65  {
66  return m_dataIdentifier == other.m_dataIdentifier &&
67  m_frequency == other.m_frequency;
68  }
69 #endif
70 };
72 
73 #endif // file guard
unsigned __int16 uint16_t
Definition: rptypes.h:47
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:6372
bool operator==(const mrpt::img::TCamera &a, const mrpt::img::TCamera &b)
Definition: TCamera.cpp:202
#define XSTYPES_DLL_API
Definition: xstypesconfig.h:9
GLubyte GLubyte GLubyte a
Definition: glext.h:6372



Page generated by Doxygen 1.8.14 for MRPT 1.9.9 Git: 8fe78517f Sun Jul 14 19:43:28 2019 +0200 at lun oct 28 02:10:00 CET 2019