presence_reg_protocol.c
Go to the documentation of this file.
1 // Copyright (c) Acconeer AB, 2023
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_SWEEPS_PER_FRAME_ADDRESS, // sweeps_per_frame address
61 presence_reg_read_sweeps_per_frame, // sweeps_per_frame read access function
62 presence_reg_write_sweeps_per_frame, // sweeps_per_frame write access function
63 },
64 {
65 PRESENCE_REG_INTER_FRAME_PRESENCE_TIMEOUT_ADDRESS, // inter_frame_presence_timeout address
66 presence_reg_read_inter_frame_presence_timeout, // inter_frame_presence_timeout read access function
67 presence_reg_write_inter_frame_presence_timeout, // inter_frame_presence_timeout write access function
68 },
69 {
70 PRESENCE_REG_INTER_PHASE_BOOST_ENABLED_ADDRESS, // inter_phase_boost_enabled address
71 presence_reg_read_inter_phase_boost_enabled, // inter_phase_boost_enabled read access function
72 presence_reg_write_inter_phase_boost_enabled, // inter_phase_boost_enabled 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_DETECTION_ON_GPIO_ADDRESS, // detection_on_gpio address
171 presence_reg_read_detection_on_gpio, // detection_on_gpio read access function
172 presence_reg_write_detection_on_gpio, // detection_on_gpio write access function
173 },
174 {
175 PRESENCE_REG_COMMAND_ADDRESS, // command address
176 NULL,
177 presence_reg_write_command, // command write access function
178 },
179 };
180
181
182 void presence_reg_protocol_setup(void)
183 {
184 acc_reg_protocol_setup(presence_reg_protocol, PRESENCE_REG_REGISTER_COUNT);
185 }
186
187
188 void presence_reg_protocol_write_default(void)
189 {
190 presence_reg_write_sweeps_per_frame(PRESENCE_REG_SWEEPS_PER_FRAME_DEFAULT_VALUE);
191 presence_reg_write_inter_frame_presence_timeout(PRESENCE_REG_INTER_FRAME_PRESENCE_TIMEOUT_DEFAULT_VALUE);
192 presence_reg_write_inter_phase_boost_enabled(PRESENCE_REG_INTER_PHASE_BOOST_ENABLED_DEFAULT_VALUE);
193 presence_reg_write_intra_detection_enabled(PRESENCE_REG_INTRA_DETECTION_ENABLED_DEFAULT_VALUE);
194 presence_reg_write_inter_detection_enabled(PRESENCE_REG_INTER_DETECTION_ENABLED_DEFAULT_VALUE);
195 presence_reg_write_frame_rate(PRESENCE_REG_FRAME_RATE_DEFAULT_VALUE);
196 presence_reg_write_intra_detection_threshold(PRESENCE_REG_INTRA_DETECTION_THRESHOLD_DEFAULT_VALUE);
197 presence_reg_write_inter_detection_threshold(PRESENCE_REG_INTER_DETECTION_THRESHOLD_DEFAULT_VALUE);
198 presence_reg_write_inter_frame_deviation_time_const(PRESENCE_REG_INTER_FRAME_DEVIATION_TIME_CONST_DEFAULT_VALUE);
199 presence_reg_write_inter_frame_fast_cutoff(PRESENCE_REG_INTER_FRAME_FAST_CUTOFF_DEFAULT_VALUE);
200 presence_reg_write_inter_frame_slow_cutoff(PRESENCE_REG_INTER_FRAME_SLOW_CUTOFF_DEFAULT_VALUE);
201 presence_reg_write_intra_frame_time_const(PRESENCE_REG_INTRA_FRAME_TIME_CONST_DEFAULT_VALUE);
202 presence_reg_write_intra_output_time_const(PRESENCE_REG_INTRA_OUTPUT_TIME_CONST_DEFAULT_VALUE);
203 presence_reg_write_inter_output_time_const(PRESENCE_REG_INTER_OUTPUT_TIME_CONST_DEFAULT_VALUE);
204 presence_reg_write_auto_profile_enabled(PRESENCE_REG_AUTO_PROFILE_ENABLED_DEFAULT_VALUE);
205 presence_reg_write_auto_step_length_enabled(PRESENCE_REG_AUTO_STEP_LENGTH_ENABLED_DEFAULT_VALUE);
206 presence_reg_write_manual_profile(PRESENCE_REG_MANUAL_PROFILE_DEFAULT_VALUE);
207 presence_reg_write_manual_step_length(PRESENCE_REG_MANUAL_STEP_LENGTH_DEFAULT_VALUE);
208 presence_reg_write_start(PRESENCE_REG_START_DEFAULT_VALUE);
209 presence_reg_write_end(PRESENCE_REG_END_DEFAULT_VALUE);
210 presence_reg_write_reset_filters_on_prepare(PRESENCE_REG_RESET_FILTERS_ON_PREPARE_DEFAULT_VALUE);
211 presence_reg_write_hwaas(PRESENCE_REG_HWAAS_DEFAULT_VALUE);
212 presence_reg_write_detection_on_gpio(PRESENCE_REG_DETECTION_ON_GPIO_DEFAULT_VALUE);
213 }
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:372
presence_reg_write_auto_profile_enabled
bool presence_reg_write_auto_profile_enabled(const uint32_t value)
Definition: presence_reg_protocol_access.c:473
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:297
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:447
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:150
presence_reg_write_intra_detection_threshold
bool presence_reg_write_intra_detection_threshold(const uint32_t value)
Definition: presence_reg_protocol_access.c:272
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:397
PRESENCE_REG_INTER_FRAME_PRESENCE_TIMEOUT_DEFAULT_VALUE
#define PRESENCE_REG_INTER_FRAME_PRESENCE_TIMEOUT_DEFAULT_VALUE
Definition: presence_reg_protocol.h:133
presence_reg_protocol_setup
void presence_reg_protocol_setup(void)
Definition: presence_reg_protocol.c:182
presence_reg_read_inter_frame_slow_cutoff
void presence_reg_read_inter_frame_slow_cutoff(uint32_t *value)
Definition: presence_reg_protocol_access.c:363
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:144
presence_reg_read_presence_distance
void presence_reg_read_presence_distance(uint32_t *value)
Definition: presence_reg_protocol_access.c:90
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:135
PRESENCE_REG_AUTO_STEP_LENGTH_ENABLED_DEFAULT_VALUE
#define PRESENCE_REG_AUTO_STEP_LENGTH_ENABLED_DEFAULT_VALUE
Definition: presence_reg_protocol.h:147
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:140
presence_reg_write_frame_rate
bool presence_reg_write_frame_rate(const uint32_t value)
Definition: presence_reg_protocol_access.c:247
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:620
presence_reg_read_protocol_status
void presence_reg_read_protocol_status(uint32_t *value)
Definition: presence_reg_protocol_access.c:38
presence_reg_read_intra_output_time_const
void presence_reg_read_intra_output_time_const(uint32_t *value)
Definition: presence_reg_protocol_access.c:413
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:136
presence_reg_read_inter_frame_presence_timeout
void presence_reg_read_inter_frame_presence_timeout(uint32_t *value)
Definition: presence_reg_protocol_access.c:137
PRESENCE_REG_SWEEPS_PER_FRAME_ADDRESS
#define PRESENCE_REG_SWEEPS_PER_FRAME_ADDRESS
Definition: presence_reg_protocol.h:22
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:347
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:263
PRESENCE_REG_HWAAS_DEFAULT_VALUE
#define PRESENCE_REG_HWAAS_DEFAULT_VALUE
Definition: presence_reg_protocol.h:153
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:44
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:138
PRESENCE_REG_COMMAND_ADDRESS
#define PRESENCE_REG_COMMAND_ADDRESS
Definition: presence_reg_protocol.h:45
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:139
PRESENCE_REG_INTER_DETECTION_THRESHOLD_ADDRESS
#define PRESENCE_REG_INTER_DETECTION_THRESHOLD_ADDRESS
Definition: presence_reg_protocol.h:29
presence_reg_read_detector_status
void presence_reg_read_detector_status(uint32_t *value)
Definition: presence_reg_protocol_access.c:78
presence_reg_read_hwaas
void presence_reg_read_hwaas(uint32_t *value)
Definition: presence_reg_protocol_access.c:687
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_read_auto_step_length_enabled
void presence_reg_read_auto_step_length_enabled(uint32_t *value)
Definition: presence_reg_protocol_access.c:489
PRESENCE_REG_INTER_FRAME_SLOW_CUTOFF_DEFAULT_VALUE
#define PRESENCE_REG_INTER_FRAME_SLOW_CUTOFF_DEFAULT_VALUE
Definition: presence_reg_protocol.h:142
PRESENCE_REG_END_DEFAULT_VALUE
#define PRESENCE_REG_END_DEFAULT_VALUE
Definition: presence_reg_protocol.h:151
presence_reg_write_command
bool presence_reg_write_command(const uint32_t value)
Definition: presence_reg_protocol_access.c:733
PRESENCE_REG_DETECTION_ON_GPIO_DEFAULT_VALUE
#define PRESENCE_REG_DETECTION_ON_GPIO_DEFAULT_VALUE
Definition: presence_reg_protocol.h:154
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:636
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:322
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:313
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:596
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:152
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:143
presence_reg_read_auto_profile_enabled
void presence_reg_read_auto_profile_enabled(uint32_t *value)
Definition: presence_reg_protocol_access.c:463
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:148
presence_reg_read_inter_output_time_const
void presence_reg_read_inter_output_time_const(uint32_t *value)
Definition: presence_reg_protocol_access.c:438
presence_reg_read_inter_presence_score
void presence_reg_read_inter_presence_score(uint32_t *value)
Definition: presence_reg_protocol_access.c:106
presence_reg_write_detection_on_gpio
bool presence_reg_write_detection_on_gpio(const uint32_t value)
Definition: presence_reg_protocol_access.c:723
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:23
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:145
presence_reg_read_manual_step_length
void presence_reg_read_manual_step_length(uint32_t *value)
Definition: presence_reg_protocol_access.c:588
PRESENCE_REG_AUTO_PROFILE_ENABLED_DEFAULT_VALUE
#define PRESENCE_REG_AUTO_PROFILE_ENABLED_DEFAULT_VALUE
Definition: presence_reg_protocol.h:146
presence_reg_write_inter_detection_enabled
bool presence_reg_write_inter_detection_enabled(const uint32_t value)
Definition: presence_reg_protocol_access.c:222
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:145
presence_reg_read_inter_phase_boost_enabled
void presence_reg_read_inter_phase_boost_enabled(uint32_t *value)
Definition: presence_reg_protocol_access.c:160
presence_reg_read_version
void presence_reg_read_version(uint32_t *value)
Definition: presence_reg_protocol_access.c:32
PRESENCE_REG_SWEEPS_PER_FRAME_DEFAULT_VALUE
#define PRESENCE_REG_SWEEPS_PER_FRAME_DEFAULT_VALUE
Definition: presence_reg_protocol.h:132
presence_reg_write_hwaas
bool presence_reg_write_hwaas(const uint32_t value)
Definition: presence_reg_protocol_access.c:695
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:499
presence_reg_read_presence_result
void presence_reg_read_presence_result(uint32_t *value)
Definition: presence_reg_protocol_access.c:84
presence_reg_write_sweeps_per_frame
bool presence_reg_write_sweeps_per_frame(const uint32_t value)
Definition: presence_reg_protocol_access.c:122
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:388
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:212
PRESENCE_REG_MANUAL_STEP_LENGTH_DEFAULT_VALUE
#define PRESENCE_REG_MANUAL_STEP_LENGTH_DEFAULT_VALUE
Definition: presence_reg_protocol.h:149
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:288
presence_reg_read_detection_on_gpio
void presence_reg_read_detection_on_gpio(uint32_t *value)
Definition: presence_reg_protocol_access.c:710
presence_reg_read_reset_filters_on_prepare
void presence_reg_read_reset_filters_on_prepare(uint32_t *value)
Definition: presence_reg_protocol_access.c:661
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:238
presence_reg_read_inter_frame_fast_cutoff
void presence_reg_read_inter_frame_fast_cutoff(uint32_t *value)
Definition: presence_reg_protocol_access.c:338
presence_reg_read_start
void presence_reg_read_start(uint32_t *value)
Definition: presence_reg_protocol_access.c:611
PRESENCE_REG_INTER_PHASE_BOOST_ENABLED_DEFAULT_VALUE
#define PRESENCE_REG_INTER_PHASE_BOOST_ENABLED_DEFAULT_VALUE
Definition: presence_reg_protocol.h:134
presence_reg_read_sweeps_per_frame
void presence_reg_read_sweeps_per_frame(uint32_t *value)
Definition: presence_reg_protocol_access.c:114
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:671
presence_reg_read_manual_profile
void presence_reg_read_manual_profile(uint32_t *value)
Definition: presence_reg_protocol_access.c:515
PRESENCE_REG_INTER_FRAME_FAST_CUTOFF_DEFAULT_VALUE
#define PRESENCE_REG_INTER_FRAME_FAST_CUTOFF_DEFAULT_VALUE
Definition: presence_reg_protocol.h:141
presence_reg_write_intra_detection_enabled
bool presence_reg_write_intra_detection_enabled(const uint32_t value)
Definition: presence_reg_protocol_access.c:196
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:98
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:186
presence_reg_write_end
bool presence_reg_write_end(const uint32_t value)
Definition: presence_reg_protocol_access.c:645
presence_reg_protocol_write_default
void presence_reg_protocol_write_default(void)
Definition: presence_reg_protocol.c:188
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:422
PRESENCE_REG_INTER_PHASE_BOOST_ENABLED_ADDRESS
#define PRESENCE_REG_INTER_PHASE_BOOST_ENABLED_ADDRESS
Definition: presence_reg_protocol.h:24
PRESENCE_REG_FRAME_RATE_DEFAULT_VALUE
#define PRESENCE_REG_FRAME_RATE_DEFAULT_VALUE
Definition: presence_reg_protocol.h:137
presence_reg_write_inter_phase_boost_enabled
bool presence_reg_write_inter_phase_boost_enabled(const uint32_t value)
Definition: presence_reg_protocol_access.c:170
presence_reg_write_manual_profile
bool presence_reg_write_manual_profile(const uint32_t value)
Definition: presence_reg_protocol_access.c:546