MRPT  1.9.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-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 
25 
27  struct XsTriggerIndicationData* thisPtr);
29  const struct XsTriggerIndicationData* thisPtr);
30 
31 #ifdef __cplusplus
32 } // extern "C"
33 #endif
34 
35 /*! \brief Data for a trigger indication message */
37 {
38  /** The line number */
40  /** The polarity */
42  /** The timestamp */
44  /** The frame number */
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 
75 
76 #endif // file guard
XSTYPES_DLL_API int XsTriggerIndicationData_valid(const struct XsTriggerIndicationData *thisPtr)
unsigned __int16 uint16_t
Definition: rptypes.h:44
Data for a trigger indication message.
unsigned char uint8_t
Definition: rptypes.h:41
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:47
void clear()
Clear the contents of this container.
Definition: ts_hash_map.h:186
XSTYPES_DLL_API void XsTriggerIndicationData_destruct(struct XsTriggerIndicationData *thisPtr)



Page generated by Doxygen 1.8.14 for MRPT 1.9.9 Git: 7d5e6d718 Fri Aug 24 01:51:28 2018 +0200 at lun nov 2 08:35:50 CET 2020