AFBR-S50 API Reference Manual v1.5.6
AFBR-S50 Time-of-Flight Sensor SDK for Embedded Software
Loading...
Searching...
No Matches
argus_px.h
Go to the documentation of this file.
1/*************************************************************************/
37#ifndef ARGUS_PX_H
38#define ARGUS_PX_H
39#ifdef __cplusplus
40extern "C" {
41#endif
42
43/*!***************************************************************************
44 * @addtogroup argus_res
45 * @{
46 *****************************************************************************/
47
48#include "argus_def.h"
49
50
52#define ARGUS_AMPLITUDE_MAX (0xFFF0U)
53
56#define ARGUS_RANGE_MAX (Q9_22_MAX)
57
59#define ARGUS_RANGE_MIN (Q9_22_MIN)
60
61/*!***************************************************************************
62 * @brief Status flags for the evaluated pixel structure.
63 *
64 * @details Determines the pixel status. 0 means OK (#PIXEL_OK).
65 * - [0]: #PIXEL_OFF: Pixel was disabled and not read from the device.
66 * - [1]: #PIXEL_SAT: The pixel was saturated.
67 * - [2]: #PIXEL_BIN_EXCL: The pixel was excluded from the 1D result.
68 * - [3]: #PIXEL_INVALID: The pixel data is invalid.
69 * - [4]: #PIXEL_PREFILTERED: The was pre-filtered by static mask.
70 * - [5]: #PIXEL_NO_SIGNAL: The pixel has no valid signal.
71 * - [6]: #PIXEL_OUT_OF_SYNC: The pixel has lost signal trace.
72 * - [7]: #PIXEL_STALLED: The pixel value is stalled due to errors.
73 * .
74 *****************************************************************************/
76{
79
81 PIXEL_OFF = 1U << 0U,
82
85 PIXEL_SAT = 1U << 1U,
86
88 PIXEL_BIN_EXCL = 1U << 2U,
89
94 PIXEL_INVALID = 1U << 3U,
95
99
103 PIXEL_NO_SIGNAL = 1U << 5U,
104
109
119 PIXEL_STALLED = 1U << 7U
120
122
123/*!***************************************************************************
124 * @brief The evaluated measurement results per pixel.
125 * @details This structure contains the evaluated data for a single pixel.\n
126 * If the amplitude is 0, the pixel is turned off or has invalid data.
127 *****************************************************************************/
153
154/*!***************************************************************************
155 * @brief Representation of a correlation vector containing sine/cosine components.
156 *****************************************************************************/
157typedef struct argus_vector_t
158{
159 union
160 {
163
164 struct
165 {
168
171 };
172 };
174
176#ifdef __cplusplus
177} // extern "C"
178#endif
179#endif /* ARGUS_PX_H */
This file is part of the AFBR-S50 hardware API.
int32_t q9_22_t
Signed fixed point number: Q9.22.
Definition fp_def.h:538
uint16_t uq1_15_t
Unsigned fixed point number: UQ1.15.
Definition fp_def.h:271
int32_t q15_16_t
Signed fixed point number: Q15.16.
Definition fp_def.h:515
uint16_t uq12_4_t
Unsigned fixed point number: UQ12.4.
Definition fp_def.h:231
argus_px_status_t
Status flags for the evaluated pixel structure.
Definition argus_px.h:76
@ PIXEL_INVALID
Definition argus_px.h:94
@ PIXEL_NO_SIGNAL
Definition argus_px.h:103
@ PIXEL_SAT
Definition argus_px.h:85
@ PIXEL_PREFILTERED
Definition argus_px.h:98
@ PIXEL_OFF
Definition argus_px.h:81
@ PIXEL_OUT_OF_SYNC
Definition argus_px.h:108
@ PIXEL_BIN_EXCL
Definition argus_px.h:88
@ PIXEL_OK
Definition argus_px.h:78
@ PIXEL_STALLED
Definition argus_px.h:119
The evaluated measurement results per pixel.
Definition argus_px.h:129
uq1_15_t Phase
Definition argus_px.h:135
argus_px_status_t Status
Definition argus_px.h:144
uq12_4_t AmplitudeRaw
Definition argus_px.h:150
q9_22_t Range
Definition argus_px.h:132
int8_t RangeWindow
Definition argus_px.h:147
uq12_4_t Amplitude
Definition argus_px.h:139
Representation of a correlation vector containing sine/cosine components.
Definition argus_px.h:158
q15_16_t SC[2]
Definition argus_px.h:162
q15_16_t S
Definition argus_px.h:167
q15_16_t C
Definition argus_px.h:170