presence_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 "presence_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 presence_reg_protocol[PRESENCE_REG_REGISTER_COUNT] = {
19 {
20 PRESENCE_REG_VERSION_ADDRESS, // version address
21 presence_reg_read_version, // version read access function
22 NULL,
23 },
24 {
25 PRESENCE_REG_PROTOCOL_STATUS_ADDRESS, // protocol_status address
26 presence_reg_read_protocol_status, // protocol_status read access function
27 NULL,
28 },
29 {
30 PRESENCE_REG_MEASURE_COUNTER_ADDRESS, // measure_counter address
31 presence_reg_read_measure_counter, // measure_counter read access function
32 NULL,
33 },
34 {
35 PRESENCE_REG_DETECTOR_STATUS_ADDRESS, // detector_status address
36 presence_reg_read_detector_status, // detector_status read access function
37 NULL,
38 },
39 {
40 PRESENCE_REG_PRESENCE_RESULT_ADDRESS, // presence_result address
41 presence_reg_read_presence_result, // presence_result read access function
42 NULL,
43 },
44 {
45 PRESENCE_REG_PRESENCE_DISTANCE_ADDRESS, // presence_distance address
46 presence_reg_read_presence_distance, // presence_distance read access function
47 NULL,
48 },
49 {
50 PRESENCE_REG_INTRA_PRESENCE_SCORE_ADDRESS, // intra_presence_score address
51 presence_reg_read_intra_presence_score, // intra_presence_score read access function
52 NULL,
53 },
54 {
55 PRESENCE_REG_INTER_PRESENCE_SCORE_ADDRESS, // inter_presence_score address
56 presence_reg_read_inter_presence_score, // inter_presence_score read access function
57 NULL,
58 },
59 {
60 PRESENCE_REG_PRESENCE_ACTUAL_FRAME_RATE_ADDRESS, // presence_actual_frame_rate address
61 presence_reg_read_presence_actual_frame_rate, // presence_actual_frame_rate read access function
62 NULL,
63 },
64 {
65 PRESENCE_REG_SWEEPS_PER_FRAME_ADDRESS, // sweeps_per_frame address
66 presence_reg_read_sweeps_per_frame, // sweeps_per_frame read access function
67 presence_reg_write_sweeps_per_frame, // sweeps_per_frame write access function
68 },
69 {
70 PRESENCE_REG_INTER_FRAME_PRESENCE_TIMEOUT_ADDRESS, // inter_frame_presence_timeout address
71 presence_reg_read_inter_frame_presence_timeout, // inter_frame_presence_timeout read access function
72 presence_reg_write_inter_frame_presence_timeout, // inter_frame_presence_timeout write access function
73 },
74 {
75 PRESENCE_REG_INTRA_DETECTION_ENABLED_ADDRESS, // intra_detection_enabled address
76 presence_reg_read_intra_detection_enabled, // intra_detection_enabled read access function
77 presence_reg_write_intra_detection_enabled, // intra_detection_enabled write access function
78 },
79 {
80 PRESENCE_REG_INTER_DETECTION_ENABLED_ADDRESS, // inter_detection_enabled address
81 presence_reg_read_inter_detection_enabled, // inter_detection_enabled read access function
82 presence_reg_write_inter_detection_enabled, // inter_detection_enabled write access function
83 },
84 {
85 PRESENCE_REG_FRAME_RATE_ADDRESS, // frame_rate address
86 presence_reg_read_frame_rate, // frame_rate read access function
87 presence_reg_write_frame_rate, // frame_rate write access function
88 },
89 {
90 PRESENCE_REG_INTRA_DETECTION_THRESHOLD_ADDRESS, // intra_detection_threshold address
91 presence_reg_read_intra_detection_threshold, // intra_detection_threshold read access function
92 presence_reg_write_intra_detection_threshold, // intra_detection_threshold write access function
93 },
94 {
95 PRESENCE_REG_INTER_DETECTION_THRESHOLD_ADDRESS, // inter_detection_threshold address
96 presence_reg_read_inter_detection_threshold, // inter_detection_threshold read access function
97 presence_reg_write_inter_detection_threshold, // inter_detection_threshold write access function
98 },
99 {
100 PRESENCE_REG_INTER_FRAME_DEVIATION_TIME_CONST_ADDRESS, // inter_frame_deviation_time_const address
101 presence_reg_read_inter_frame_deviation_time_const, // inter_frame_deviation_time_const read access function
102 presence_reg_write_inter_frame_deviation_time_const, // inter_frame_deviation_time_const write access function
103 },
104 {
105 PRESENCE_REG_INTER_FRAME_FAST_CUTOFF_ADDRESS, // inter_frame_fast_cutoff address
106 presence_reg_read_inter_frame_fast_cutoff, // inter_frame_fast_cutoff read access function
107 presence_reg_write_inter_frame_fast_cutoff, // inter_frame_fast_cutoff write access function
108 },
109 {
110 PRESENCE_REG_INTER_FRAME_SLOW_CUTOFF_ADDRESS, // inter_frame_slow_cutoff address
111 presence_reg_read_inter_frame_slow_cutoff, // inter_frame_slow_cutoff read access function
112 presence_reg_write_inter_frame_slow_cutoff, // inter_frame_slow_cutoff write access function
113 },
114 {
115 PRESENCE_REG_INTRA_FRAME_TIME_CONST_ADDRESS, // intra_frame_time_const address
116 presence_reg_read_intra_frame_time_const, // intra_frame_time_const read access function
117 presence_reg_write_intra_frame_time_const, // intra_frame_time_const write access function
118 },
119 {
120 PRESENCE_REG_INTRA_OUTPUT_TIME_CONST_ADDRESS, // intra_output_time_const address
121 presence_reg_read_intra_output_time_const, // intra_output_time_const read access function
122 presence_reg_write_intra_output_time_const, // intra_output_time_const write access function
123 },
124 {
125 PRESENCE_REG_INTER_OUTPUT_TIME_CONST_ADDRESS, // inter_output_time_const address
126 presence_reg_read_inter_output_time_const, // inter_output_time_const read access function
127 presence_reg_write_inter_output_time_const, // inter_output_time_const write access function
128 },
129 {
130 PRESENCE_REG_AUTO_PROFILE_ENABLED_ADDRESS, // auto_profile_enabled address
131 presence_reg_read_auto_profile_enabled, // auto_profile_enabled read access function
132 presence_reg_write_auto_profile_enabled, // auto_profile_enabled write access function
133 },
134 {
135 PRESENCE_REG_AUTO_STEP_LENGTH_ENABLED_ADDRESS, // auto_step_length_enabled address
136 presence_reg_read_auto_step_length_enabled, // auto_step_length_enabled read access function
137 presence_reg_write_auto_step_length_enabled, // auto_step_length_enabled write access function
138 },
139 {
140 PRESENCE_REG_MANUAL_PROFILE_ADDRESS, // manual_profile address
141 presence_reg_read_manual_profile, // manual_profile read access function
142 presence_reg_write_manual_profile, // manual_profile write access function
143 },
144 {
145 PRESENCE_REG_MANUAL_STEP_LENGTH_ADDRESS, // manual_step_length address
146 presence_reg_read_manual_step_length, // manual_step_length read access function
147 presence_reg_write_manual_step_length, // manual_step_length write access function
148 },
149 {
150 PRESENCE_REG_START_ADDRESS, // start address
151 presence_reg_read_start, // start read access function
152 presence_reg_write_start, // start write access function
153 },
154 {
155 PRESENCE_REG_END_ADDRESS, // end address
156 presence_reg_read_end, // end read access function
157 presence_reg_write_end, // end write access function
158 },
159 {
160 PRESENCE_REG_RESET_FILTERS_ON_PREPARE_ADDRESS, // reset_filters_on_prepare address
161 presence_reg_read_reset_filters_on_prepare, // reset_filters_on_prepare read access function
162 presence_reg_write_reset_filters_on_prepare, // reset_filters_on_prepare write access function
163 },
164 {
165 PRESENCE_REG_HWAAS_ADDRESS, // hwaas address
166 presence_reg_read_hwaas, // hwaas read access function
167 presence_reg_write_hwaas, // hwaas write access function
168 },
169 {
170 PRESENCE_REG_AUTOMATIC_SUBSWEEPS_ADDRESS, // automatic_subsweeps address
171 presence_reg_read_automatic_subsweeps, // automatic_subsweeps read access function
172 presence_reg_write_automatic_subsweeps, // automatic_subsweeps write access function
173 },
174 {
175 PRESENCE_REG_SIGNAL_QUALITY_ADDRESS, // signal_quality address
176 presence_reg_read_signal_quality, // signal_quality read access function
177 presence_reg_write_signal_quality, // signal_quality write access function
178 },
179 {
180 PRESENCE_REG_DETECTION_ON_GPIO_ADDRESS, // detection_on_gpio address
181 presence_reg_read_detection_on_gpio, // detection_on_gpio read access function
182 presence_reg_write_detection_on_gpio, // detection_on_gpio write access function
183 },
184 {
185 PRESENCE_REG_COMMAND_ADDRESS, // command address
186 NULL,
187 presence_reg_write_command, // command write access function
188 },
189 {
190 PRESENCE_REG_APPLICATION_ID_ADDRESS, // application_id address
191 presence_reg_read_application_id, // application_id read access function
192 NULL,
193 },
194 };
195
196
197 void presence_reg_protocol_setup(void)
198 {
199 acc_reg_protocol_setup(presence_reg_protocol, PRESENCE_REG_REGISTER_COUNT);
200 }
201
202
203 void presence_reg_protocol_write_default(void)
204 {
205 presence_reg_write_sweeps_per_frame(PRESENCE_REG_SWEEPS_PER_FRAME_DEFAULT_VALUE);
206 presence_reg_write_inter_frame_presence_timeout(PRESENCE_REG_INTER_FRAME_PRESENCE_TIMEOUT_DEFAULT_VALUE);
207 presence_reg_write_intra_detection_enabled(PRESENCE_REG_INTRA_DETECTION_ENABLED_DEFAULT_VALUE);
208 presence_reg_write_inter_detection_enabled(PRESENCE_REG_INTER_DETECTION_ENABLED_DEFAULT_VALUE);
209 presence_reg_write_frame_rate(PRESENCE_REG_FRAME_RATE_DEFAULT_VALUE);
210 presence_reg_write_intra_detection_threshold(PRESENCE_REG_INTRA_DETECTION_THRESHOLD_DEFAULT_VALUE);
211 presence_reg_write_inter_detection_threshold(PRESENCE_REG_INTER_DETECTION_THRESHOLD_DEFAULT_VALUE);
212 presence_reg_write_inter_frame_deviation_time_const(PRESENCE_REG_INTER_FRAME_DEVIATION_TIME_CONST_DEFAULT_VALUE);
213 presence_reg_write_inter_frame_fast_cutoff(PRESENCE_REG_INTER_FRAME_FAST_CUTOFF_DEFAULT_VALUE);
214 presence_reg_write_inter_frame_slow_cutoff(PRESENCE_REG_INTER_FRAME_SLOW_CUTOFF_DEFAULT_VALUE);
215 presence_reg_write_intra_frame_time_const(PRESENCE_REG_INTRA_FRAME_TIME_CONST_DEFAULT_VALUE);
216 presence_reg_write_intra_output_time_const(PRESENCE_REG_INTRA_OUTPUT_TIME_CONST_DEFAULT_VALUE);
217 presence_reg_write_inter_output_time_const(PRESENCE_REG_INTER_OUTPUT_TIME_CONST_DEFAULT_VALUE);
218 presence_reg_write_auto_profile_enabled(PRESENCE_REG_AUTO_PROFILE_ENABLED_DEFAULT_VALUE);
219 presence_reg_write_auto_step_length_enabled(PRESENCE_REG_AUTO_STEP_LENGTH_ENABLED_DEFAULT_VALUE);
220 presence_reg_write_manual_profile(PRESENCE_REG_MANUAL_PROFILE_DEFAULT_VALUE);
221 presence_reg_write_manual_step_length(PRESENCE_REG_MANUAL_STEP_LENGTH_DEFAULT_VALUE);
222 presence_reg_write_start(PRESENCE_REG_START_DEFAULT_VALUE);
223 presence_reg_write_end(PRESENCE_REG_END_DEFAULT_VALUE);
224 presence_reg_write_reset_filters_on_prepare(PRESENCE_REG_RESET_FILTERS_ON_PREPARE_DEFAULT_VALUE);
225 presence_reg_write_hwaas(PRESENCE_REG_HWAAS_DEFAULT_VALUE);
226 presence_reg_write_automatic_subsweeps(PRESENCE_REG_AUTOMATIC_SUBSWEEPS_DEFAULT_VALUE);
227 presence_reg_write_signal_quality(PRESENCE_REG_SIGNAL_QUALITY_DEFAULT_VALUE);
228 presence_reg_write_detection_on_gpio(PRESENCE_REG_DETECTION_ON_GPIO_DEFAULT_VALUE);
229 }
presence_reg_write_inter_frame_slow_cutoff
bool presence_reg_write_inter_frame_slow_cutoff(const uint32_t value)
Definition: presence_reg_protocol_access.c:321
presence_reg_write_auto_profile_enabled
bool presence_reg_write_auto_profile_enabled(const uint32_t value)
Definition: presence_reg_protocol_access.c:414
PRESENCE_REG_SIGNAL_QUALITY_DEFAULT_VALUE
#define PRESENCE_REG_SIGNAL_QUALITY_DEFAULT_VALUE
Definition: presence_reg_protocol.h:163
presence_reg_read_measure_counter
void presence_reg_read_measure_counter(uint32_t *value)
Definition: presence_reg_protocol_access.c:72
presence_reg_write_inter_detection_threshold
bool presence_reg_write_inter_detection_threshold(const uint32_t value)
Definition: presence_reg_protocol_access.c:252
PRESENCE_REG_PRESENCE_DISTANCE_ADDRESS
#define PRESENCE_REG_PRESENCE_DISTANCE_ADDRESS
Definition: presence_reg_protocol.h:19
presence_reg_write_inter_output_time_const
bool presence_reg_write_inter_output_time_const(const uint32_t value)
Definition: presence_reg_protocol_access.c:390
PRESENCE_REG_PRESENCE_RESULT_ADDRESS
#define PRESENCE_REG_PRESENCE_RESULT_ADDRESS
Definition: presence_reg_protocol.h:18
PRESENCE_REG_START_DEFAULT_VALUE
#define PRESENCE_REG_START_DEFAULT_VALUE
Definition: presence_reg_protocol.h:158
presence_reg_write_intra_detection_threshold
bool presence_reg_write_intra_detection_threshold(const uint32_t value)
Definition: presence_reg_protocol_access.c:229
presence_reg_write_intra_frame_time_const
bool presence_reg_write_intra_frame_time_const(const uint32_t value)
Definition: presence_reg_protocol_access.c:344
PRESENCE_REG_INTER_FRAME_PRESENCE_TIMEOUT_DEFAULT_VALUE
#define PRESENCE_REG_INTER_FRAME_PRESENCE_TIMEOUT_DEFAULT_VALUE
Definition: presence_reg_protocol.h:142
presence_reg_protocol_setup
void presence_reg_protocol_setup(void)
Definition: presence_reg_protocol.c:197
presence_reg_read_inter_frame_slow_cutoff
void presence_reg_read_inter_frame_slow_cutoff(uint32_t *value)
Definition: presence_reg_protocol_access.c:313
PRESENCE_REG_REGISTER_COUNT
#define PRESENCE_REG_REGISTER_COUNT
Definition: presence_reg_protocol.h:11
PRESENCE_REG_INTRA_OUTPUT_TIME_CONST_DEFAULT_VALUE
#define PRESENCE_REG_INTRA_OUTPUT_TIME_CONST_DEFAULT_VALUE
Definition: presence_reg_protocol.h:152
presence_reg_read_presence_distance
void presence_reg_read_presence_distance(uint32_t *value)
Definition: presence_reg_protocol_access.c:87
PRESENCE_REG_AUTO_PROFILE_ENABLED_ADDRESS
#define PRESENCE_REG_AUTO_PROFILE_ENABLED_ADDRESS
Definition: presence_reg_protocol.h:36
PRESENCE_REG_INTRA_DETECTION_ENABLED_DEFAULT_VALUE
#define PRESENCE_REG_INTRA_DETECTION_ENABLED_DEFAULT_VALUE
Definition: presence_reg_protocol.h:143
PRESENCE_REG_AUTO_STEP_LENGTH_ENABLED_DEFAULT_VALUE
#define PRESENCE_REG_AUTO_STEP_LENGTH_ENABLED_DEFAULT_VALUE
Definition: presence_reg_protocol.h:155
PRESENCE_REG_HWAAS_ADDRESS
#define PRESENCE_REG_HWAAS_ADDRESS
Definition: presence_reg_protocol.h:43
PRESENCE_REG_INTER_FRAME_DEVIATION_TIME_CONST_DEFAULT_VALUE
#define PRESENCE_REG_INTER_FRAME_DEVIATION_TIME_CONST_DEFAULT_VALUE
Definition: presence_reg_protocol.h:148
presence_reg_write_frame_rate
bool presence_reg_write_frame_rate(const uint32_t value)
Definition: presence_reg_protocol_access.c:206
PRESENCE_REG_INTER_FRAME_SLOW_CUTOFF_ADDRESS
#define PRESENCE_REG_INTER_FRAME_SLOW_CUTOFF_ADDRESS
Definition: presence_reg_protocol.h:32
PRESENCE_REG_INTER_DETECTION_ENABLED_ADDRESS
#define PRESENCE_REG_INTER_DETECTION_ENABLED_ADDRESS
Definition: presence_reg_protocol.h:26
presence_reg_write_start
bool presence_reg_write_start(const uint32_t value)
Definition: presence_reg_protocol_access.c:553
presence_reg_read_protocol_status
void presence_reg_read_protocol_status(uint32_t *value)
Definition: presence_reg_protocol_access.c:39
presence_reg_read_intra_output_time_const
void presence_reg_read_intra_output_time_const(uint32_t *value)
Definition: presence_reg_protocol_access.c:359
presence_reg_read_automatic_subsweeps
void presence_reg_read_automatic_subsweeps(uint32_t *value)
Definition: presence_reg_protocol_access.c:636
PRESENCE_REG_INTRA_DETECTION_ENABLED_ADDRESS
#define PRESENCE_REG_INTRA_DETECTION_ENABLED_ADDRESS
Definition: presence_reg_protocol.h:25
PRESENCE_REG_INTER_DETECTION_ENABLED_DEFAULT_VALUE
#define PRESENCE_REG_INTER_DETECTION_ENABLED_DEFAULT_VALUE
Definition: presence_reg_protocol.h:144
presence_reg_read_inter_frame_presence_timeout
void presence_reg_read_inter_frame_presence_timeout(uint32_t *value)
Definition: presence_reg_protocol_access.c:129
PRESENCE_REG_SWEEPS_PER_FRAME_ADDRESS
#define PRESENCE_REG_SWEEPS_PER_FRAME_ADDRESS
Definition: presence_reg_protocol.h:23
presence_reg_write_inter_frame_fast_cutoff
bool presence_reg_write_inter_frame_fast_cutoff(const uint32_t value)
Definition: presence_reg_protocol_access.c:298
PRESENCE_REG_END_ADDRESS
#define PRESENCE_REG_END_ADDRESS
Definition: presence_reg_protocol.h:41
PRESENCE_REG_MANUAL_STEP_LENGTH_ADDRESS
#define PRESENCE_REG_MANUAL_STEP_LENGTH_ADDRESS
Definition: presence_reg_protocol.h:39
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
presence_reg_read_intra_detection_threshold
void presence_reg_read_intra_detection_threshold(uint32_t *value)
Definition: presence_reg_protocol_access.c:221
PRESENCE_REG_HWAAS_DEFAULT_VALUE
#define PRESENCE_REG_HWAAS_DEFAULT_VALUE
Definition: presence_reg_protocol.h:161
PRESENCE_REG_MANUAL_PROFILE_ADDRESS
#define PRESENCE_REG_MANUAL_PROFILE_ADDRESS
Definition: presence_reg_protocol.h:38
PRESENCE_REG_DETECTION_ON_GPIO_ADDRESS
#define PRESENCE_REG_DETECTION_ON_GPIO_ADDRESS
Definition: presence_reg_protocol.h:46
PRESENCE_REG_INTER_OUTPUT_TIME_CONST_ADDRESS
#define PRESENCE_REG_INTER_OUTPUT_TIME_CONST_ADDRESS
Definition: presence_reg_protocol.h:35
PRESENCE_REG_INTRA_DETECTION_THRESHOLD_DEFAULT_VALUE
#define PRESENCE_REG_INTRA_DETECTION_THRESHOLD_DEFAULT_VALUE
Definition: presence_reg_protocol.h:146
presence_reg_read_signal_quality
void presence_reg_read_signal_quality(uint32_t *value)
Definition: presence_reg_protocol_access.c:660
PRESENCE_REG_COMMAND_ADDRESS
#define PRESENCE_REG_COMMAND_ADDRESS
Definition: presence_reg_protocol.h:47
PRESENCE_REG_START_ADDRESS
#define PRESENCE_REG_START_ADDRESS
Definition: presence_reg_protocol.h:40
PRESENCE_REG_INTER_DETECTION_THRESHOLD_DEFAULT_VALUE
#define PRESENCE_REG_INTER_DETECTION_THRESHOLD_DEFAULT_VALUE
Definition: presence_reg_protocol.h:147
PRESENCE_REG_INTER_DETECTION_THRESHOLD_ADDRESS
#define PRESENCE_REG_INTER_DETECTION_THRESHOLD_ADDRESS
Definition: presence_reg_protocol.h:29
presence_reg_write_signal_quality
bool presence_reg_write_signal_quality(const uint32_t value)
Definition: presence_reg_protocol_access.c:668
presence_reg_read_detector_status
void presence_reg_read_detector_status(uint32_t *value)
Definition: presence_reg_protocol_access.c:77
presence_reg_read_hwaas
void presence_reg_read_hwaas(uint32_t *value)
Definition: presence_reg_protocol_access.c:615
PRESENCE_REG_RESET_FILTERS_ON_PREPARE_ADDRESS
#define PRESENCE_REG_RESET_FILTERS_ON_PREPARE_ADDRESS
Definition: presence_reg_protocol.h:42
PRESENCE_REG_INTRA_OUTPUT_TIME_CONST_ADDRESS
#define PRESENCE_REG_INTRA_OUTPUT_TIME_CONST_ADDRESS
Definition: presence_reg_protocol.h:34
PRESENCE_REG_PRESENCE_ACTUAL_FRAME_RATE_ADDRESS
#define PRESENCE_REG_PRESENCE_ACTUAL_FRAME_RATE_ADDRESS
Definition: presence_reg_protocol.h:22
presence_reg_read_auto_step_length_enabled
void presence_reg_read_auto_step_length_enabled(uint32_t *value)
Definition: presence_reg_protocol_access.c:429
PRESENCE_REG_INTER_FRAME_SLOW_CUTOFF_DEFAULT_VALUE
#define PRESENCE_REG_INTER_FRAME_SLOW_CUTOFF_DEFAULT_VALUE
Definition: presence_reg_protocol.h:150
PRESENCE_REG_END_DEFAULT_VALUE
#define PRESENCE_REG_END_DEFAULT_VALUE
Definition: presence_reg_protocol.h:159
presence_reg_write_command
bool presence_reg_write_command(const uint32_t value)
Definition: presence_reg_protocol_access.c:709
PRESENCE_REG_DETECTION_ON_GPIO_DEFAULT_VALUE
#define PRESENCE_REG_DETECTION_ON_GPIO_DEFAULT_VALUE
Definition: presence_reg_protocol.h:164
PRESENCE_REG_INTRA_FRAME_TIME_CONST_ADDRESS
#define PRESENCE_REG_INTRA_FRAME_TIME_CONST_ADDRESS
Definition: presence_reg_protocol.h:33
presence_reg_read_end
void presence_reg_read_end(uint32_t *value)
Definition: presence_reg_protocol_access.c:568
presence_reg_write_inter_frame_deviation_time_const
bool presence_reg_write_inter_frame_deviation_time_const(const uint32_t value)
Definition: presence_reg_protocol_access.c:275
presence_reg_read_inter_frame_deviation_time_const
void presence_reg_read_inter_frame_deviation_time_const(uint32_t *value)
Definition: presence_reg_protocol_access.c:267
PRESENCE_REG_INTER_FRAME_FAST_CUTOFF_ADDRESS
#define PRESENCE_REG_INTER_FRAME_FAST_CUTOFF_ADDRESS
Definition: presence_reg_protocol.h:31
presence_reg_write_manual_step_length
bool presence_reg_write_manual_step_length(const uint32_t value)
Definition: presence_reg_protocol_access.c:531
PRESENCE_REG_SIGNAL_QUALITY_ADDRESS
#define PRESENCE_REG_SIGNAL_QUALITY_ADDRESS
Definition: presence_reg_protocol.h:45
presence_reg_write_automatic_subsweeps
bool presence_reg_write_automatic_subsweeps(const uint32_t value)
Definition: presence_reg_protocol_access.c:645
PRESENCE_REG_AUTOMATIC_SUBSWEEPS_ADDRESS
#define PRESENCE_REG_AUTOMATIC_SUBSWEEPS_ADDRESS
Definition: presence_reg_protocol.h:44
PRESENCE_REG_AUTO_STEP_LENGTH_ENABLED_ADDRESS
#define PRESENCE_REG_AUTO_STEP_LENGTH_ENABLED_ADDRESS
Definition: presence_reg_protocol.h:37
PRESENCE_REG_RESET_FILTERS_ON_PREPARE_DEFAULT_VALUE
#define PRESENCE_REG_RESET_FILTERS_ON_PREPARE_DEFAULT_VALUE
Definition: presence_reg_protocol.h:160
PRESENCE_REG_FRAME_RATE_ADDRESS
#define PRESENCE_REG_FRAME_RATE_ADDRESS
Definition: presence_reg_protocol.h:27
PRESENCE_REG_INTRA_FRAME_TIME_CONST_DEFAULT_VALUE
#define PRESENCE_REG_INTRA_FRAME_TIME_CONST_DEFAULT_VALUE
Definition: presence_reg_protocol.h:151
PRESENCE_REG_APPLICATION_ID_ADDRESS
#define PRESENCE_REG_APPLICATION_ID_ADDRESS
Definition: presence_reg_protocol.h:48
presence_reg_read_auto_profile_enabled
void presence_reg_read_auto_profile_enabled(uint32_t *value)
Definition: presence_reg_protocol_access.c:405
PRESENCE_REG_AUTOMATIC_SUBSWEEPS_DEFAULT_VALUE
#define PRESENCE_REG_AUTOMATIC_SUBSWEEPS_DEFAULT_VALUE
Definition: presence_reg_protocol.h:162
presence_reg_protocol
const acc_reg_protocol_t presence_reg_protocol[PRESENCE_REG_REGISTER_COUNT]
Definition: presence_reg_protocol.c:18
PRESENCE_REG_MANUAL_PROFILE_DEFAULT_VALUE
#define PRESENCE_REG_MANUAL_PROFILE_DEFAULT_VALUE
Definition: presence_reg_protocol.h:156
presence_reg_read_application_id
void presence_reg_read_application_id(uint32_t *value)
Definition: presence_reg_protocol_access.c:29
presence_reg_read_inter_output_time_const
void presence_reg_read_inter_output_time_const(uint32_t *value)
Definition: presence_reg_protocol_access.c:382
presence_reg_read_inter_presence_score
void presence_reg_read_inter_presence_score(uint32_t *value)
Definition: presence_reg_protocol_access.c:101
presence_reg_write_detection_on_gpio
bool presence_reg_write_detection_on_gpio(const uint32_t value)
Definition: presence_reg_protocol_access.c:695
PRESENCE_REG_VERSION_ADDRESS
#define PRESENCE_REG_VERSION_ADDRESS
Definition: presence_reg_protocol.h:14
PRESENCE_REG_INTER_FRAME_PRESENCE_TIMEOUT_ADDRESS
#define PRESENCE_REG_INTER_FRAME_PRESENCE_TIMEOUT_ADDRESS
Definition: presence_reg_protocol.h:24
PRESENCE_REG_INTRA_PRESENCE_SCORE_ADDRESS
#define PRESENCE_REG_INTRA_PRESENCE_SCORE_ADDRESS
Definition: presence_reg_protocol.h:20
presence_reg_protocol.h
PRESENCE_REG_INTER_OUTPUT_TIME_CONST_DEFAULT_VALUE
#define PRESENCE_REG_INTER_OUTPUT_TIME_CONST_DEFAULT_VALUE
Definition: presence_reg_protocol.h:153
presence_reg_read_manual_step_length
void presence_reg_read_manual_step_length(uint32_t *value)
Definition: presence_reg_protocol_access.c:524
PRESENCE_REG_AUTO_PROFILE_ENABLED_DEFAULT_VALUE
#define PRESENCE_REG_AUTO_PROFILE_ENABLED_DEFAULT_VALUE
Definition: presence_reg_protocol.h:154
presence_reg_write_inter_detection_enabled
bool presence_reg_write_inter_detection_enabled(const uint32_t value)
Definition: presence_reg_protocol_access.c:183
presence_reg_write_inter_frame_presence_timeout
bool presence_reg_write_inter_frame_presence_timeout(const uint32_t value)
Definition: presence_reg_protocol_access.c:136
presence_reg_read_version
void presence_reg_read_version(uint32_t *value)
Definition: presence_reg_protocol_access.c:34
PRESENCE_REG_SWEEPS_PER_FRAME_DEFAULT_VALUE
#define PRESENCE_REG_SWEEPS_PER_FRAME_DEFAULT_VALUE
Definition: presence_reg_protocol.h:141
presence_reg_write_hwaas
bool presence_reg_write_hwaas(const uint32_t value)
Definition: presence_reg_protocol_access.c:622
presence_reg_write_auto_step_length_enabled
bool presence_reg_write_auto_step_length_enabled(const uint32_t value)
Definition: presence_reg_protocol_access.c:438
presence_reg_read_presence_result
void presence_reg_read_presence_result(uint32_t *value)
Definition: presence_reg_protocol_access.c:82
presence_reg_write_sweeps_per_frame
bool presence_reg_write_sweeps_per_frame(const uint32_t value)
Definition: presence_reg_protocol_access.c:115
acc_reg_protocol_t
Register access mode and functions struct.
Definition: acc_reg_protocol.h:38
presence_reg_read_intra_frame_time_const
void presence_reg_read_intra_frame_time_const(uint32_t *value)
Definition: presence_reg_protocol_access.c:336
PRESENCE_REG_DETECTOR_STATUS_ADDRESS
#define PRESENCE_REG_DETECTOR_STATUS_ADDRESS
Definition: presence_reg_protocol.h:17
acc_reg_protocol.h
PRESENCE_REG_INTER_PRESENCE_SCORE_ADDRESS
#define PRESENCE_REG_INTER_PRESENCE_SCORE_ADDRESS
Definition: presence_reg_protocol.h:21
presence_reg_read_inter_detection_enabled
void presence_reg_read_inter_detection_enabled(uint32_t *value)
Definition: presence_reg_protocol_access.c:174
PRESENCE_REG_MANUAL_STEP_LENGTH_DEFAULT_VALUE
#define PRESENCE_REG_MANUAL_STEP_LENGTH_DEFAULT_VALUE
Definition: presence_reg_protocol.h:157
PRESENCE_REG_MEASURE_COUNTER_ADDRESS
#define PRESENCE_REG_MEASURE_COUNTER_ADDRESS
Definition: presence_reg_protocol.h:16
presence_reg_read_inter_detection_threshold
void presence_reg_read_inter_detection_threshold(uint32_t *value)
Definition: presence_reg_protocol_access.c:244
presence_reg_read_detection_on_gpio
void presence_reg_read_detection_on_gpio(uint32_t *value)
Definition: presence_reg_protocol_access.c:683
presence_reg_read_reset_filters_on_prepare
void presence_reg_read_reset_filters_on_prepare(uint32_t *value)
Definition: presence_reg_protocol_access.c:591
PRESENCE_REG_INTRA_DETECTION_THRESHOLD_ADDRESS
#define PRESENCE_REG_INTRA_DETECTION_THRESHOLD_ADDRESS
Definition: presence_reg_protocol.h:28
presence_reg_read_frame_rate
void presence_reg_read_frame_rate(uint32_t *value)
Definition: presence_reg_protocol_access.c:198
presence_reg_read_inter_frame_fast_cutoff
void presence_reg_read_inter_frame_fast_cutoff(uint32_t *value)
Definition: presence_reg_protocol_access.c:290
presence_reg_read_start
void presence_reg_read_start(uint32_t *value)
Definition: presence_reg_protocol_access.c:545
presence_reg_read_presence_actual_frame_rate
void presence_reg_read_presence_actual_frame_rate(uint32_t *value)
Definition: presence_reg_protocol_access.c:704
presence_reg_read_sweeps_per_frame
void presence_reg_read_sweeps_per_frame(uint32_t *value)
Definition: presence_reg_protocol_access.c:108
presence_reg_write_reset_filters_on_prepare
bool presence_reg_write_reset_filters_on_prepare(const uint32_t value)
Definition: presence_reg_protocol_access.c:600
presence_reg_read_manual_profile
void presence_reg_read_manual_profile(uint32_t *value)
Definition: presence_reg_protocol_access.c:453
PRESENCE_REG_INTER_FRAME_FAST_CUTOFF_DEFAULT_VALUE
#define PRESENCE_REG_INTER_FRAME_FAST_CUTOFF_DEFAULT_VALUE
Definition: presence_reg_protocol.h:149
presence_reg_write_intra_detection_enabled
bool presence_reg_write_intra_detection_enabled(const uint32_t value)
Definition: presence_reg_protocol_access.c:159
PRESENCE_REG_INTER_FRAME_DEVIATION_TIME_CONST_ADDRESS
#define PRESENCE_REG_INTER_FRAME_DEVIATION_TIME_CONST_ADDRESS
Definition: presence_reg_protocol.h:30
presence_reg_read_intra_presence_score
void presence_reg_read_intra_presence_score(uint32_t *value)
Definition: presence_reg_protocol_access.c:94
PRESENCE_REG_PROTOCOL_STATUS_ADDRESS
#define PRESENCE_REG_PROTOCOL_STATUS_ADDRESS
Definition: presence_reg_protocol.h:15
presence_reg_read_intra_detection_enabled
void presence_reg_read_intra_detection_enabled(uint32_t *value)
Definition: presence_reg_protocol_access.c:150
presence_reg_write_end
bool presence_reg_write_end(const uint32_t value)
Definition: presence_reg_protocol_access.c:576
presence_reg_protocol_write_default
void presence_reg_protocol_write_default(void)
Definition: presence_reg_protocol.c:203
presence_reg_write_intra_output_time_const
bool presence_reg_write_intra_output_time_const(const uint32_t value)
Definition: presence_reg_protocol_access.c:367
PRESENCE_REG_FRAME_RATE_DEFAULT_VALUE
#define PRESENCE_REG_FRAME_RATE_DEFAULT_VALUE
Definition: presence_reg_protocol.h:145
presence_reg_write_manual_profile
bool presence_reg_write_manual_profile(const uint32_t value)
Definition: presence_reg_protocol_access.c:483