MRPT
1.9.9
xsoutputmode.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 XSOUTPUTMODE_H
10
#define XSOUTPUTMODE_H
11
12
/*! \addtogroup enums Global enumerations
13
@{
14
*/
15
//! Bit values for legacy output mode
16
enum
XsOutputMode
17
{
18
XOM_None
= 0x0000,
19
XOM_Temperature
= 0x0001,
20
XOM_Calibrated
= 0x0002,
21
XOM_Orientation
= 0x0004,
22
XOM_Auxiliary
= 0x0008,
23
XOM_Position
= 0x0010,
24
XOM_Velocity
= 0x0020,
25
XOM_Sdi
= 0x0200,
26
XOM_Status
= 0x0800,
27
XOM_GpsPvt_Pressure
= 0x1000,
28
XOM_Reserved
= 0x2000,
29
XOM_Raw
= 0x4000,
30
XOM_Mt9
= 0x8000
31
};
32
/*! @} */
33
typedef
enum
XsOutputMode
XsOutputMode
;
34
35
// Extended (analog) Output Modes
36
#define XS_EXTOUTPUTMODE_DISABLED 0x0000
37
#define XS_EXTOUTPUTMODE_EULER 0x0001
38
39
#define XS_DEFAULT_OUTPUT_MODE XOM_Orientation
40
41
#ifdef __cplusplus
42
/*! \brief Allow logical or of XsOutputMode to be a valid XsOutputMode value */
43
inline
XsOutputMode
operator|(
XsOutputMode
a
,
XsOutputMode
b
)
44
{
45
return
(
XsOutputMode
)((
unsigned
short)
a
| (
unsigned
short
)
b
);
46
}
47
48
/*! \brief Allow logical and of XsOutputMode to be a valid XsOutputMode value */
49
inline
XsOutputMode
operator&(
XsOutputMode
a
,
XsOutputMode
b
)
50
{
51
return
(
XsOutputMode
)((
unsigned
short)
a
& (
unsigned
short
)
b
);
52
}
53
54
/*! \brief Allow logical inversion of XsOutputMode to be a valid XsOutputMode
55
* value */
56
inline
XsOutputMode
operator~(
XsOutputMode
a
)
57
{
58
return
(
XsOutputMode
) ~((
unsigned
short)
a
);
59
}
60
#endif
61
62
#endif // XSOUTPUTMODE_H
XsOutputMode
XsOutputMode
Bit values for legacy output mode.
Definition:
xsoutputmode.h:16
XOM_Velocity
Definition:
xsoutputmode.h:24
XOM_Status
Definition:
xsoutputmode.h:26
XOM_Sdi
Definition:
xsoutputmode.h:25
XOM_Temperature
Definition:
xsoutputmode.h:19
XOM_Position
Definition:
xsoutputmode.h:23
XOM_Raw
Definition:
xsoutputmode.h:29
XOM_Auxiliary
Definition:
xsoutputmode.h:22
b
GLubyte GLubyte b
Definition:
glext.h:6372
XOM_Calibrated
Definition:
xsoutputmode.h:20
XOM_GpsPvt_Pressure
Definition:
xsoutputmode.h:27
XOM_None
Definition:
xsoutputmode.h:18
XOM_Reserved
Definition:
xsoutputmode.h:28
XOM_Orientation
Definition:
xsoutputmode.h:21
XOM_Mt9
Definition:
xsoutputmode.h:30
a
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