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



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