acc_detector_distance_definitions.h
Go to the documentation of this file.
1 // Copyright (c) Acconeer AB, 2022-2024
2 // All rights reserved
3 
4 #ifndef ACC_DETECTOR_DISTANCE_DEFINITIONS_H_
5 #define ACC_DETECTOR_DISTANCE_DEFINITIONS_H_
6 
7 
8 #include <stdint.h>
9 
10 
11 /**
12  * The size of the result from a completed calibration update.
13  */
14 #define ACC_DETECTOR_CAL_RESULT_DYNAMIC_DATA_SIZE (8U)
15 
16 /**
17  * The result from a completed calibration update.
18  */
19 typedef struct
20 {
23 
24 
25 /**
26  * @brief Enum for peak sorting algorithms
27  */
28 typedef enum
29 {
30  /*! Return peaks with the closest detection first. */
32  /*! Return peaks with the peak with the highest RCS first. */
35 
36 
37 /**
38  * @brief Enum for threshold methods
39  */
40 typedef enum
41 {
42  /*! Compares processed data against a fixed amplitude value */
44  /*! Compares processed data against a fixed strength value */
46  /*! Compares processed data against a recorded threshold */
48  /*! Uses the CFAR algorithm as a threshold */
51 
52 
53 /**
54  * @brief Enum for reflector shapes
55  */
56 typedef enum
57 {
58  /*! Use a generic reflector shape for RCS calculation */
60  /*! Use a planar reflector shape for RCS calculation */
63 
64 
65 #endif
ACC_DETECTOR_DISTANCE_REFLECTOR_SHAPE_GENERIC
@ ACC_DETECTOR_DISTANCE_REFLECTOR_SHAPE_GENERIC
Definition: acc_detector_distance_definitions.h:59
ACC_DETECTOR_DISTANCE_PEAK_SORTING_STRONGEST
@ ACC_DETECTOR_DISTANCE_PEAK_SORTING_STRONGEST
Definition: acc_detector_distance_definitions.h:33
acc_detector_distance_peak_sorting_t
acc_detector_distance_peak_sorting_t
Enum for peak sorting algorithms.
Definition: acc_detector_distance_definitions.h:28
ACC_DETECTOR_DISTANCE_THRESHOLD_METHOD_CFAR
@ ACC_DETECTOR_DISTANCE_THRESHOLD_METHOD_CFAR
Definition: acc_detector_distance_definitions.h:49
ACC_DETECTOR_DISTANCE_THRESHOLD_METHOD_RECORDED
@ ACC_DETECTOR_DISTANCE_THRESHOLD_METHOD_RECORDED
Definition: acc_detector_distance_definitions.h:47
acc_detector_cal_result_dynamic_t
Definition: acc_detector_distance_definitions.h:19
ACC_DETECTOR_DISTANCE_THRESHOLD_METHOD_FIXED_STRENGTH
@ ACC_DETECTOR_DISTANCE_THRESHOLD_METHOD_FIXED_STRENGTH
Definition: acc_detector_distance_definitions.h:45
ACC_DETECTOR_DISTANCE_THRESHOLD_METHOD_FIXED_AMPLITUDE
@ ACC_DETECTOR_DISTANCE_THRESHOLD_METHOD_FIXED_AMPLITUDE
Definition: acc_detector_distance_definitions.h:43
acc_detector_distance_reflector_shape_t
acc_detector_distance_reflector_shape_t
Enum for reflector shapes.
Definition: acc_detector_distance_definitions.h:56
ACC_DETECTOR_CAL_RESULT_DYNAMIC_DATA_SIZE
#define ACC_DETECTOR_CAL_RESULT_DYNAMIC_DATA_SIZE
Definition: acc_detector_distance_definitions.h:14
acc_detector_distance_threshold_method_t
acc_detector_distance_threshold_method_t
Enum for threshold methods.
Definition: acc_detector_distance_definitions.h:40
ACC_DETECTOR_DISTANCE_PEAK_SORTING_CLOSEST
@ ACC_DETECTOR_DISTANCE_PEAK_SORTING_CLOSEST
Definition: acc_detector_distance_definitions.h:31
ACC_DETECTOR_DISTANCE_REFLECTOR_SHAPE_PLANAR
@ ACC_DETECTOR_DISTANCE_REFLECTOR_SHAPE_PLANAR
Definition: acc_detector_distance_definitions.h:61