Main MRPT website
>
C++ reference for MRPT 1.9.9
xSens_MT4
xstypes
include
xsens
xstriggerindicationdata.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 XSTRIGGERINDICATIONDATA_H
10
#define XSTRIGGERINDICATIONDATA_H
11
12
#include "
xstypesconfig.h
"
13
#include "
pstdint.h
"
14
15
#ifdef __cplusplus
16
extern
"C"
{
17
#else
18
#define XSTRIGGERINDICATIONDATA_INITIALIZER \
19
{ \
20
0, 0, 0, 0 \
21
}
22
#endif
23
24
struct
XsTriggerIndicationData
;
25
26
XSTYPES_DLL_API
void
XsTriggerIndicationData_destruct
(
27
struct
XsTriggerIndicationData
* thisPtr);
28
XSTYPES_DLL_API
int
XsTriggerIndicationData_valid
(
29
const
struct
XsTriggerIndicationData
* thisPtr);
30
31
#ifdef __cplusplus
32
}
// extern "C"
33
#endif
34
35
/*! \brief Data for a trigger indication message */
36
struct
XsTriggerIndicationData
37
{
38
/** The line number */
39
uint8_t
m_line
;
40
/** The polarity */
41
uint8_t
m_polarity
;
42
/** The timestamp */
43
uint32_t
m_timestamp
;
44
/** The frame number */
45
uint16_t
m_frameNumber
;
46
47
#ifdef __cplusplus
48
/*! Constructor
49
\param[in] line Line
50
\param[in] polarity Polarity
51
\param[in] timestamp Timestamp
52
\param[in] frameNumber Frame number
53
*/
54
explicit
XsTriggerIndicationData
(
55
uint8_t
line = 0,
uint8_t
polarity = 0,
uint32_t
timestamp = 0,
56
uint16_t
frameNumber = 0)
57
:
m_line
(line),
58
m_polarity
(polarity),
59
m_timestamp
(timestamp),
60
m_frameNumber
(frameNumber)
61
{
62
}
63
64
/*! \brief \copybrief XsTriggerIndicationData_destruct */
65
inline
void
clear
() {
XsTriggerIndicationData_destruct
(
this
); }
66
/*! \brief \copybrief XsTriggerIndicationData_valid */
67
inline
bool
valid()
const
68
{
69
return
0 !=
XsTriggerIndicationData_valid
(
this
);
70
}
71
#endif
72
};
73
74
typedef
struct
XsTriggerIndicationData
XsTriggerIndicationData
;
75
76
#endif // file guard
mrpt::containers::clear
void clear()
Clear the contents of this container.
Definition:
ts_hash_map.h:188
uint16_t
unsigned __int16 uint16_t
Definition:
rptypes.h:44
XsTriggerIndicationData
Data for a trigger indication message.
Definition:
xstriggerindicationdata.h:36
uint8_t
unsigned char uint8_t
Definition:
rptypes.h:41
XsTriggerIndicationData::m_frameNumber
uint16_t m_frameNumber
The frame number.
Definition:
xstriggerindicationdata.h:45
XsTriggerIndicationData
struct XsTriggerIndicationData XsTriggerIndicationData
Definition:
xstriggerindicationdata.h:74
XsTriggerIndicationData_destruct
XSTYPES_DLL_API void XsTriggerIndicationData_destruct(struct XsTriggerIndicationData *thisPtr)
xstypesconfig.h
pstdint.h
XsTriggerIndicationData::m_line
uint8_t m_line
The line number.
Definition:
xstriggerindicationdata.h:39
XsTriggerIndicationData_valid
XSTYPES_DLL_API int XsTriggerIndicationData_valid(const struct XsTriggerIndicationData *thisPtr)
XSTYPES_DLL_API
#define XSTYPES_DLL_API
Definition:
xstypesconfig.h:9
XsTriggerIndicationData::m_polarity
uint8_t m_polarity
The polarity.
Definition:
xstriggerindicationdata.h:41
XsTriggerIndicationData::m_timestamp
uint32_t m_timestamp
The timestamp.
Definition:
xstriggerindicationdata.h:43
uint32_t
unsigned __int32 uint32_t
Definition:
rptypes.h:47
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