Main MRPT website
>
C++ reference for MRPT 1.9.9
xSens_MT4
xstypes
include
xsens
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
27
struct
XsOutputConfiguration
;
28
29
XSTYPES_DLL_API
void
XsOutputConfiguration_swap
(
30
struct
XsOutputConfiguration
*
a
,
struct
XsOutputConfiguration
*
b
);
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
*/
46
struct
XsOutputConfiguration
47
{
48
/** The data identifier */
49
XsDataIdentifier
m_dataIdentifier
;
50
/** The frequency */
51
uint16_t
m_frequency
;
52
53
#ifdef __cplusplus
54
//! Constructor, initializes to an empty object
55
XsOutputConfiguration
() :
m_dataIdentifier
(
XDI_None
),
m_frequency
(0) {}
56
//! Constructor, initializes to specified values
57
XsOutputConfiguration
(
XsDataIdentifier
di,
uint16_t
freq)
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
};
70
typedef
struct
XsOutputConfiguration
XsOutputConfiguration
;
71
72
#endif // file guard
XsOutputConfiguration
struct XsOutputConfiguration XsOutputConfiguration
Definition:
xsoutputconfiguration.h:70
uint16_t
unsigned __int16 uint16_t
Definition:
rptypes.h:44
XDI_None
@ XDI_None
Definition:
xsdataidentifier.h:42
mrpt::img::operator==
bool operator==(const mrpt::img::TCamera &a, const mrpt::img::TCamera &b)
Definition:
TCamera.cpp:201
XsOutputConfiguration::m_dataIdentifier
XsDataIdentifier m_dataIdentifier
The data identifier.
Definition:
xsoutputconfiguration.h:49
XsDataIdentifier
XsDataIdentifier
Defines the data identifiers.
Definition:
xsdataidentifier.h:40
b
GLubyte GLubyte b
Definition:
glext.h:6279
xsdataidentifier.h
xstypesconfig.h
pstdint.h
XsOutputConfiguration_swap
XSTYPES_DLL_API void XsOutputConfiguration_swap(struct XsOutputConfiguration *a, struct XsOutputConfiguration *b)
XSTYPES_DLL_API
#define XSTYPES_DLL_API
Definition:
xstypesconfig.h:9
XsOutputConfiguration
Single data type output configuration.
Definition:
xsoutputconfiguration.h:46
a
GLubyte GLubyte GLubyte a
Definition:
glext.h:6279
XsOutputConfiguration::m_frequency
uint16_t m_frequency
The frequency.
Definition:
xsoutputconfiguration.h:51
Page generated by
Doxygen 1.8.17
for MRPT 1.9.9 Git: ad3a9d8ae Tue May 1 23:10:22 2018 -0700 at miƩ 12 jul 2023 10:03:34 CEST