distance_reg_protocol.c
Go to the documentation of this file.
1 // Copyright (c) Acconeer AB, 2025
2 // All rights reserved
3 // This file is subject to the terms and conditions defined in the file
4 // 'LICENSES/license_acconeer.txt', (BSD 3-Clause License) which is part
5 // of this source code package.
6
7 #include <stdbool.h>
8 #include <stddef.h>
9 #include <stdint.h>
10
11 #include "acc_reg_protocol.h"
12 #include "distance_reg_protocol.h"
13
14
15 /**
16 * This struct defines the links between a register address and the register read and/or write function.
17 */
18 const acc_reg_protocol_t distance_reg_protocol[DISTANCE_REG_REGISTER_COUNT] = {
19 {
20 DISTANCE_REG_VERSION_ADDRESS, // version address
21 distance_reg_read_version, // version read access function
22 NULL,
23 },
24 {
25 DISTANCE_REG_PROTOCOL_STATUS_ADDRESS, // protocol_status address
26 distance_reg_read_protocol_status, // protocol_status read access function
27 NULL,
28 },
29 {
30 DISTANCE_REG_MEASURE_COUNTER_ADDRESS, // measure_counter address
31 distance_reg_read_measure_counter, // measure_counter read access function
32 NULL,
33 },
34 {
35 DISTANCE_REG_DETECTOR_STATUS_ADDRESS, // detector_status address
36 distance_reg_read_detector_status, // detector_status read access function
37 NULL,
38 },
39 {
40 DISTANCE_REG_DISTANCE_RESULT_ADDRESS, // distance_result address
41 distance_reg_read_distance_result, // distance_result read access function
42 NULL,
43 },
44 {
45 DISTANCE_REG_PEAK0_DISTANCE_ADDRESS, // peak0_distance address
46 distance_reg_read_peak0_distance, // peak0_distance read access function
47 NULL,
48 },
49 {
50 DISTANCE_REG_PEAK1_DISTANCE_ADDRESS, // peak1_distance address
51 distance_reg_read_peak1_distance, // peak1_distance read access function
52 NULL,
53 },
54 {
55 DISTANCE_REG_PEAK2_DISTANCE_ADDRESS, // peak2_distance address
56 distance_reg_read_peak2_distance, // peak2_distance read access function
57 NULL,
58 },
59 {
60 DISTANCE_REG_PEAK3_DISTANCE_ADDRESS, // peak3_distance address
61 distance_reg_read_peak3_distance, // peak3_distance read access function
62 NULL,
63 },
64 {
65 DISTANCE_REG_PEAK4_DISTANCE_ADDRESS, // peak4_distance address
66 distance_reg_read_peak4_distance, // peak4_distance read access function
67 NULL,
68 },
69 {
70 DISTANCE_REG_PEAK5_DISTANCE_ADDRESS, // peak5_distance address
71 distance_reg_read_peak5_distance, // peak5_distance read access function
72 NULL,
73 },
74 {
75 DISTANCE_REG_PEAK6_DISTANCE_ADDRESS, // peak6_distance address
76 distance_reg_read_peak6_distance, // peak6_distance read access function
77 NULL,
78 },
79 {
80 DISTANCE_REG_PEAK7_DISTANCE_ADDRESS, // peak7_distance address
81 distance_reg_read_peak7_distance, // peak7_distance read access function
82 NULL,
83 },
84 {
85 DISTANCE_REG_PEAK8_DISTANCE_ADDRESS, // peak8_distance address
86 distance_reg_read_peak8_distance, // peak8_distance read access function
87 NULL,
88 },
89 {
90 DISTANCE_REG_PEAK9_DISTANCE_ADDRESS, // peak9_distance address
91 distance_reg_read_peak9_distance, // peak9_distance read access function
92 NULL,
93 },
94 {
95 DISTANCE_REG_PEAK0_STRENGTH_ADDRESS, // peak0_strength address
96 distance_reg_read_peak0_strength, // peak0_strength read access function
97 NULL,
98 },
99 {
100 DISTANCE_REG_PEAK1_STRENGTH_ADDRESS, // peak1_strength address
101 distance_reg_read_peak1_strength, // peak1_strength read access function
102 NULL,
103 },
104 {
105 DISTANCE_REG_PEAK2_STRENGTH_ADDRESS, // peak2_strength address
106 distance_reg_read_peak2_strength, // peak2_strength read access function
107 NULL,
108 },
109 {
110 DISTANCE_REG_PEAK3_STRENGTH_ADDRESS, // peak3_strength address
111 distance_reg_read_peak3_strength, // peak3_strength read access function
112 NULL,
113 },
114 {
115 DISTANCE_REG_PEAK4_STRENGTH_ADDRESS, // peak4_strength address
116 distance_reg_read_peak4_strength, // peak4_strength read access function
117 NULL,
118 },
119 {
120 DISTANCE_REG_PEAK5_STRENGTH_ADDRESS, // peak5_strength address
121 distance_reg_read_peak5_strength, // peak5_strength read access function
122 NULL,
123 },
124 {
125 DISTANCE_REG_PEAK6_STRENGTH_ADDRESS, // peak6_strength address
126 distance_reg_read_peak6_strength, // peak6_strength read access function
127 NULL,
128 },
129 {
130 DISTANCE_REG_PEAK7_STRENGTH_ADDRESS, // peak7_strength address
131 distance_reg_read_peak7_strength, // peak7_strength read access function
132 NULL,
133 },
134 {
135 DISTANCE_REG_PEAK8_STRENGTH_ADDRESS, // peak8_strength address
136 distance_reg_read_peak8_strength, // peak8_strength read access function
137 NULL,
138 },
139 {
140 DISTANCE_REG_PEAK9_STRENGTH_ADDRESS, // peak9_strength address
141 distance_reg_read_peak9_strength, // peak9_strength read access function
142 NULL,
143 },
144 {
145 DISTANCE_REG_START_ADDRESS, // start address
146 distance_reg_read_start, // start read access function
147 distance_reg_write_start, // start write access function
148 },
149 {
150 DISTANCE_REG_END_ADDRESS, // end address
151 distance_reg_read_end, // end read access function
152 distance_reg_write_end, // end write access function
153 },
154 {
155 DISTANCE_REG_MAX_STEP_LENGTH_ADDRESS, // max_step_length address
156 distance_reg_read_max_step_length, // max_step_length read access function
157 distance_reg_write_max_step_length, // max_step_length write access function
158 },
159 {
160 DISTANCE_REG_CLOSE_RANGE_LEAKAGE_CANCELLATION_ADDRESS, // close_range_leakage_cancellation address
161 distance_reg_read_close_range_leakage_cancellation, // close_range_leakage_cancellation read access function
162 distance_reg_write_close_range_leakage_cancellation, // close_range_leakage_cancellation write access function
163 },
164 {
165 DISTANCE_REG_SIGNAL_QUALITY_ADDRESS, // signal_quality address
166 distance_reg_read_signal_quality, // signal_quality read access function
167 distance_reg_write_signal_quality, // signal_quality write access function
168 },
169 {
170 DISTANCE_REG_MAX_PROFILE_ADDRESS, // max_profile address
171 distance_reg_read_max_profile, // max_profile read access function
172 distance_reg_write_max_profile, // max_profile write access function
173 },
174 {
175 DISTANCE_REG_THRESHOLD_METHOD_ADDRESS, // threshold_method address
176 distance_reg_read_threshold_method, // threshold_method read access function
177 distance_reg_write_threshold_method, // threshold_method write access function
178 },
179 {
180 DISTANCE_REG_PEAK_SORTING_ADDRESS, // peak_sorting address
181 distance_reg_read_peak_sorting, // peak_sorting read access function
182 distance_reg_write_peak_sorting, // peak_sorting write access function
183 },
184 {
185 DISTANCE_REG_NUM_FRAMES_RECORDED_THRESHOLD_ADDRESS, // num_frames_recorded_threshold address
186 distance_reg_read_num_frames_recorded_threshold, // num_frames_recorded_threshold read access function
187 distance_reg_write_num_frames_recorded_threshold, // num_frames_recorded_threshold write access function
188 },
189 {
190 DISTANCE_REG_FIXED_AMPLITUDE_THRESHOLD_VALUE_ADDRESS, // fixed_amplitude_threshold_value address
191 distance_reg_read_fixed_amplitude_threshold_value, // fixed_amplitude_threshold_value read access function
192 distance_reg_write_fixed_amplitude_threshold_value, // fixed_amplitude_threshold_value write access function
193 },
194 {
195 DISTANCE_REG_THRESHOLD_SENSITIVITY_ADDRESS, // threshold_sensitivity address
196 distance_reg_read_threshold_sensitivity, // threshold_sensitivity read access function
197 distance_reg_write_threshold_sensitivity, // threshold_sensitivity write access function
198 },
199 {
200 DISTANCE_REG_REFLECTOR_SHAPE_ADDRESS, // reflector_shape address
201 distance_reg_read_reflector_shape, // reflector_shape read access function
202 distance_reg_write_reflector_shape, // reflector_shape write access function
203 },
204 {
205 DISTANCE_REG_FIXED_STRENGTH_THRESHOLD_VALUE_ADDRESS, // fixed_strength_threshold_value address
206 distance_reg_read_fixed_strength_threshold_value, // fixed_strength_threshold_value read access function
207 distance_reg_write_fixed_strength_threshold_value, // fixed_strength_threshold_value write access function
208 },
209 {
210 DISTANCE_REG_MEASURE_ON_WAKEUP_ADDRESS, // measure_on_wakeup address
211 distance_reg_read_measure_on_wakeup, // measure_on_wakeup read access function
212 distance_reg_write_measure_on_wakeup, // measure_on_wakeup write access function
213 },
214 {
215 DISTANCE_REG_COMMAND_ADDRESS, // command address
216 NULL,
217 distance_reg_write_command, // command write access function
218 },
219 {
220 DISTANCE_REG_APPLICATION_ID_ADDRESS, // application_id address
221 distance_reg_read_application_id, // application_id read access function
222 NULL,
223 },
224 };
225
226
227 void distance_reg_protocol_setup(void)
228 {
229 acc_reg_protocol_setup(distance_reg_protocol, DISTANCE_REG_REGISTER_COUNT);
230 }
231
232
233 void distance_reg_protocol_write_default(void)
234 {
235 distance_reg_write_start(DISTANCE_REG_START_DEFAULT_VALUE);
236 distance_reg_write_end(DISTANCE_REG_END_DEFAULT_VALUE);
237 distance_reg_write_max_step_length(DISTANCE_REG_MAX_STEP_LENGTH_DEFAULT_VALUE);
238 distance_reg_write_close_range_leakage_cancellation(DISTANCE_REG_CLOSE_RANGE_LEAKAGE_CANCELLATION_DEFAULT_VALUE);
239 distance_reg_write_signal_quality(DISTANCE_REG_SIGNAL_QUALITY_DEFAULT_VALUE);
240 distance_reg_write_max_profile(DISTANCE_REG_MAX_PROFILE_DEFAULT_VALUE);
241 distance_reg_write_threshold_method(DISTANCE_REG_THRESHOLD_METHOD_DEFAULT_VALUE);
242 distance_reg_write_peak_sorting(DISTANCE_REG_PEAK_SORTING_DEFAULT_VALUE);
243 distance_reg_write_num_frames_recorded_threshold(DISTANCE_REG_NUM_FRAMES_RECORDED_THRESHOLD_DEFAULT_VALUE);
244 distance_reg_write_fixed_amplitude_threshold_value(DISTANCE_REG_FIXED_AMPLITUDE_THRESHOLD_VALUE_DEFAULT_VALUE);
245 distance_reg_write_threshold_sensitivity(DISTANCE_REG_THRESHOLD_SENSITIVITY_DEFAULT_VALUE);
246 distance_reg_write_reflector_shape(DISTANCE_REG_REFLECTOR_SHAPE_DEFAULT_VALUE);
247 distance_reg_write_fixed_strength_threshold_value(DISTANCE_REG_FIXED_STRENGTH_THRESHOLD_VALUE_DEFAULT_VALUE);
248 distance_reg_write_measure_on_wakeup(DISTANCE_REG_MEASURE_ON_WAKEUP_DEFAULT_VALUE);
249 }
DISTANCE_REG_SIGNAL_QUALITY_DEFAULT_VALUE
#define DISTANCE_REG_SIGNAL_QUALITY_DEFAULT_VALUE
Definition: distance_reg_protocol.h:177
distance_reg_read_end
void distance_reg_read_end(uint32_t *value)
Definition: distance_reg_protocol_access.c:264
DISTANCE_REG_DISTANCE_RESULT_ADDRESS
#define DISTANCE_REG_DISTANCE_RESULT_ADDRESS
Definition: distance_reg_protocol.h:18
distance_reg_read_fixed_amplitude_threshold_value
void distance_reg_read_fixed_amplitude_threshold_value(uint32_t *value)
Definition: distance_reg_protocol_access.c:578
distance_reg_read_peak4_strength
void distance_reg_read_peak4_strength(uint32_t *value)
Definition: distance_reg_protocol_access.c:203
distance_reg_read_version
void distance_reg_read_version(uint32_t *value)
Definition: distance_reg_protocol_access.c:61
DISTANCE_REG_FIXED_AMPLITUDE_THRESHOLD_VALUE_DEFAULT_VALUE
#define DISTANCE_REG_FIXED_AMPLITUDE_THRESHOLD_VALUE_DEFAULT_VALUE
Definition: distance_reg_protocol.h:182
DISTANCE_REG_NUM_FRAMES_RECORDED_THRESHOLD_DEFAULT_VALUE
#define DISTANCE_REG_NUM_FRAMES_RECORDED_THRESHOLD_DEFAULT_VALUE
Definition: distance_reg_protocol.h:181
distance_reg_write_measure_on_wakeup
bool distance_reg_write_measure_on_wakeup(const uint32_t value)
Definition: distance_reg_protocol_access.c:721
DISTANCE_REG_FIXED_STRENGTH_THRESHOLD_VALUE_DEFAULT_VALUE
#define DISTANCE_REG_FIXED_STRENGTH_THRESHOLD_VALUE_DEFAULT_VALUE
Definition: distance_reg_protocol.h:185
DISTANCE_REG_PEAK0_STRENGTH_ADDRESS
#define DISTANCE_REG_PEAK0_STRENGTH_ADDRESS
Definition: distance_reg_protocol.h:29
DISTANCE_REG_PEAK8_STRENGTH_ADDRESS
#define DISTANCE_REG_PEAK8_STRENGTH_ADDRESS
Definition: distance_reg_protocol.h:37
distance_reg_read_peak_sorting
void distance_reg_read_peak_sorting(uint32_t *value)
Definition: distance_reg_protocol_access.c:500
distance_reg_read_peak5_strength
void distance_reg_read_peak5_strength(uint32_t *value)
Definition: distance_reg_protocol_access.c:209
distance_reg_write_max_step_length
bool distance_reg_write_max_step_length(const uint32_t value)
Definition: distance_reg_protocol_access.c:297
DISTANCE_REG_PEAK6_STRENGTH_ADDRESS
#define DISTANCE_REG_PEAK6_STRENGTH_ADDRESS
Definition: distance_reg_protocol.h:35
DISTANCE_REG_DETECTOR_STATUS_ADDRESS
#define DISTANCE_REG_DETECTOR_STATUS_ADDRESS
Definition: distance_reg_protocol.h:17
distance_reg_read_peak7_strength
void distance_reg_read_peak7_strength(uint32_t *value)
Definition: distance_reg_protocol_access.c:221
distance_reg_read_peak9_distance
void distance_reg_read_peak9_distance(uint32_t *value)
Definition: distance_reg_protocol_access.c:173
DISTANCE_REG_END_ADDRESS
#define DISTANCE_REG_END_ADDRESS
Definition: distance_reg_protocol.h:40
DISTANCE_REG_THRESHOLD_SENSITIVITY_DEFAULT_VALUE
#define DISTANCE_REG_THRESHOLD_SENSITIVITY_DEFAULT_VALUE
Definition: distance_reg_protocol.h:183
DISTANCE_REG_THRESHOLD_METHOD_DEFAULT_VALUE
#define DISTANCE_REG_THRESHOLD_METHOD_DEFAULT_VALUE
Definition: distance_reg_protocol.h:179
distance_reg_read_fixed_strength_threshold_value
void distance_reg_read_fixed_strength_threshold_value(uint32_t *value)
Definition: distance_reg_protocol_access.c:603
DISTANCE_REG_PEAK0_DISTANCE_ADDRESS
#define DISTANCE_REG_PEAK0_DISTANCE_ADDRESS
Definition: distance_reg_protocol.h:19
DISTANCE_REG_PEAK7_STRENGTH_ADDRESS
#define DISTANCE_REG_PEAK7_STRENGTH_ADDRESS
Definition: distance_reg_protocol.h:36
distance_reg_read_peak4_distance
void distance_reg_read_peak4_distance(uint32_t *value)
Definition: distance_reg_protocol_access.c:143
DISTANCE_REG_REFLECTOR_SHAPE_ADDRESS
#define DISTANCE_REG_REFLECTOR_SHAPE_ADDRESS
Definition: distance_reg_protocol.h:50
distance_reg_read_detector_status
void distance_reg_read_detector_status(uint32_t *value)
Definition: distance_reg_protocol_access.c:107
distance_reg_read_application_id
void distance_reg_read_application_id(uint32_t *value)
Definition: distance_reg_protocol_access.c:55
distance_reg_write_reflector_shape
bool distance_reg_write_reflector_shape(const uint32_t value)
Definition: distance_reg_protocol_access.c:675
distance_reg_protocol
const acc_reg_protocol_t distance_reg_protocol[DISTANCE_REG_REGISTER_COUNT]
Definition: distance_reg_protocol.c:18
DISTANCE_REG_START_ADDRESS
#define DISTANCE_REG_START_ADDRESS
Definition: distance_reg_protocol.h:39
DISTANCE_REG_PEAK7_DISTANCE_ADDRESS
#define DISTANCE_REG_PEAK7_DISTANCE_ADDRESS
Definition: distance_reg_protocol.h:26
distance_reg_read_num_frames_recorded_threshold
void distance_reg_read_num_frames_recorded_threshold(uint32_t *value)
Definition: distance_reg_protocol_access.c:555
distance_reg_protocol.h
DISTANCE_REG_PEAK2_DISTANCE_ADDRESS
#define DISTANCE_REG_PEAK2_DISTANCE_ADDRESS
Definition: distance_reg_protocol.h:21
DISTANCE_REG_REGISTER_COUNT
#define DISTANCE_REG_REGISTER_COUNT
Definition: distance_reg_protocol.h:11
distance_reg_write_threshold_sensitivity
bool distance_reg_write_threshold_sensitivity(const uint32_t value)
Definition: distance_reg_protocol_access.c:637
acc_reg_protocol_setup
void acc_reg_protocol_setup(const acc_reg_protocol_t *protocol_struct, uint16_t register_count)
Setup register protocol.
Definition: acc_reg_protocol.c:202
distance_reg_read_protocol_status
void distance_reg_read_protocol_status(uint32_t *value)
Definition: distance_reg_protocol_access.c:67
distance_reg_write_fixed_strength_threshold_value
bool distance_reg_write_fixed_strength_threshold_value(const uint32_t value)
Definition: distance_reg_protocol_access.c:612
distance_reg_write_signal_quality
bool distance_reg_write_signal_quality(const uint32_t value)
Definition: distance_reg_protocol_access.c:344
distance_reg_read_distance_result
void distance_reg_read_distance_result(uint32_t *value)
Definition: distance_reg_protocol_access.c:113
distance_reg_read_max_profile
void distance_reg_read_max_profile(uint32_t *value)
Definition: distance_reg_protocol_access.c:360
distance_reg_read_max_step_length
void distance_reg_read_max_step_length(uint32_t *value)
Definition: distance_reg_protocol_access.c:289
distance_reg_read_peak1_distance
void distance_reg_read_peak1_distance(uint32_t *value)
Definition: distance_reg_protocol_access.c:125
DISTANCE_REG_PEAK4_DISTANCE_ADDRESS
#define DISTANCE_REG_PEAK4_DISTANCE_ADDRESS
Definition: distance_reg_protocol.h:23
distance_reg_read_peak1_strength
void distance_reg_read_peak1_strength(uint32_t *value)
Definition: distance_reg_protocol_access.c:185
distance_reg_read_measure_counter
void distance_reg_read_measure_counter(uint32_t *value)
Definition: distance_reg_protocol_access.c:101
DISTANCE_REG_PEAK5_STRENGTH_ADDRESS
#define DISTANCE_REG_PEAK5_STRENGTH_ADDRESS
Definition: distance_reg_protocol.h:34
distance_reg_read_measure_on_wakeup
void distance_reg_read_measure_on_wakeup(uint32_t *value)
Definition: distance_reg_protocol_access.c:708
DISTANCE_REG_COMMAND_ADDRESS
#define DISTANCE_REG_COMMAND_ADDRESS
Definition: distance_reg_protocol.h:53
DISTANCE_REG_MAX_STEP_LENGTH_DEFAULT_VALUE
#define DISTANCE_REG_MAX_STEP_LENGTH_DEFAULT_VALUE
Definition: distance_reg_protocol.h:175
DISTANCE_REG_PEAK6_DISTANCE_ADDRESS
#define DISTANCE_REG_PEAK6_DISTANCE_ADDRESS
Definition: distance_reg_protocol.h:25
distance_reg_read_peak2_strength
void distance_reg_read_peak2_strength(uint32_t *value)
Definition: distance_reg_protocol_access.c:191
DISTANCE_REG_CLOSE_RANGE_LEAKAGE_CANCELLATION_ADDRESS
#define DISTANCE_REG_CLOSE_RANGE_LEAKAGE_CANCELLATION_ADDRESS
Definition: distance_reg_protocol.h:42
DISTANCE_REG_THRESHOLD_SENSITIVITY_ADDRESS
#define DISTANCE_REG_THRESHOLD_SENSITIVITY_ADDRESS
Definition: distance_reg_protocol.h:49
DISTANCE_REG_PEAK3_STRENGTH_ADDRESS
#define DISTANCE_REG_PEAK3_STRENGTH_ADDRESS
Definition: distance_reg_protocol.h:32
DISTANCE_REG_MEASURE_ON_WAKEUP_ADDRESS
#define DISTANCE_REG_MEASURE_ON_WAKEUP_ADDRESS
Definition: distance_reg_protocol.h:52
DISTANCE_REG_FIXED_STRENGTH_THRESHOLD_VALUE_ADDRESS
#define DISTANCE_REG_FIXED_STRENGTH_THRESHOLD_VALUE_ADDRESS
Definition: distance_reg_protocol.h:51
distance_reg_read_peak6_strength
void distance_reg_read_peak6_strength(uint32_t *value)
Definition: distance_reg_protocol_access.c:215
distance_reg_read_threshold_sensitivity
void distance_reg_read_threshold_sensitivity(uint32_t *value)
Definition: distance_reg_protocol_access.c:628
DISTANCE_REG_MAX_PROFILE_ADDRESS
#define DISTANCE_REG_MAX_PROFILE_ADDRESS
Definition: distance_reg_protocol.h:44
distance_reg_protocol_write_default
void distance_reg_protocol_write_default(void)
Definition: distance_reg_protocol.c:233
distance_reg_write_max_profile
bool distance_reg_write_max_profile(const uint32_t value)
Definition: distance_reg_protocol_access.c:391
distance_reg_read_peak7_distance
void distance_reg_read_peak7_distance(uint32_t *value)
Definition: distance_reg_protocol_access.c:161
DISTANCE_REG_MAX_STEP_LENGTH_ADDRESS
#define DISTANCE_REG_MAX_STEP_LENGTH_ADDRESS
Definition: distance_reg_protocol.h:41
distance_reg_read_peak8_strength
void distance_reg_read_peak8_strength(uint32_t *value)
Definition: distance_reg_protocol_access.c:227
distance_reg_read_peak6_distance
void distance_reg_read_peak6_distance(uint32_t *value)
Definition: distance_reg_protocol_access.c:155
DISTANCE_REG_FIXED_AMPLITUDE_THRESHOLD_VALUE_ADDRESS
#define DISTANCE_REG_FIXED_AMPLITUDE_THRESHOLD_VALUE_ADDRESS
Definition: distance_reg_protocol.h:48
DISTANCE_REG_CLOSE_RANGE_LEAKAGE_CANCELLATION_DEFAULT_VALUE
#define DISTANCE_REG_CLOSE_RANGE_LEAKAGE_CANCELLATION_DEFAULT_VALUE
Definition: distance_reg_protocol.h:176
DISTANCE_REG_PEAK1_STRENGTH_ADDRESS
#define DISTANCE_REG_PEAK1_STRENGTH_ADDRESS
Definition: distance_reg_protocol.h:30
distance_reg_read_threshold_method
void distance_reg_read_threshold_method(uint32_t *value)
Definition: distance_reg_protocol_access.c:433
DISTANCE_REG_PROTOCOL_STATUS_ADDRESS
#define DISTANCE_REG_PROTOCOL_STATUS_ADDRESS
Definition: distance_reg_protocol.h:15
DISTANCE_REG_MEASURE_COUNTER_ADDRESS
#define DISTANCE_REG_MEASURE_COUNTER_ADDRESS
Definition: distance_reg_protocol.h:16
DISTANCE_REG_END_DEFAULT_VALUE
#define DISTANCE_REG_END_DEFAULT_VALUE
Definition: distance_reg_protocol.h:174
DISTANCE_REG_MEASURE_ON_WAKEUP_DEFAULT_VALUE
#define DISTANCE_REG_MEASURE_ON_WAKEUP_DEFAULT_VALUE
Definition: distance_reg_protocol.h:186
DISTANCE_REG_VERSION_ADDRESS
#define DISTANCE_REG_VERSION_ADDRESS
Definition: distance_reg_protocol.h:14
DISTANCE_REG_PEAK1_DISTANCE_ADDRESS
#define DISTANCE_REG_PEAK1_DISTANCE_ADDRESS
Definition: distance_reg_protocol.h:20
distance_reg_write_end
bool distance_reg_write_end(const uint32_t value)
Definition: distance_reg_protocol_access.c:273
distance_reg_write_close_range_leakage_cancellation
bool distance_reg_write_close_range_leakage_cancellation(const uint32_t value)
Definition: distance_reg_protocol_access.c:320
DISTANCE_REG_PEAK5_DISTANCE_ADDRESS
#define DISTANCE_REG_PEAK5_DISTANCE_ADDRESS
Definition: distance_reg_protocol.h:24
DISTANCE_REG_PEAK_SORTING_DEFAULT_VALUE
#define DISTANCE_REG_PEAK_SORTING_DEFAULT_VALUE
Definition: distance_reg_protocol.h:180
distance_reg_write_command
bool distance_reg_write_command(const uint32_t value)
Definition: distance_reg_protocol_access.c:731
DISTANCE_REG_MAX_PROFILE_DEFAULT_VALUE
#define DISTANCE_REG_MAX_PROFILE_DEFAULT_VALUE
Definition: distance_reg_protocol.h:178
distance_reg_read_peak0_distance
void distance_reg_read_peak0_distance(uint32_t *value)
Definition: distance_reg_protocol_access.c:119
distance_reg_protocol_setup
void distance_reg_protocol_setup(void)
Definition: distance_reg_protocol.c:227
distance_reg_read_reflector_shape
void distance_reg_read_reflector_shape(uint32_t *value)
Definition: distance_reg_protocol_access.c:653
DISTANCE_REG_PEAK9_STRENGTH_ADDRESS
#define DISTANCE_REG_PEAK9_STRENGTH_ADDRESS
Definition: distance_reg_protocol.h:38
distance_reg_write_start
bool distance_reg_write_start(const uint32_t value)
Definition: distance_reg_protocol_access.c:248
distance_reg_read_peak3_distance
void distance_reg_read_peak3_distance(uint32_t *value)
Definition: distance_reg_protocol_access.c:137
DISTANCE_REG_PEAK2_STRENGTH_ADDRESS
#define DISTANCE_REG_PEAK2_STRENGTH_ADDRESS
Definition: distance_reg_protocol.h:31
distance_reg_write_peak_sorting
bool distance_reg_write_peak_sorting(const uint32_t value)
Definition: distance_reg_protocol_access.c:522
acc_reg_protocol_t
Register access mode and functions struct.
Definition: acc_reg_protocol.h:38
distance_reg_read_close_range_leakage_cancellation
void distance_reg_read_close_range_leakage_cancellation(uint32_t *value)
Definition: distance_reg_protocol_access.c:312
distance_reg_read_signal_quality
void distance_reg_read_signal_quality(uint32_t *value)
Definition: distance_reg_protocol_access.c:335
DISTANCE_REG_REFLECTOR_SHAPE_DEFAULT_VALUE
#define DISTANCE_REG_REFLECTOR_SHAPE_DEFAULT_VALUE
Definition: distance_reg_protocol.h:184
acc_reg_protocol.h
DISTANCE_REG_PEAK_SORTING_ADDRESS
#define DISTANCE_REG_PEAK_SORTING_ADDRESS
Definition: distance_reg_protocol.h:46
DISTANCE_REG_THRESHOLD_METHOD_ADDRESS
#define DISTANCE_REG_THRESHOLD_METHOD_ADDRESS
Definition: distance_reg_protocol.h:45
distance_reg_write_num_frames_recorded_threshold
bool distance_reg_write_num_frames_recorded_threshold(const uint32_t value)
Definition: distance_reg_protocol_access.c:563
DISTANCE_REG_PEAK9_DISTANCE_ADDRESS
#define DISTANCE_REG_PEAK9_DISTANCE_ADDRESS
Definition: distance_reg_protocol.h:28
DISTANCE_REG_PEAK8_DISTANCE_ADDRESS
#define DISTANCE_REG_PEAK8_DISTANCE_ADDRESS
Definition: distance_reg_protocol.h:27
DISTANCE_REG_PEAK4_STRENGTH_ADDRESS
#define DISTANCE_REG_PEAK4_STRENGTH_ADDRESS
Definition: distance_reg_protocol.h:33
distance_reg_read_start
void distance_reg_read_start(uint32_t *value)
Definition: distance_reg_protocol_access.c:239
distance_reg_read_peak3_strength
void distance_reg_read_peak3_strength(uint32_t *value)
Definition: distance_reg_protocol_access.c:197
distance_reg_read_peak2_distance
void distance_reg_read_peak2_distance(uint32_t *value)
Definition: distance_reg_protocol_access.c:131
distance_reg_write_threshold_method
bool distance_reg_write_threshold_method(const uint32_t value)
Definition: distance_reg_protocol_access.c:461
DISTANCE_REG_START_DEFAULT_VALUE
#define DISTANCE_REG_START_DEFAULT_VALUE
Definition: distance_reg_protocol.h:173
distance_reg_write_fixed_amplitude_threshold_value
bool distance_reg_write_fixed_amplitude_threshold_value(const uint32_t value)
Definition: distance_reg_protocol_access.c:587
DISTANCE_REG_SIGNAL_QUALITY_ADDRESS
#define DISTANCE_REG_SIGNAL_QUALITY_ADDRESS
Definition: distance_reg_protocol.h:43
DISTANCE_REG_APPLICATION_ID_ADDRESS
#define DISTANCE_REG_APPLICATION_ID_ADDRESS
Definition: distance_reg_protocol.h:54
distance_reg_read_peak9_strength
void distance_reg_read_peak9_strength(uint32_t *value)
Definition: distance_reg_protocol_access.c:233
distance_reg_read_peak8_distance
void distance_reg_read_peak8_distance(uint32_t *value)
Definition: distance_reg_protocol_access.c:167
DISTANCE_REG_NUM_FRAMES_RECORDED_THRESHOLD_ADDRESS
#define DISTANCE_REG_NUM_FRAMES_RECORDED_THRESHOLD_ADDRESS
Definition: distance_reg_protocol.h:47
DISTANCE_REG_PEAK3_DISTANCE_ADDRESS
#define DISTANCE_REG_PEAK3_DISTANCE_ADDRESS
Definition: distance_reg_protocol.h:22
distance_reg_read_peak0_strength
void distance_reg_read_peak0_strength(uint32_t *value)
Definition: distance_reg_protocol_access.c:179
distance_reg_read_peak5_distance
void distance_reg_read_peak5_distance(uint32_t *value)
Definition: distance_reg_protocol_access.c:149