SparkFun Pulsed Coherent Radar Sensor  v2.0.0-3-g4d2d89c
Library for the SparkFun Pulsed Coherent Radar Sensor
Loading...
Searching...
No Matches
sfDevXM125Distance.h
Go to the documentation of this file.
1
13#pragma once
14
15#include "sfDevXM125Core.h"
16
17// Defines
18
19/* ****************************** Distance Values ****************************** */
20
21const uint32_t SFE_XM125_DISTANCE_MAJOR_VERSION_MASK = 0xffff0000;
22const uint32_t SFE_XM125_DISTANCE_MINOR_VERSION_MASK = 0x0000ff00;
23const uint32_t SFE_XM125_DISTANCE_PATCH_VERSION_MASK = 0x000000ff;
24const uint32_t SFE_XM125_DISTANCE_NUMBER_DISTANCES_MASK = 0x0000000f;
25const uint32_t SFE_XM125_DISTANCE_NEAR_START_EDGE_MASK = 0x00000100;
27const uint32_t SFE_XM125_DISTANCE_TEMPERATURE_MASK = 0xffff0000;
28const uint32_t SFE_XM125_DISTANCE_RSS_REGISTER_OK_MASK = 0x00000001;
29const uint32_t SFE_XM125_DISTANCE_CONFIG_CREATE_OK_MASK = 0x00000002;
30const uint32_t SFE_XM125_DISTANCE_SENSOR_CREATE_OK_MASK = 0x00000004;
33const uint32_t SFE_XM125_DISTANCE_SENSOR_BUFFER_OK_MASK = 0x00000020;
35const uint32_t SFE_XM125_DISTANCE_CONFIG_APPLY_OK_MASK = 0x00000080;
48const uint32_t SFE_XM125_DISTANCE_DETECTOR_ERROR_MASK = 0x10000000;
49const uint32_t SFE_XM125_DISTANCE_BUSY_MASK = 0x80000000;
51
59
79
80const uint32_t SFE_XM125_DISTANCE_DETECTOR_STATUS_MASK = 0b10010000111111110000000011111111;
81
82const uint16_t SFE_XM125_DISTANCE_VERSION = 0x00;
83typedef struct
84{
85 uint32_t distance_major : 16;
86 uint32_t distance_minor : 8;
87 uint32_t distance_patch : 8;
89
91typedef struct
92{
98 uint32_t reserved1 : 27;
100
102
104typedef struct
105{
116 uint32_t reserved1 : 6;
127 uint32_t reserved2 : 2;
129 uint32_t reserved3 : 2;
130 uint32_t distance_busy : 1;
132
133const uint16_t SFE_XM125_DISTANCE_RESULT = 0x10;
134typedef struct
135{
137 uint32_t rsvd1 : 4; // skips "reserved" bits
141 uint32_t reserved1 : 5;
142 uint32_t distance_temperature : 16;
144
165
166// Default Value: 250mm
167const uint16_t SFE_XM125_DISTANCE_START = 0x40;
169
170// Default Value: 3000mm
171const uint16_t SFE_XM125_DISTANCE_END = 0x41;
172const uint16_t sfe_xm125_distance_end_default = 3000;
173
174// Default Value: 0
177
178// Default Value: True
181
182// Default Value: 15000
185
186// Default: PROFILE5 (enum)
187const uint16_t SFE_XM125_DISTANCE_MAX_PROFILE = 0x45;
188typedef enum
189{
196
197// Default Value: CFAR (enum)
199typedef enum
200{
206
207// Default Value: STRONGEST (enum)
209typedef enum
210{
214
215// Default Value: 100
218
219// Default Value: 100000
222
223// Default Value: 500
226
227// Default Value: GENERIC
229typedef enum
230{
234
235// Default Value: 0
238
239// Default Value: False
242
243const uint16_t SFE_XM125_DISTANCE_COMMAND = 0x100;
244typedef enum
245{
256
265const uint32_t SFE_XM125_DISTANCE_RESET_MODULE = 1381192737;
266
267// Distance class definition
268
270{
271 public:
281 sfTkError_t begin(sfTkII2C *theBus = nullptr);
282
287 uint32_t end = sfe_xm125_distance_end_default);
288
292 sfTkError_t detectorReadingSetup();
293
297 sfTkError_t getDetectorVersion(uint32_t &major, uint32_t &minor, uint32_t &patch);
298
302 sfTkError_t getDetectorError(uint32_t &error);
303
308 sfTkError_t getDetectorErrorStatus(uint32_t &status);
309
313 sfTkError_t getMeasureCounter(uint32_t &counter);
314
318 sfTkError_t getDetectorStatus(uint32_t &status);
319
323 sfTkError_t getNumberDistances(uint32_t &distance);
324
329 sfTkError_t getNearStartEdge(uint32_t &edge);
330
334 sfTkError_t getCalibrationNeeded(uint32_t &calibrate);
335
339 sfTkError_t getMeasureDistanceError(uint32_t &error);
340
346 sfTkError_t getTemperature(int16_t &temperature);
347
348 //--------------------------------------------------------------------------------
349 // Generic distance peak distance method
355 sfTkError_t getPeakDistance(uint8_t num, uint32_t &peak);
356
360 sfTkError_t getPeak0Distance(uint32_t &peak);
361
365 sfTkError_t getPeak1Distance(uint32_t &peak);
366
370 sfTkError_t getPeak2Distance(uint32_t &peak);
371
375 sfTkError_t getPeak3Distance(uint32_t &peak);
376
380 sfTkError_t getPeak4Distance(uint32_t &peak);
381
385 sfTkError_t getPeak5Distance(uint32_t &peak);
386
390 sfTkError_t getPeak6Distance(uint32_t &peak);
391
395 sfTkError_t getPeak7Distance(uint32_t &peak);
396
400 sfTkError_t getPeak8Distance(uint32_t &peak);
401
405 sfTkError_t getPeak9Distance(uint32_t &peak);
406
407 //--------------------------------------------------------------------------------
408 // Generic distance peak strength method
414 sfTkError_t getPeakStrength(uint8_t num, int32_t &peak);
415
419 sfTkError_t getPeak0Strength(int32_t &peak);
420
424 sfTkError_t getPeak1Strength(int32_t &peak);
425
429 sfTkError_t getPeak2Strength(int32_t &peak);
430
434 sfTkError_t getPeak3Strength(int32_t &peak);
435
439 sfTkError_t getPeak4Strength(int32_t &peak);
440
444 sfTkError_t getPeak5Strength(int32_t &peak);
445
449 sfTkError_t getPeak6Strength(int32_t &peak);
450
454 sfTkError_t getPeak7Strength(int32_t &peak);
455
459 sfTkError_t getPeak8Strength(int32_t &peak);
460
464 sfTkError_t getPeak9Strength(int32_t &peak);
465
471 sfTkError_t getStart(uint32_t &startVal);
472
478 sfTkError_t setStart(uint32_t start);
479
485 sfTkError_t getEnd(uint32_t &end);
486
492 sfTkError_t setEnd(uint32_t end);
493
499 sfTkError_t getMaxStepLength(uint32_t &length);
500
506 sfTkError_t setMaxStepLength(uint32_t length);
507
512 sfTkError_t getCloseRangeLeakageCancellation(bool &range);
513
518 sfTkError_t setCloseRangeLeakageCancellation(bool range);
519
525 sfTkError_t getSignalQuality(uint32_t &signal);
526
532 sfTkError_t setSignalQuality(uint32_t signal);
533
537 sfTkError_t getMaxProfile(uint32_t &profile);
538
542 sfTkError_t setMaxProfile(uint32_t profile);
543
546 sfTkError_t getThresholdMethod(uint32_t &method);
547
551 sfTkError_t setThresholdMethod(uint32_t method);
552
556 sfTkError_t getPeakSorting(uint32_t &peak);
557
561 sfTkError_t setPeakSorting(uint32_t peak);
562
567 sfTkError_t getNumFramesRecordedThreshold(uint32_t &thresh);
568
573 sfTkError_t setNumFramesRecordedThreshold(uint32_t thresh);
574
580 sfTkError_t getFixedAmpThreshold(uint32_t &thresh);
581
587 sfTkError_t setFixedAmpThreshold(uint32_t thresh);
588
595 sfTkError_t getThresholdSensitivity(uint32_t &thresh);
596
603 sfTkError_t setThresholdSensitivity(uint32_t thresh);
604
609 sfTkError_t getReflectorShape(uint32_t &shape);
610
615 sfTkError_t setReflectorShape(uint32_t shape);
616
622 sfTkError_t getFixedStrengthThresholdValue(int32_t &thresh);
623
629 sfTkError_t setFixedStrengthThresholdValue(int32_t thresh);
630
635 sfTkError_t getMeasureOneWakeup(bool &measure);
636
641 sfTkError_t setMeasureOneWakeup(bool measure);
642
647 sfTkError_t setCommand(uint32_t command);
648
652 sfTkError_t applyConfiguration();
653
657 sfTkError_t start();
658
662 sfTkError_t stop();
663
667 sfTkError_t calibrate();
668
672 sfTkError_t recalibrate();
673
677 sfTkError_t enableUartLogs();
678
682 sfTkError_t disableUartLogs();
683
687 sfTkError_t logConfiguration();
688
692 sfTkError_t reset();
693
697 sfTkError_t busyWait();
698};
Definition: sfDevXM125Core.h:26
Definition: sfDevXM125Distance.h:270
sfTkError_t getCloseRangeLeakageCancellation(bool &range)
This function reads if the close range leakage cancellation logic is enabled. Default Value: true.
Definition: sfDevXM125Distance.cpp:585
sfTkError_t getMeasureCounter(uint32_t &counter)
This function returns the measure counter, the number of measurements performed since restart.
Definition: sfDevXM125Distance.cpp:246
sfTkError_t setThresholdMethod(uint32_t method)
This function sets the threshold method.
Definition: sfDevXM125Distance.cpp:634
sfTkError_t getPeak3Distance(uint32_t &peak)
This function returns the distance to peak 3 Note: This value is a factor 1000 larger than the RSS va...
Definition: sfDevXM125Distance.cpp:405
sfTkError_t recalibrate()
This function recalibrates the device by writing the defined recalibrate value to the distance comman...
Definition: sfDevXM125Distance.cpp:758
sfTkError_t setSignalQuality(uint32_t signal)
This function sets the high signal quality in a better SNR (because of higher HWAAS) and higher power...
Definition: sfDevXM125Distance.cpp:610
sfTkError_t setMeasureOneWakeup(bool measure)
This function sets the measure on wakeup status. Default Value: false.
Definition: sfDevXM125Distance.cpp:721
sfTkError_t getPeak8Distance(uint32_t &peak)
This function returns the distance to peak 8 Note: This value is a factor 1000 larger than the RSS va...
Definition: sfDevXM125Distance.cpp:435
sfTkError_t getPeak0Distance(uint32_t &peak)
This function returns the distance to peak 0 Note: This value is a factor 1000 larger than the RSS va...
Definition: sfDevXM125Distance.cpp:387
sfTkError_t enableUartLogs()
This function enables the uart logs of the device by writing the defined value to the distance comman...
Definition: sfDevXM125Distance.cpp:764
sfTkError_t disableUartLogs()
This function disables the uart logs of the device by writing the defined value to the distance comma...
Definition: sfDevXM125Distance.cpp:770
sfTkError_t getSignalQuality(uint32_t &signal)
This function returns the high signal quality in a better SNR (because of higher HWAAS) and higher po...
Definition: sfDevXM125Distance.cpp:604
sfTkError_t stop()
This function stops the device by writing the defined stop value to the distance command register.
Definition: sfDevXM125Distance.cpp:746
sfTkError_t getPeakDistance(uint8_t num, uint32_t &peak)
This function returns the distance to peak num Note: This value is a factor 1000 larger than the RSS ...
Definition: sfDevXM125Distance.cpp:345
sfTkError_t logConfiguration()
This function enables the configuration log of the device by writing the defined value to the distanc...
Definition: sfDevXM125Distance.cpp:776
sfTkError_t start()
This function starts the device by writing the defined start value to the distance command register.
Definition: sfDevXM125Distance.cpp:740
sfTkError_t getTemperature(int16_t &temperature)
This function returns the temperature in sensor during measurements (in degree Celsius)....
Definition: sfDevXM125Distance.cpp:326
sfTkError_t getCalibrationNeeded(uint32_t &calibrate)
This function returns the indication of a sensor calibration needed.
Definition: sfDevXM125Distance.cpp:290
sfTkError_t getNumFramesRecordedThreshold(uint32_t &thresh)
This function returns the number frames to use for recorded threshold. Default Value: 100.
Definition: sfDevXM125Distance.cpp:652
sfTkError_t setMaxProfile(uint32_t profile)
This function sets the max profile of the device Default value = PROFILE5.
Definition: sfDevXM125Distance.cpp:622
sfTkError_t getPeak1Strength(int32_t &peak)
This function returns the strength of peak 1 Note: This value is a factor 1000 larger than the RSS va...
Definition: sfDevXM125Distance.cpp:495
sfTkError_t setFixedStrengthThresholdValue(int32_t thresh)
This function sets the fixed strength threshold value. Default Value: 0 Note: This value is a factor ...
Definition: sfDevXM125Distance.cpp:706
sfTkError_t setReflectorShape(uint32_t shape)
This function sets the reflector shape Default Value: GENERIC.
Definition: sfDevXM125Distance.cpp:694
sfTkError_t getDetectorError(uint32_t &error)
This function returns if there was an error from the protocol status register.
Definition: sfDevXM125Distance.cpp:183
sfTkError_t reset()
This function resets the distance detector settings of the device.
Definition: sfDevXM125Distance.cpp:782
sfTkError_t getNumberDistances(uint32_t &distance)
This function returns the number of detected distances.
Definition: sfDevXM125Distance.cpp:258
sfTkError_t getPeakStrength(uint8_t num, int32_t &peak)
This function returns the strength to peak num Note: This value is a factor 1000 larger than the RSS ...
Definition: sfDevXM125Distance.cpp:447
sfTkError_t getPeak6Distance(uint32_t &peak)
This function returns the distance to peak 6 Note: This value is a factor 1000 larger than the RSS va...
Definition: sfDevXM125Distance.cpp:423
sfTkError_t getDetectorErrorStatus(uint32_t &status)
This function returns the error status according to the bit mask value for the distance devices error...
Definition: sfDevXM125Distance.cpp:189
sfTkError_t setThresholdSensitivity(uint32_t thresh)
This function sets the threshold sensitivity (0 <= sensitivity <= 1000) Note: This value is a factor ...
Definition: sfDevXM125Distance.cpp:682
sfTkError_t getPeak2Strength(int32_t &peak)
This function returns the strength of peak 2 Note: This value is a factor 1000 larger than the RSS va...
Definition: sfDevXM125Distance.cpp:501
sfTkError_t getThresholdMethod(uint32_t &method)
This function returns the threshold method.
Definition: sfDevXM125Distance.cpp:628
sfTkError_t busyWait()
Completes a busy wait loop while the device is uploading information by waiting for the status.
Definition: sfDevXM125Distance.cpp:788
sfTkError_t calibrate()
This function calibrates the device by writing the defined calibration value to the distance command ...
Definition: sfDevXM125Distance.cpp:752
sfTkError_t setMaxStepLength(uint32_t length)
This function sets the used to limit step length. If set to 0 (default), the step length is calculate...
Definition: sfDevXM125Distance.cpp:579
sfTkError_t getPeak5Strength(int32_t &peak)
This function returns the strength of peak 5 Note: This value is a factor 1000 larger than the RSS va...
Definition: sfDevXM125Distance.cpp:519
sfTkError_t getPeak7Strength(int32_t &peak)
This function returns the strength of peak 7 Note: This value is a factor 1000 larger than the RSS va...
Definition: sfDevXM125Distance.cpp:531
sfTkError_t getEnd(uint32_t &end)
This function returns the end of measured interval in millimeters. Note: This value is a factor 1000 ...
Definition: sfDevXM125Distance.cpp:561
sfTkError_t getPeak8Strength(int32_t &peak)
This function returns the strength of peak 8 Note: This value is a factor 1000 larger than the RSS va...
Definition: sfDevXM125Distance.cpp:537
sfTkError_t setCloseRangeLeakageCancellation(bool range)
This function sets the close range leakage cancellation logic. Default Value: true.
Definition: sfDevXM125Distance.cpp:597
sfTkError_t getReflectorShape(uint32_t &shape)
This function returns the reflector shape Default Value: GENERIC.
Definition: sfDevXM125Distance.cpp:688
sfTkError_t getThresholdSensitivity(uint32_t &thresh)
This function returns the threshold sensitivity (0 <= sensitivity <= 1000) Note: This value is a fact...
Definition: sfDevXM125Distance.cpp:676
sfTkError_t getPeakSorting(uint32_t &peak)
This function returns the peak sorting method.
Definition: sfDevXM125Distance.cpp:640
sfTkError_t getDetectorStatus(uint32_t &status)
This function returns the status of the device if there are any issues with any of the status's liste...
Definition: sfDevXM125Distance.cpp:252
sfTkError_t getMeasureOneWakeup(bool &measure)
This function returns the measure on wakeup status. Default Value: false.
Definition: sfDevXM125Distance.cpp:712
sfTkError_t setEnd(uint32_t end)
This function sets the end of measured interval in millimeters. Note: This value is a factor 1000 lar...
Definition: sfDevXM125Distance.cpp:567
sfTkError_t setFixedAmpThreshold(uint32_t thresh)
This function sets the fixed amplitude threshold value. Note: This value is a factor 1000 larger than...
Definition: sfDevXM125Distance.cpp:670
sfTkError_t getStart(uint32_t &startVal)
This function returns the start of measured interval in millimeters. Note: This value is a factor 100...
Definition: sfDevXM125Distance.cpp:549
sfTkError_t setCommand(uint32_t command)
This function sets the specific execute command as defined in the datasheet on Page 25,...
Definition: sfDevXM125Distance.cpp:728
sfTkError_t detectorReadingSetup()
This function does all the required checks and busy waits to make sure the device is ready for distan...
Definition: sfDevXM125Distance.cpp:111
sfTkError_t setNumFramesRecordedThreshold(uint32_t thresh)
This function sets the number frames to use for recorded threshold. Default Value: 100.
Definition: sfDevXM125Distance.cpp:658
sfTkError_t getPeak6Strength(int32_t &peak)
This function returns the strength of peak 6 Note: This value is a factor 1000 larger than the RSS va...
Definition: sfDevXM125Distance.cpp:525
sfTkError_t getPeak2Distance(uint32_t &peak)
This function returns the distance to peak 2 Note: This value is a factor 1000 larger than the RSS va...
Definition: sfDevXM125Distance.cpp:399
sfTkError_t getPeak9Strength(int32_t &peak)
This function returns the strength of peak 9 Note: This value is a factor 1000 larger than the RSS va...
Definition: sfDevXM125Distance.cpp:543
sfTkError_t getPeak5Distance(uint32_t &peak)
This function returns the distance to peak 5 Note: This value is a factor 1000 larger than the RSS va...
Definition: sfDevXM125Distance.cpp:417
sfTkError_t applyConfiguration()
This function applies the configuration to the device by writing the defined value to the distance co...
Definition: sfDevXM125Distance.cpp:734
sfTkError_t setStart(uint32_t start)
This function sets the start of measured interval in millimeters. Note: This value is a factor 1000 l...
Definition: sfDevXM125Distance.cpp:555
sfTkError_t getPeak4Distance(uint32_t &peak)
This function returns the distance to peak 4 Note: This value is a factor 1000 larger than the RSS va...
Definition: sfDevXM125Distance.cpp:411
sfTkError_t getPeak0Strength(int32_t &peak)
This function returns the strength of peak 0 Note: This value is a factor 1000 larger than the RSS va...
Definition: sfDevXM125Distance.cpp:489
sfTkError_t getPeak3Strength(int32_t &peak)
This function returns the strength of peak 3 Note: This value is a factor 1000 larger than the RSS va...
Definition: sfDevXM125Distance.cpp:507
sfTkError_t getFixedStrengthThresholdValue(int32_t &thresh)
This function returns the fixed strength threshold value. Default Value: 0 Note: This value is a fact...
Definition: sfDevXM125Distance.cpp:700
sfTkError_t getMeasureDistanceError(uint32_t &error)
This function returns if the measure command failed.
Definition: sfDevXM125Distance.cpp:308
sfTkError_t getPeak7Distance(uint32_t &peak)
This function returns the distance to peak 7 Note: This value is a factor 1000 larger than the RSS va...
Definition: sfDevXM125Distance.cpp:429
sfTkError_t getMaxStepLength(uint32_t &length)
This function returns the used to limit step length. If set to 0 (default), the step length is calcul...
Definition: sfDevXM125Distance.cpp:573
sfTkError_t getFixedAmpThreshold(uint32_t &thresh)
This function returns the fixed amplitude threshold value. Note: This value is a factor 1000 larger t...
Definition: sfDevXM125Distance.cpp:664
sfTkError_t getPeak9Distance(uint32_t &peak)
This function returns the distance to peak 9 Note: This value is a factor 1000 larger than the RSS va...
Definition: sfDevXM125Distance.cpp:441
sfTkError_t setPeakSorting(uint32_t peak)
This function sets the peak sorting method.
Definition: sfDevXM125Distance.cpp:646
sfTkError_t getNearStartEdge(uint32_t &edge)
This function returns the indication that there might be an object near the start point of the measur...
Definition: sfDevXM125Distance.cpp:273
sfTkError_t distanceSetup(uint32_t start=sfe_xm125_distance_start_default, uint32_t end=sfe_xm125_distance_end_default)
This function sets all the beginning values for a basic I2C example to be run on the device for prese...
Definition: sfDevXM125Distance.cpp:44
sfTkError_t getPeak1Distance(uint32_t &peak)
This function returns the distance to peak 1 Note: This value is a factor 1000 larger than the RSS va...
Definition: sfDevXM125Distance.cpp:393
sfTkError_t getMaxProfile(uint32_t &profile)
This function returns the max profile of the device. Default value = PROFILE5.
Definition: sfDevXM125Distance.cpp:616
sfTkError_t getPeak4Strength(int32_t &peak)
This function returns the strength of peak 4 Note: This value is a factor 1000 larger than the RSS va...
Definition: sfDevXM125Distance.cpp:513
sfTkError_t getDetectorVersion(uint32_t &major, uint32_t &minor, uint32_t &patch)
This function returns the version number of the device structure: major.minor.patch.
Definition: sfDevXM125Distance.cpp:166
sfTkError_t begin(sfTkII2C *theBus=nullptr)
Initializes the distance detector device.
Definition: sfDevXM125Distance.cpp:24
const uint32_t SFE_XM125_DISTANCE_NUMBER_DISTANCES_MASK
Definition: sfDevXM125Distance.h:24
const uint32_t SFE_XM125_DISTANCE_DISABLE_UART_LOGS
Definition: sfDevXM125Distance.h:263
const uint32_t SFE_XM125_DISTANCE_SENSOR_BUFFER_ERROR_MASK_SHIFT
Definition: sfDevXM125Distance.h:67
const uint32_t SFE_XM125_DISTANCE_DETECTOR_STATUS_MASK_SHIFT
Definition: sfDevXM125Distance.h:78
const uint32_t SFE_XM125_DISTANCE_DETECTOR_CALIBRATE_ERROR_MASK
Definition: sfDevXM125Distance.h:47
sfe_xm125_distance_profile_t
Definition: sfDevXM125Distance.h:189
@ XM125_DISTANCE_PROFILE3
Definition: sfDevXM125Distance.h:192
@ XM125_DISTANCE_PROFILE2
Definition: sfDevXM125Distance.h:191
@ XM125_DISTANCE_PROFILE5
Definition: sfDevXM125Distance.h:194
@ XM125_DISTANCE_PROFILE4
Definition: sfDevXM125Distance.h:193
@ XM125_DISTANCE_PROFILE1
Definition: sfDevXM125Distance.h:190
const uint32_t sfe_xm125_distance_fixed_amp_thresh_val_default
Definition: sfDevXM125Distance.h:221
const uint16_t SFE_XM125_DISTANCE_PEAK_SORTING
Definition: sfDevXM125Distance.h:208
const uint32_t SFE_XM125_DISTANCE_SENSOR_CREATE_OK_MASK
Definition: sfDevXM125Distance.h:30
const uint16_t sfe_xm125_distance_num_frames_recorded_thresh_default
Definition: sfDevXM125Distance.h:217
const uint16_t SFE_XM125_DISTANCE_PEAK9_DISTANCE
Definition: sfDevXM125Distance.h:154
const uint16_t SFE_XM125_DISTANCE_PEAK4_STRENGTH
Definition: sfDevXM125Distance.h:159
const uint16_t sfe_xm125_distance_max_step_length_default
Definition: sfDevXM125Distance.h:176
const uint32_t SFE_XM125_DISTANCE_NEAR_START_EDGE_MASK
Definition: sfDevXM125Distance.h:25
sfe_xm125_distance_peak_sorting_t
Definition: sfDevXM125Distance.h:210
@ XM125_DISTANCE_STRONGEST
Definition: sfDevXM125Distance.h:212
@ XM125_DISTANCE_CLOSEST
Definition: sfDevXM125Distance.h:211
const uint32_t SFE_XM125_DISTANCE_MINOR_VERSION_MASK
Definition: sfDevXM125Distance.h:22
const uint32_t SFE_XM125_DISTANCE_ALL_ERROR_MASK
Definition: sfDevXM125Distance.h:52
const uint32_t SFE_XM125_DISTANCE_ENABLE_UART_LOGS
Definition: sfDevXM125Distance.h:262
const uint32_t SFE_XM125_DISTANCE_CONFIG_CREATE_ERROR_MASK
Definition: sfDevXM125Distance.h:39
const uint32_t SFE_XM125_DISTANCE_SENSOR_BUFFER_ERROR_MASK
Definition: sfDevXM125Distance.h:43
const uint16_t SFE_XM125_DISTANCE_MAX_PROFILE
Definition: sfDevXM125Distance.h:187
const uint32_t SFE_XM125_DISTANCE_BUSY_MASK
Definition: sfDevXM125Distance.h:49
const uint16_t SFE_XM125_DISTANCE_PROTOCOL_STATUS
Definition: sfDevXM125Distance.h:90
const uint32_t SFE_XM125_DISTANCE_RSS_REGISTER_OK_MASK
Definition: sfDevXM125Distance.h:28
const uint16_t SFE_XM125_DISTANCE_PEAK0_DISTANCE
Definition: sfDevXM125Distance.h:145
const uint32_t SFE_XM125_DISTANCE_DETECTOR_ERROR_MASK
Definition: sfDevXM125Distance.h:48
const uint32_t SFE_XM125_DISTANCE_RSS_REGISTER_ERROR_MASK
Definition: sfDevXM125Distance.h:38
const uint16_t SFE_XM125_DISTANCE_VERSION
Definition: sfDevXM125Distance.h:82
const uint32_t SFE_XM125_DISTANCE_CONFIG_APPLY_ERROR_MASK_SHIFT
Definition: sfDevXM125Distance.h:69
const uint16_t SFE_XM125_DISTANCE_REFLECTOR_SHAPE
Definition: sfDevXM125Distance.h:228
const bool sfe_xm125_distance_measure_on_wakup
Definition: sfDevXM125Distance.h:241
const uint32_t SFE_XM125_DISTANCE_SENSOR_BUFFER_OK_MASK
Definition: sfDevXM125Distance.h:33
const uint32_t SFE_XM125_DISTANCE_DETECTOR_BUFFER_ERROR_MASK
Definition: sfDevXM125Distance.h:42
const uint32_t SFE_XM125_DISTANCE_BUSY_MASK_SHIFT
Definition: sfDevXM125Distance.h:73
const uint32_t SFE_XM125_DISTANCE_RSS_REGISTER_ERROR_MASK_SHIFT
Definition: sfDevXM125Distance.h:62
const uint16_t SFE_XM125_DISTANCE_PEAK1_STRENGTH
Definition: sfDevXM125Distance.h:156
const uint16_t sfe_xm125_distance_fixed_strength_threshold_val_default
Definition: sfDevXM125Distance.h:237
const uint32_t SFE_XM125_DISTANCE_RESET_MODULE
Definition: sfDevXM125Distance.h:265
const uint32_t SFE_XM125_DISTANCE_APPLY_CONFIGURATION
Definition: sfDevXM125Distance.h:257
const uint32_t SFE_XM125_DISTANCE_TEMPERATURE_MASK
Definition: sfDevXM125Distance.h:27
const uint16_t SFE_XM125_DISTANCE_THREHSOLD_SENSITIVITY
Definition: sfDevXM125Distance.h:224
const uint16_t sfe_xm125_distance_threshold_sensitivity_default
Definition: sfDevXM125Distance.h:225
const uint16_t SFE_XM125_DISTANCE_PEAK4_DISTANCE
Definition: sfDevXM125Distance.h:149
const uint16_t SFE_XM125_DISTANCE_PEAK5_DISTANCE
Definition: sfDevXM125Distance.h:150
const uint32_t SFE_XM125_DISTANCE_STOP_DETECTOR
Definition: sfDevXM125Distance.h:259
const uint16_t SFE_XM125_DISTANCE_PEAK9_STRENGTH
Definition: sfDevXM125Distance.h:164
const uint16_t SFE_XM125_DISTANCE_FIXED_STRENGTH_THRESHOLD_VAL
Definition: sfDevXM125Distance.h:236
const uint32_t SFE_XM125_DISTANCE_CALIBRATION_BUFFER_OK_MASK
Definition: sfDevXM125Distance.h:34
const uint16_t SFE_XM125_DISTANCE_PEAK8_DISTANCE
Definition: sfDevXM125Distance.h:153
sfe_xm125_distance_threshold_method_t
Definition: sfDevXM125Distance.h:200
@ XM125_DISTANCE_RECORDED
Definition: sfDevXM125Distance.h:202
@ XM125_DISTANCE_FIXED_STRENGTH
Definition: sfDevXM125Distance.h:204
@ XM125_DISTANCE_FIXED_AMPLITUDE
Definition: sfDevXM125Distance.h:201
@ XM125_DISTANCE_CFAR
Definition: sfDevXM125Distance.h:203
const uint32_t SFE_XM125_DISTANCE_START_DETECTOR
Definition: sfDevXM125Distance.h:258
const uint32_t SFE_XM125_DISTANCE_CALIBRATION_BUFFER_ERROR_MASK
Definition: sfDevXM125Distance.h:44
const uint32_t SFE_XM125_DISTANCE_PATCH_VERSION_MASK
Definition: sfDevXM125Distance.h:23
sfe_xm125_distance_reflector_shape_t
Definition: sfDevXM125Distance.h:230
@ XM125_DISTANCE_GENERIC
Definition: sfDevXM125Distance.h:231
@ XM125_DISTANCE_PLANAR
Definition: sfDevXM125Distance.h:232
const uint32_t SFE_XM125_DISTANCE_DETECTOR_STATUS_MASK
Definition: sfDevXM125Distance.h:80
const uint16_t SFE_XM125_DISTANCE_PEAK3_DISTANCE
Definition: sfDevXM125Distance.h:148
const uint16_t SFE_XM125_DISTANCE_PEAK2_STRENGTH
Definition: sfDevXM125Distance.h:157
const uint16_t SFE_XM125_DISTANCE_DETECTOR_STATUS
Definition: sfDevXM125Distance.h:103
const uint32_t SFE_XM125_DISTANCE_SENSOR_CREATE_ERROR_MASK
Definition: sfDevXM125Distance.h:40
const uint32_t SFE_XM125_DISTANCE_DETECTOR_CALIBRATE_OK_MASK
Definition: sfDevXM125Distance.h:37
const uint16_t SFE_XM125_DISTANCE_PEAK8_STRENGTH
Definition: sfDevXM125Distance.h:163
const uint16_t SFE_XM125_DISTANCE_PEAK3_STRENGTH
Definition: sfDevXM125Distance.h:158
const uint32_t SFE_XM125_DISTANCE_DETECTOR_CREATE_OK_MASK
Definition: sfDevXM125Distance.h:31
const uint32_t SFE_XM125_DISTANCE_CALIBRATE
Definition: sfDevXM125Distance.h:260
const uint32_t SFE_XM125_DISTANCE_CONFIG_CREATE_OK_MASK
Definition: sfDevXM125Distance.h:29
const uint16_t SFE_XM125_DISTANCE_THRESHOLD_METHOD
Definition: sfDevXM125Distance.h:198
const uint16_t SFE_XM125_DISTANCE_PEAK7_DISTANCE
Definition: sfDevXM125Distance.h:152
const uint16_t sfe_xm125_distance_end_default
Definition: sfDevXM125Distance.h:172
const uint16_t SFE_XM125_DISTANCE_PEAK1_DISTANCE
Definition: sfDevXM125Distance.h:146
const uint16_t SFE_XM125_DISTANCE_RESULT
Definition: sfDevXM125Distance.h:133
const uint32_t SFE_XM125_DISTANCE_LOG_CONFIGURATION
Definition: sfDevXM125Distance.h:264
const uint16_t SFE_XM125_DISTANCE_PEAK5_STRENGTH
Definition: sfDevXM125Distance.h:160
const uint32_t SFE_XM125_DISTANCE_CALIBRATION_BUFFER_ERROR_MASK_SHIFT
Definition: sfDevXM125Distance.h:68
const uint32_t SFE_XM125_DISTANCE_MINOR_VERSION_MASK_SHIFT
Definition: sfDevXM125Distance.h:61
const uint16_t SFE_XM125_DISTANCE_SIGNAL_QUALITY
Definition: sfDevXM125Distance.h:183
const uint32_t SFE_XM125_DISTANCE_MEASURE_DISTANCE_ERROR_MASK_SHIFT
Definition: sfDevXM125Distance.h:76
const uint32_t SFE_XM125_DISTANCE_SENSOR_CREATE_ERROR_MASK_SHIFT
Definition: sfDevXM125Distance.h:64
const uint32_t SFE_XM125_DISTANCE_DETECTOR_CALIBRATE_ERROR_MASK_SHIFT
Definition: sfDevXM125Distance.h:71
const uint16_t SFE_XM125_DISTANCE_END
Definition: sfDevXM125Distance.h:171
const uint16_t SFE_XM125_DISTANCE_PEAK7_STRENGTH
Definition: sfDevXM125Distance.h:162
const uint16_t SFE_XM125_DISTANCE_NUM_FRAMES_RECORDED_THRESH
Definition: sfDevXM125Distance.h:216
const uint32_t SFE_XM125_DISTANCE_DETECTOR_BUFFER_ERROR_MASK_SHIFT
Definition: sfDevXM125Distance.h:66
const uint32_t SFE_XM125_DISTANCE_CALIBRATION_NEEDED_MASK
Definition: sfDevXM125Distance.h:50
const uint32_t SFE_XM125_DISTANCE_DETECTOR_ERROR_MASK_SHIFT
Definition: sfDevXM125Distance.h:72
const uint16_t SFE_XM125_DISTANCE_COMMAND
Definition: sfDevXM125Distance.h:243
const uint16_t SFE_XM125_DISTANCE_CLOSE_RANGE_LEAKAGE
Definition: sfDevXM125Distance.h:179
const uint32_t SFE_XM125_DISTANCE_SENSOR_CALIBRATE_ERROR_MASK
Definition: sfDevXM125Distance.h:46
const uint32_t SFE_XM125_DISTANCE_SENSOR_CALIBRATE_OK_MASK
Definition: sfDevXM125Distance.h:36
const bool sfe_xm125_distance_close_range_leakage_default
Definition: sfDevXM125Distance.h:180
const uint16_t SFE_XM125_DISTANCE_START
Definition: sfDevXM125Distance.h:167
const uint32_t SFE_XM125_DISTANCE_DETECTOR_BUFFER_OK_MASK
Definition: sfDevXM125Distance.h:32
const uint32_t SFE_XM125_DISTANCE_DETECTOR_CREATE_ERROR_MASK
Definition: sfDevXM125Distance.h:41
const uint32_t SFE_XM125_DISTANCE_RECALIBRATE
Definition: sfDevXM125Distance.h:261
const uint16_t SFE_XM125_DISTANCE_PEAK6_DISTANCE
Definition: sfDevXM125Distance.h:151
const uint32_t SFE_XM125_DISTANCE_MAJOR_VERSION_MASK
Definition: sfDevXM125Distance.h:21
const uint16_t SFE_XM125_DISTANCE_MAX_STEP_LENGTH
Definition: sfDevXM125Distance.h:175
const uint32_t SFE_XM125_DISTANCE_SENSOR_CALIBRATE_ERROR_MASK_SHIFT
Definition: sfDevXM125Distance.h:70
const uint16_t sfe_xm125_distance_start_default
Definition: sfDevXM125Distance.h:168
const uint16_t SFE_XM125_DISTANCE_PEAK2_DISTANCE
Definition: sfDevXM125Distance.h:147
const uint16_t SFE_XM125_DISTANCE_FIXED_AMPLITUDE_THRESHOLD_VAL
Definition: sfDevXM125Distance.h:220
const uint16_t SFE_XM125_DISTANCE_PEAK6_STRENGTH
Definition: sfDevXM125Distance.h:161
const uint16_t sfe_xm125_distance_signal_quality_default
Definition: sfDevXM125Distance.h:184
const uint16_t SFE_XM125_DISTANCE_MEASURE_COUNTER
Definition: sfDevXM125Distance.h:101
const uint32_t SFE_XM125_DISTANCE_TEMPERATURE_MASK_SHIFT
Definition: sfDevXM125Distance.h:77
const uint32_t SFE_XM125_DISTANCE_CONFIG_CREATE_ERROR_MASK_SHIFT
Definition: sfDevXM125Distance.h:63
const uint32_t SFE_XM125_DISTANCE_CALIBRATION_NEEDED_MASK_SHIFT
Definition: sfDevXM125Distance.h:75
const uint16_t SFE_XM125_DISTANCE_PEAK0_STRENGTH
Definition: sfDevXM125Distance.h:155
const uint32_t SFE_XM125_DISTANCE_MAJOR_VERSION_MASK_SHIFT
Definition: sfDevXM125Distance.h:60
const uint16_t SFE_XM125_DISTANCE_MEASURE_ON_WAKEUP
Definition: sfDevXM125Distance.h:240
const uint32_t SFE_XM125_DISTANCE_MEASURE_DISTANCE_ERROR_MASK
Definition: sfDevXM125Distance.h:26
sfe_xm125_distance_command_t
Definition: sfDevXM125Distance.h:245
@ XM125_DISTANCE_RECALIBRATE
Definition: sfDevXM125Distance.h:250
@ XM125_DISTANCE_CALIBRATE
Definition: sfDevXM125Distance.h:249
@ XM125_DISTANCE_APPLY_CONFIGURATION
Definition: sfDevXM125Distance.h:248
@ XM125_DISTANCE_MEASURE_DISTANCE
Definition: sfDevXM125Distance.h:247
@ XM125_DISTANCE_LOG_CONFIGURATION
Definition: sfDevXM125Distance.h:253
@ XM125_DISTANCE_RESET_MODULE
Definition: sfDevXM125Distance.h:254
@ XM125_DISTANCE_APPLY_CONFIG_AND_CALIBRATE
Definition: sfDevXM125Distance.h:246
@ XM125_DISTANCE_ENABLE_UART_LOGS
Definition: sfDevXM125Distance.h:251
@ XM125_DISTANCE_DISABLE_UART_LOGS
Definition: sfDevXM125Distance.h:252
const uint32_t SFE_XM125_DISTANCE_CONFIG_APPLY_ERROR_MASK
Definition: sfDevXM125Distance.h:45
const uint32_t SFE_XM125_DISTANCE_CONFIG_APPLY_OK_MASK
Definition: sfDevXM125Distance.h:35
const uint32_t SFE_XM125_DISTANCE_NEAR_START_EDGE_MASK_SHIFT
Definition: sfDevXM125Distance.h:74
const uint32_t SFE_XM125_DISTANCE_DETECTOR_CREATE_ERROR_MASK_SHIFT
Definition: sfDevXM125Distance.h:65
Definition: sfDevXM125Distance.h:105
uint32_t distance_sensor_calibrate_ok
Definition: sfDevXM125Distance.h:114
uint32_t distance_config_apply_error
Definition: sfDevXM125Distance.h:124
uint32_t distance_sensor_calibrate_error
Definition: sfDevXM125Distance.h:125
uint32_t distance_sensor_buffer_ok
Definition: sfDevXM125Distance.h:111
uint32_t distance_detector_buffer_error
Definition: sfDevXM125Distance.h:121
uint32_t reserved2
Definition: sfDevXM125Distance.h:127
uint32_t distance_busy
Definition: sfDevXM125Distance.h:130
uint32_t distance_rss_register_error
Definition: sfDevXM125Distance.h:117
uint32_t distance_sensor_buffer_error
Definition: sfDevXM125Distance.h:122
uint32_t distance_calibration_buffer_error
Definition: sfDevXM125Distance.h:123
uint32_t distance_config_create_error
Definition: sfDevXM125Distance.h:118
uint32_t distance_detector_create_error
Definition: sfDevXM125Distance.h:120
uint32_t distance_calibration_buffer_ok
Definition: sfDevXM125Distance.h:112
uint32_t distance_detector_error
Definition: sfDevXM125Distance.h:128
uint32_t distance_detector_buffer_ok
Definition: sfDevXM125Distance.h:110
uint32_t distance_config_apply_ok
Definition: sfDevXM125Distance.h:113
uint32_t distance_detector_calibrate_ok
Definition: sfDevXM125Distance.h:115
uint32_t distance_sensor_create_error
Definition: sfDevXM125Distance.h:119
uint32_t distance_detector_create_ok
Definition: sfDevXM125Distance.h:109
uint32_t reserved1
Definition: sfDevXM125Distance.h:116
uint32_t distance_rss_register_ok
Definition: sfDevXM125Distance.h:106
uint32_t distance_detector_calibrate_error
Definition: sfDevXM125Distance.h:126
uint32_t reserved3
Definition: sfDevXM125Distance.h:129
uint32_t distance_config_create_ok
Definition: sfDevXM125Distance.h:107
uint32_t distance_sensor_create_ok
Definition: sfDevXM125Distance.h:108
Definition: sfDevXM125Distance.h:92
uint32_t distance_write_to_read_only
Definition: sfDevXM125Distance.h:97
uint32_t distance_packet_length_error
Definition: sfDevXM125Distance.h:94
uint32_t distance_protocol_state_error
Definition: sfDevXM125Distance.h:93
uint32_t distance_address_error
Definition: sfDevXM125Distance.h:95
uint32_t distance_write_failed
Definition: sfDevXM125Distance.h:96
uint32_t reserved1
Definition: sfDevXM125Distance.h:98
Definition: sfDevXM125Distance.h:135
uint32_t distance_near_start_edge
Definition: sfDevXM125Distance.h:138
uint32_t distance_measure_distance_error
Definition: sfDevXM125Distance.h:140
uint32_t distance_temperature
Definition: sfDevXM125Distance.h:142
uint32_t distance_calibration_needed
Definition: sfDevXM125Distance.h:139
uint32_t rsvd1
Definition: sfDevXM125Distance.h:137
uint32_t distance_num_distances
Definition: sfDevXM125Distance.h:136
uint32_t reserved1
Definition: sfDevXM125Distance.h:141
Definition: sfDevXM125Distance.h:84
uint32_t distance_major
Definition: sfDevXM125Distance.h:85
uint32_t distance_patch
Definition: sfDevXM125Distance.h:87
uint32_t distance_minor
Definition: sfDevXM125Distance.h:86