acc_detector_distance.h
Go to the documentation of this file.
1 // Copyright (c) Acconeer AB, 2022-2023
2 // All rights reserved
3 
4 #ifndef ACC_DETECTOR_DISTANCE_H_
5 #define ACC_DETECTOR_DISTANCE_H_
6 
7 
8 #include <stdbool.h>
9 #include <stdint.h>
10 
11 #include "acc_definitions_a121.h"
12 #include "acc_definitions_common.h"
14 #include "acc_processing.h"
15 #include "acc_sensor.h"
16 
17 /**
18  * @defgroup Distance Distance Detector
19  * @ingroup Detectors
20  *
21  * @brief Distance detector API description
22  *
23  * For a detailed description of the algorithm and its parameters, see
24  * <a href="https://docs.acconeer.com/en/latest/exploration_tool/algo/a121/detectors/distance_detection.html">docs.acconeer.com</a>
25  * @{
26  */
27 
28 #define ACC_DETECTOR_DISTANCE_RESULT_MAX_NUM_DISTANCES (10U)
29 
30 
31 /**
32  * @brief Distance detector handle
33  */
34 struct acc_detector_distance_handle;
35 
36 typedef struct acc_detector_distance_handle acc_detector_distance_handle_t;
37 
38 
39 /**
40  * @brief Configuration of the distance detector
41  */
42 struct acc_detector_distance_config;
43 
44 typedef struct acc_detector_distance_config acc_detector_distance_config_t;
45 
46 
47 /**
48  * @brief Distance detector result
49  */
50 typedef struct
51 {
52  /**
53  * The detected distances in meters
54  */
56  /**
57  * The reflective strengths of each distance
58  */
60  /**
61  * The number of detected distances. If 0, no distances where detected
62  */
63  uint8_t num_distances;
64  /**
65  * Indicating that there might be an object near the start point of the measured range
66  */
68  /**
69  * Indication of calibration needed.
70  *
71  * The sensor calibration needs to be redone if this indication is set.
72  *
73  * A detector calibration update should then be done after the new sensor calibration.
74  * A detector calibration update is done by calling @ref acc_detector_distance_update_calibration
75  */
77  /** Temperature in sensor during measurement (in degree Celsius).
78  * Note that it has poor absolute accuracy and should only be used
79  * for relative temperature measurements.
80  */
81  int16_t temperature;
82  /**
83  * Radar data that the distance detection is based on.
84  * This will point to memory in the buffer supplied to @ref acc_detector_distance_process
85  *
86  * Note: The processing result is only valid until the next time
87  * @ref acc_detector_distance_process is called.
88  */
90  /**
91  * The metadata for the processing result
92  *
93  * Note: The processing metedata is only valid until the next time
94  * @ref acc_detector_distance_process is called.
95  */
97  /**
98  * The sensor_config used for the processing result
99  *
100  * Note: The sensor_config is only valid until the next time
101  * @ref acc_detector_distance_process is called.
102  */
105 
106 
107 /**
108  * @brief Create a configuration for a distance detector
109  *
110  * @return Distance detector configuration, NULL in case of error
111  */
113 
114 
115 /**
116  * @brief Destroy a configuration for a distance detector
117  *
118  * @param[in] config The configuration to destroy
119  */
121 
122 
123 /**
124  * @brief Print a configuration to the log
125  *
126  * @param[in] handle The distance detector handle, if NULL only distance config will be logged
127  * @param[in] config The configuration to log
128  */
130 
131 
132 /**
133  * @brief Get the sizes needed given the provided detector handle
134  *
135  * buffer_size is the size of memory needed by the detector for proper operation. This includes memory
136  * for sensor handling and detector calculations. This memory can be reused between instances.
137  *
138  * detector_cal_result_static_size is the size of the static part of the detector calibration result.
139  *
140  * Both size are dependent on the configuration used which is contained in the provided handle.
141  *
142  * @param[in] handle The distance detector handle
143  * @param[out] buffer_size The buffer size
144  * @param[out] detector_cal_result_static_size The calibration result size
145  * @return true if successful, false otherwise
146  */
148  uint32_t *buffer_size,
150 
151 
152 /**
153  * @brief Create a distance detector with the provided configuration
154  *
155  * @param[in] config The configuration to create a distance detector with
156  * @return Distance detector handle, NULL if distance detector was not possible to create
157  */
159 
160 
161 /**
162  * @brief Destroy the distance detector handle, freeing its resources
163  *
164  * @param[in] handle The handle to destroy
165  */
167 
168 
169 /**
170  * @brief Do a detector calibration
171  *
172  * The calibration is dependent on the config used. This means that the duration of the
173  * calibration is dependent on the config used. For example, a config with a fixed threshold
174  * will not need to record the background as opposed to a config with a recorded threshold.
175  *
176  * The calibration needs a valid sensor calibration result for proper operation.
177  *
178  * The calibration produces two results, one static and one dynamic. The static result is not
179  * temperature dependent and thus can be used in all temperatures. The dynamic result is
180  * temperature dependent and needs to be updated if the temperature changes, which is indicated
181  * by the 'calibration_needed' indication.
182  *
183  * @param[in] sensor The sensor instance to use for calibration
184  * @param[in] handle The detector handle
185  * @param[in] sensor_cal_result Sensor calibration result
186  * @param[in] buffer Working memory buffer needed by function
187  * @param[in] buffer_size The size of buffer. Needs to be at least
188  * the result of @ref acc_detector_distance_get_sizes
189  * @param[out] detector_cal_result_static Static result of calibration
190  * @param[in] detector_cal_result_static_size The size of detector_cal_result_static.
191  * Needs to be at least the result of @ref acc_detector_distance_get_sizes
192  * @param[out] detector_cal_result_dynamic Dynamic result of calibration
193  * @param[out] calibration_complete Will be set to true when the calibration is complete.
194  * If false; at least one more call to this function is needed.
195  * Note that it's necessary to wait for interrupt between calls.
196  * @return true if successful, false otherwise
197  */
200  const acc_cal_result_t *sensor_cal_result,
201  void *buffer,
202  uint32_t buffer_size,
205  acc_detector_cal_result_dynamic_t *detector_cal_result_dynamic,
206  bool *calibration_complete);
207 
208 
209 /**
210  * @brief Update the calibration
211  *
212  * This function should be called if the 'calibration_needed' indication is set,
213  * after a new sensor calibration has been done.
214  *
215  * The calibration update needs a valid sensor calibration result for proper operation.
216  *
217  * @param[in] sensor The sensor instance to use for calibration update
218  * @param[in] handle The detector handle
219  * @param[in] sensor_cal_result Sensor calibration result
220  * @param[in] buffer Working memory buffer needed by function
221  * @param[in] buffer_size The size of buffer. Needs to be at least
222  * the result of @ref acc_detector_distance_get_sizes
223  * @param[out] detector_cal_result_dynamic Result of the calibration update
224  * @param[out] calibration_complete Will be set to true when the calibration update is complete.
225  * If false; at least one more call to this function is needed.
226  * Note that it's necessary to wait for interrupt between calls.
227  * @return true if successful, false otherwise
228  */
231  const acc_cal_result_t *sensor_cal_result,
232  void *buffer,
233  uint32_t buffer_size,
234  acc_detector_cal_result_dynamic_t *detector_cal_result_dynamic,
235  bool *calibration_complete);
236 
237 
238 /**
239  * @brief Prepare the detector for measurements
240  *
241  * This should to be done before every measure/wait for interrupt/read, as it reconfigures the sensor.
242  *
243  * @param[in, out] handle The distance detector handle
244  * @param[in] config The distance detector config
245  * @param[in] sensor The sensor instance to prepare
246  * @param[in] sensor_cal_result The sensor calibration result to prepare with
247  * @param[in] buffer Memory used by the detector. Should be at least buffer_size bytes
248  * @param[in] buffer_size The buffer size received by @ref acc_detector_distance_get_sizes
249  * @return true if successful, false otherwise
250  */
252  const acc_detector_distance_config_t *config,
253  acc_sensor_t *sensor,
254  const acc_cal_result_t *sensor_cal_result,
255  void *buffer,
256  uint32_t buffer_size);
257 
258 
259 /**
260  * @brief Process the data according to the configuration used in @ref acc_detector_distance_config_create
261  *
262  * @param[in] handle The distance detector handle
263  * @param[in] buffer A reference to the buffer (populated by @ref acc_sensor_read) containing the
264  * data to be processed.
265  * @param[in] detector_cal_result_static The result from @ref acc_detector_distance_calibrate
266  * @param[in] detector_cal_result_dynamic The result from @ref acc_detector_distance_calibrate or @ref acc_detector_distance_update_calibration
267  * @param[out] result_available Whether result will contain a new result
268  * @param[out] result Distance detector result
269  * @return true if successful, false otherwise
270  */
272  void *buffer,
274  acc_detector_cal_result_dynamic_t *detector_cal_result_dynamic,
275  bool *result_available,
277 
278 
279 /**
280  * @brief Set the sensor ID
281  *
282  * @param[out] config The distance detector config
283  * @param[in] sensor Sensor ID
284  */
286 
287 
288 /**
289  * @brief Get the sensor ID
290  *
291  * @param[in] config The distance detector config
292  * @return Sensor ID
293  */
295 
296 
297 /**
298  * @brief Set the start of measured interval in meters.
299  *
300  * @param[out] config The distance detector config
301  * @param[in] start_m Starting point in meters.
302  */
304 
305 
306 /**
307  * @brief Get the start of measured interval in meters.
308  *
309  * @param[in] config The distance detector config
310  * @return the start point in meters
311  */
313 
314 
315 /**
316  * @brief Set the end of measured interval in meters.
317  *
318  * @param[out] config The distance detector config
319  * @param[in] end_m End point in meters.
320  */
322 
323 
324 /**
325  * @brief Get the end of measured interval in meters.
326  *
327  * @param[in] config The distance detector config
328  * @return the end point in meters
329  */
331 
332 
333 /**
334  * @brief Set the maximum step length
335  *
336  * Used to limit step length. If set to 0 (default), the step length is calculated
337  * based on profile.
338  *
339  * @param[out] config The distance detector config
340  * @param[in] max_step_length The maximum step length
341  */
343 
344 
345 /**
346  * @brief Get the maximum step length
347  *
348  * @param[in] config The distance detector config
349  * @return the maximum step length
350  */
352 
353 
354 /**
355  * @brief Enable the close range leakage cancellation logic
356  *
357  * Close range leakage cancellation refers to the process of measuring close to the
358  * sensor(<100mm) by first characterizing the direct leakage, and then subtracting it
359  * from the measured sweep in order to isolate the signal component of interest.
360  * The close range leakage cancellation process requires the sensor to be installed in its
361  * intended geometry with free space in front of the sensor during detector calibration.
362  *
363  * @param[out] config The distance detector config
364  * @param[in] enable true to enable close range leakage cancellation logic, false to disable
365  */
367 
368 
369 /**
370  * @brief Get if the close range leakage cancellation logic is enabled
371  *
372  * @param[in] config The distance detector config
373  * @return true if close range leakage cancellation logic is enabled, false if disabled
374  */
376 
377 
378 /**
379  * @brief Set the signal quality
380  *
381  * High signal quality results in a better SNR (because of higher HWAAS) and higher power consumption.
382  * Signal quality can be set within the interval [-10, 35].
383  *
384  * @param[out] config The distance detector config
385  * @param[in] signal_quality The signal quality
386  */
388 
389 
390 /**
391  * @brief Get the signal quality
392  *
393  * @param[in] config The distance detector config
394  * @return the signal quality
395  */
397 
398 
399 /**
400  * @brief Set the max profile
401  *
402  * Specifies the highest allowed profile (the default is the highest, Profile 5).
403  * A higher profile yields better SNR but worse distance resolution.
404  *
405  * @param[out] config The distance detector config
406  * @param[in] max_profile The max profile
407  */
409 
410 
411 /**
412  * @brief Get the max profile
413  *
414  * @param[in] config The distance detector config
415  * @return the max profile
416  */
418 
419 
420 /**
421  * @brief Set the threshold method
422  *
423  * See @ref acc_detector_distance_threshold_method_t for details
424  *
425  * @param[out] config The distance detector config
426  * @param[in] threshold_method The threshold method
427  */
430 
431 
432 /**
433  * @brief Get the threshold method
434  *
435  * @param[in] config The distance detector config
436  * @return the threshold method
437  */
439 
440 
441 /**
442  * @brief Set the peak sorting method
443  *
444  * See @ref acc_detector_distance_peak_sorting_t for details
445  *
446  * @param[out] config The distance detector config
447  * @param[in] peak_sorting The peak sorting method
448  */
450 
451 
452 /**
453  * @brief Get the peak sorting method
454  *
455  * See @ref acc_detector_distance_config_peak_sorting_set
456  *
457  * @param[in] config The distance detector config
458  * @return The peak sorting method
459  */
461 
462 
463 /**
464  * @brief Set the number frames to use for recorded threshold
465  *
466  * @param[out] config The distance detector config
467  * @param[in] num_frames Number of frames
468  */
470 
471 
472 /**
473  * @brief Get the number of frames to use for recorded threshold
474  *
475  * @param[in] config The distance detector config
476  * @return Number of frames
477  */
479 
480 
481 /**
482  * @brief Set fixed amplitude threshold value
483  *
484  * This value is used when the threshold method is set to @ref ACC_DETECTOR_DISTANCE_THRESHOLD_METHOD_FIXED_AMPLITUDE
485  *
486  * @param[out] config The distance detector config
487  * @param[in] fixed_threshold_value The fixed threshold value
488  */
490 
491 
492 /**
493  * @brief Get fixed amplitude threshold value
494  *
495  * See @ref acc_detector_distance_config_fixed_amplitude_threshold_value_set
496  *
497  * @param[in] config The distance detector config
498  * @return The fixed threshold value
499  */
501 
502 
503 /**
504  * @brief Set fixed strength threshold value
505  *
506  * This value is used when the threshold method is set to @ref ACC_DETECTOR_DISTANCE_THRESHOLD_METHOD_FIXED_STRENGTH
507  *
508  * @param[out] config The distance detector config
509  * @param[in] fixed_threshold_value The fixed threshold value
510  */
512 
513 
514 /**
515  * @brief Get fixed strength threshold value
516  *
517  * See @ref acc_detector_distance_config_fixed_strength_threshold_value_set
518  *
519  * @param[in] config The distance detector config
520  * @return The fixed threshold value
521  */
523 
524 
525 /**
526  * @brief Set threshold sensitivity
527  *
528  * High sensitivity yields a low detection threshold, low sensitivity yields a high detection threshold.
529  * Threshold sensitivity can be set within the interval [0, 1].
530  *
531  * @param[out] config The distance detector config
532  * @param[in] threshold_sensitivity The threshold sensitivity
533  */
535 
536 
537 /**
538  * @brief Get threshold sensitivity
539  *
540  * @param[in] config The distance detector config
541  * @return The threshold sensitivity
542  */
544 
545 
546 /**
547  * @brief Set reflector shape
548  *
549  * @param[out] config The distance detector config
550  * @param[in] reflector_shape The reflector shape
551  */
554 
555 
556 /**
557  * @brief Get reflector shape
558  *
559  * @param[in] config The distance detector config
560  * @return The reflector shape
561  */
563 
564 
565 /**
566  * @}
567  */
568 
569 #endif
acc_detector_distance_config_fixed_amplitude_threshold_value_get
float acc_detector_distance_config_fixed_amplitude_threshold_value_get(const acc_detector_distance_config_t *config)
Get fixed amplitude threshold value.
acc_detector_distance_result_t::processing_result
acc_processing_result_t * processing_result
Definition: acc_detector_distance.h:89
acc_detector_distance_get_sizes
bool acc_detector_distance_get_sizes(const acc_detector_distance_handle_t *handle, uint32_t *buffer_size, uint32_t *detector_cal_result_static_size)
Get the sizes needed given the provided detector handle.
acc_detector_distance_config_peak_sorting_set
void acc_detector_distance_config_peak_sorting_set(acc_detector_distance_config_t *config, acc_detector_distance_peak_sorting_t peak_sorting)
Set the peak sorting method.
acc_processing_result_t
Result provided by the processing module.
Definition: acc_processing.h:71
acc_detector_distance_config_close_range_leakage_cancellation_get
bool acc_detector_distance_config_close_range_leakage_cancellation_get(const acc_detector_distance_config_t *config)
Get if the close range leakage cancellation logic is enabled.
acc_detector_distance_result_t::temperature
int16_t temperature
Definition: acc_detector_distance.h:81
acc_detector_distance_config_threshold_method_set
void acc_detector_distance_config_threshold_method_set(acc_detector_distance_config_t *config, acc_detector_distance_threshold_method_t threshold_method)
Set the threshold method.
acc_cal_result_t
The result from a completed calibration.
Definition: acc_definitions_a121.h:32
acc_detector_distance_config_start_set
void acc_detector_distance_config_start_set(acc_detector_distance_config_t *config, float start_m)
Set the start of measured interval in meters.
acc_detector_distance_config_fixed_amplitude_threshold_value_set
void acc_detector_distance_config_fixed_amplitude_threshold_value_set(acc_detector_distance_config_t *config, float fixed_threshold_value)
Set fixed amplitude threshold value.
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_config_peak_sorting_get
acc_detector_distance_peak_sorting_t acc_detector_distance_config_peak_sorting_get(const acc_detector_distance_config_t *config)
Get the peak sorting method.
acc_detector_distance_config_num_frames_recorded_threshold_get
uint16_t acc_detector_distance_config_num_frames_recorded_threshold_get(const acc_detector_distance_config_t *config)
Get the number of frames to use for recorded threshold.
acc_detector_distance_result_t::num_distances
uint8_t num_distances
Definition: acc_detector_distance.h:63
acc_detector_distance_create
acc_detector_distance_handle_t * acc_detector_distance_create(const acc_detector_distance_config_t *config)
Create a distance detector with the provided configuration.
acc_detector_distance_config_threshold_sensitivity_get
float acc_detector_distance_config_threshold_sensitivity_get(const acc_detector_distance_config_t *config)
Get threshold sensitivity.
acc_detector_distance_config_destroy
void acc_detector_distance_config_destroy(acc_detector_distance_config_t *config)
Destroy a configuration for a distance detector.
acc_detector_distance_calibrate
bool acc_detector_distance_calibrate(acc_sensor_t *sensor, acc_detector_distance_handle_t *handle, const acc_cal_result_t *sensor_cal_result, void *buffer, uint32_t buffer_size, uint8_t *detector_cal_result_static, uint32_t detector_cal_result_static_size, acc_detector_cal_result_dynamic_t *detector_cal_result_dynamic, bool *calibration_complete)
Do a detector calibration.
acc_detector_distance_process
bool acc_detector_distance_process(acc_detector_distance_handle_t *handle, void *buffer, uint8_t *detector_cal_result_static, acc_detector_cal_result_dynamic_t *detector_cal_result_dynamic, bool *result_available, acc_detector_distance_result_t *result)
Process the data according to the configuration used in acc_detector_distance_config_create.
acc_detector_distance_result_t::sensor_config
const acc_config_t * sensor_config
Definition: acc_detector_distance.h:103
acc_processing_metadata_t
Metadata that will be populated by the processing module during creation.
Definition: acc_processing.h:36
detector_cal_result_static
static uint8_t * detector_cal_result_static
Definition: example_detector_distance_calibration_caching.c:73
acc_detector_distance_config_max_step_length_get
uint16_t acc_detector_distance_config_max_step_length_get(const acc_detector_distance_config_t *config)
Get the maximum step length.
acc_sensor.h
acc_detector_cal_result_dynamic_t
Definition: acc_detector_distance_definitions.h:19
acc_detector_distance_config_close_range_leakage_cancellation_set
void acc_detector_distance_config_close_range_leakage_cancellation_set(acc_detector_distance_config_t *config, bool enable)
Enable the close range leakage cancellation logic.
acc_detector_distance_config_end_get
float acc_detector_distance_config_end_get(const acc_detector_distance_config_t *config)
Get the end of measured interval in meters.
acc_detector_distance_config_max_profile_set
void acc_detector_distance_config_max_profile_set(acc_detector_distance_config_t *config, acc_config_profile_t max_profile)
Set the max profile.
acc_detector_distance_config_max_profile_get
acc_config_profile_t acc_detector_distance_config_max_profile_get(const acc_detector_distance_config_t *config)
Get the max profile.
acc_detector_distance_destroy
void acc_detector_distance_destroy(acc_detector_distance_handle_t *handle)
Destroy the distance detector handle, freeing its resources.
acc_detector_distance_config_signal_quality_set
void acc_detector_distance_config_signal_quality_set(acc_detector_distance_config_t *config, float signal_quality)
Set the signal quality.
acc_config_t
struct acc_config acc_config_t
Definition: acc_config.h:26
acc_detector_distance_result_t::processing_metadata
acc_processing_metadata_t * processing_metadata
Definition: acc_detector_distance.h:96
detector_cal_result_static_size
static uint32_t detector_cal_result_static_size
Definition: example_detector_distance_calibration_caching.c:74
acc_detector_distance_result_t::calibration_needed
bool calibration_needed
Definition: acc_detector_distance.h:76
acc_detector_distance_config_log
void acc_detector_distance_config_log(const acc_detector_distance_handle_t *handle, const acc_detector_distance_config_t *config)
Print a configuration to the log.
acc_detector_distance_prepare
bool acc_detector_distance_prepare(const acc_detector_distance_handle_t *handle, const acc_detector_distance_config_t *config, acc_sensor_t *sensor, const acc_cal_result_t *sensor_cal_result, void *buffer, uint32_t buffer_size)
Prepare the detector for measurements.
acc_detector_distance_config_fixed_strength_threshold_value_get
float acc_detector_distance_config_fixed_strength_threshold_value_get(const acc_detector_distance_config_t *config)
Get fixed strength threshold value.
acc_detector_distance_result_t
Distance detector result.
Definition: acc_detector_distance.h:50
acc_detector_distance_config_end_set
void acc_detector_distance_config_end_set(acc_detector_distance_config_t *config, float end_m)
Set the end of measured interval in meters.
acc_detector_distance_config_num_frames_recorded_threshold_set
void acc_detector_distance_config_num_frames_recorded_threshold_set(acc_detector_distance_config_t *config, uint16_t num_frames)
Set the number frames to use for recorded threshold.
acc_sensor_id_t
uint32_t acc_sensor_id_t
Type representing a sensor ID.
Definition: acc_definitions_common.h:14
acc_detector_distance_handle_t
struct acc_detector_distance_handle acc_detector_distance_handle_t
Definition: acc_detector_distance.h:36
acc_detector_distance_definitions.h
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_distance_update_calibration
bool acc_detector_distance_update_calibration(acc_sensor_t *sensor, acc_detector_distance_handle_t *handle, const acc_cal_result_t *sensor_cal_result, void *buffer, uint32_t buffer_size, acc_detector_cal_result_dynamic_t *detector_cal_result_dynamic, bool *calibration_complete)
Update the calibration.
acc_detector_distance_result_t::near_start_edge_status
bool near_start_edge_status
Definition: acc_detector_distance.h:67
ACC_DETECTOR_DISTANCE_RESULT_MAX_NUM_DISTANCES
#define ACC_DETECTOR_DISTANCE_RESULT_MAX_NUM_DISTANCES
Definition: acc_detector_distance.h:28
acc_detector_distance_config_signal_quality_get
float acc_detector_distance_config_signal_quality_get(const acc_detector_distance_config_t *config)
Get the signal quality.
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_config_threshold_method_get
acc_detector_distance_threshold_method_t acc_detector_distance_config_threshold_method_get(const acc_detector_distance_config_t *config)
Get the threshold method.
acc_detector_distance_config_reflector_shape_set
void acc_detector_distance_config_reflector_shape_set(acc_detector_distance_config_t *config, acc_detector_distance_reflector_shape_t reflector_shape)
Set reflector shape.
acc_config_profile_t
acc_config_profile_t
Profile.
Definition: acc_definitions_a121.h:52
acc_definitions_common.h
acc_detector_distance_config_threshold_sensitivity_set
void acc_detector_distance_config_threshold_sensitivity_set(acc_detector_distance_config_t *config, float threshold_sensitivity)
Set threshold sensitivity.
acc_detector_distance_config_create
acc_detector_distance_config_t * acc_detector_distance_config_create(void)
Create a configuration for a distance detector.
acc_detector_distance_config_fixed_strength_threshold_value_set
void acc_detector_distance_config_fixed_strength_threshold_value_set(acc_detector_distance_config_t *config, float fixed_threshold_value)
Set fixed strength threshold value.
acc_detector_distance_config_sensor_get
acc_sensor_id_t acc_detector_distance_config_sensor_get(const acc_detector_distance_config_t *config)
Get the sensor ID.
acc_detector_distance_config_start_get
float acc_detector_distance_config_start_get(const acc_detector_distance_config_t *config)
Get the start of measured interval in meters.
acc_detector_distance_config_sensor_set
void acc_detector_distance_config_sensor_set(acc_detector_distance_config_t *config, acc_sensor_id_t sensor)
Set the sensor ID.
acc_detector_distance_config_t
struct acc_detector_distance_config acc_detector_distance_config_t
Definition: acc_detector_distance.h:44
acc_detector_distance_config_max_step_length_set
void acc_detector_distance_config_max_step_length_set(acc_detector_distance_config_t *config, uint16_t max_step_length)
Set the maximum step length.
acc_processing.h
acc_sensor_t
struct acc_sensor acc_sensor_t
Definition: acc_sensor.h:31
acc_detector_distance_config_reflector_shape_get
acc_detector_distance_reflector_shape_t acc_detector_distance_config_reflector_shape_get(const acc_detector_distance_config_t *config)
Get reflector shape.
acc_definitions_a121.h