MRPT  1.9.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-2018, 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 \
22  { \
23  XDI_None, 0 \
24  }
25 #endif
26 
28 
31 
32 #ifdef __cplusplus
33 } // extern "C"
34 #endif
35 
36 /*! \brief Single data type output configuration
37  \details This structure contains a single data type and the frequency at
38  which it should be produced.
39  If m_frequency is 0xFFFF and the %XsOutputConfiguration is used for input,
40  the device will configure
41  itself to its maximum frequency for the data type. If it is 0xFFFF and
42  reported by the device,
43  the data has no maximum frequency, but is sent along with appropriate
44  packets (ie. packet counter)
45 */
47 {
48  /** The data identifier */
50  /** The frequency */
52 
53 #ifdef __cplusplus
54  //! Constructor, initializes to an empty object
56  //! Constructor, initializes to specified values
58  : m_dataIdentifier(di), m_frequency(freq)
59  {
60  }
61 
62  //! Comparison operator
63  bool operator==(const XsOutputConfiguration& other) const
64  {
65  return m_dataIdentifier == other.m_dataIdentifier &&
66  m_frequency == other.m_frequency;
67  }
68 #endif
69 };
71 
72 #endif // file guard
GLubyte GLubyte b
Definition: glext.h:6279
GLubyte GLubyte GLubyte a
Definition: glext.h:6279
XsDataIdentifier
Defines the data identifiers.
@ XDI_None
bool operator==(const mrpt::img::TCamera &a, const mrpt::img::TCamera &b)
Definition: TCamera.cpp:201
unsigned __int16 uint16_t
Definition: rptypes.h:44
Single data type output configuration.
XsDataIdentifier m_dataIdentifier
The data identifier.
uint16_t m_frequency
The frequency.
struct XsOutputConfiguration XsOutputConfiguration
XSTYPES_DLL_API void XsOutputConfiguration_swap(struct XsOutputConfiguration *a, struct XsOutputConfiguration *b)
#define XSTYPES_DLL_API
Definition: xstypesconfig.h:9



Page generated by Doxygen 1.9.1 for MRPT 1.9.9 Git: 814d80880 Fri Aug 24 01:51:28 2018 +0200 at mar 26 may 2026 12:30:59 CEST