Main MRPT website > C++ reference for MRPT 1.5.9
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-2017, 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 { 0, 0, 0, 0 }
19 #endif
20 
22 
25 
26 #ifdef __cplusplus
27 } // extern "C"
28 #endif
29 
30 
31 /*! \brief Data for a trigger indication message */
33  uint8_t m_line; //!< The line number
34  uint8_t m_polarity; //!< The polarity
35  uint32_t m_timestamp; //!< The timestamp
36  uint16_t m_frameNumber; //!< The frame number
37 
38 #ifdef __cplusplus
39  /*! Constructor
40  \param[in] line Line
41  \param[in] polarity Polarity
42  \param[in] timestamp Timestamp
43  \param[in] frameNumber Frame number
44  */
45  explicit XsTriggerIndicationData(uint8_t line = 0, uint8_t polarity = 0, uint32_t timestamp = 0, uint16_t frameNumber = 0)
46  : m_line(line), m_polarity(polarity), m_timestamp(timestamp), m_frameNumber(frameNumber)
47  {}
48 
49  /*! \brief \copybrief XsTriggerIndicationData_destruct */
50  inline void clear()
51  {
53  }
54 
55  /*! \brief \copybrief XsTriggerIndicationData_valid */
56  inline bool valid() const
57  {
58  return 0 != XsTriggerIndicationData_valid(this);
59  }
60 #endif
61 };
62 
64 
65 #endif // file guard
XSTYPES_DLL_API int XsTriggerIndicationData_valid(const struct XsTriggerIndicationData *thisPtr)
unsigned __int16 uint16_t
Definition: rptypes.h:46
Data for a trigger indication message.
void clear()
Clear the contents of this container.
Definition: ts_hash_map.h:113
unsigned char uint8_t
Definition: rptypes.h:43
uint8_t m_polarity
The polarity.
uint8_t m_line
The line number.
uint32_t m_timestamp
The timestamp.
#define XSTYPES_DLL_API
Definition: xstypesconfig.h:9
struct XsTriggerIndicationData XsTriggerIndicationData
uint16_t m_frameNumber
The frame number.
unsigned __int32 uint32_t
Definition: rptypes.h:49
XSTYPES_DLL_API void XsTriggerIndicationData_destruct(struct XsTriggerIndicationData *thisPtr)



Page generated by Doxygen 1.8.14 for MRPT 1.5.9 Git: 690a4699f Wed Apr 15 19:29:53 2020 +0200 at miƩ abr 15 19:30:12 CEST 2020