Go to the documentation of this file.
41 uint32_t protocol_status = 0;
68 *value = protocol_status;
166 *value = bool_value ? 1 : 0;
177 bool enabled = (value != 0);
192 *value = bool_value ? 1 : 0;
203 bool enabled = (value != 0);
218 *value = bool_value ? 1 : 0;
229 bool enabled = (value != 0);
469 *value = bool_value ? 1 : 0;
480 bool enabled = (value != 0);
495 *value = bool_value ? 1 : 0;
506 bool enabled = (value != 0);
519 uint32_t profile_value = 0;
542 *value = profile_value;
667 *value = bool_value ? 1 : 0;
678 bool enabled = (value != 0);
725 bool enable = (value != 0);
bool presence_reg_write_inter_frame_slow_cutoff(const uint32_t value)
uint32_t acc_reg_protocol_float_to_uint32_milli(float value)
Convert 1000 * float to uint32.
void acc_detector_presence_config_inter_detection_set(acc_detector_presence_config_t *presence_config, bool enable)
Set inter-frame presence detection.
void acc_detector_presence_config_sweeps_per_frame_set(acc_detector_presence_config_t *presence_config, uint16_t sweeps_per_frame)
Set the number of sweeps per frame.
void presence_reg_read_intra_output_time_const(uint32_t *value)
void acc_detector_presence_config_hwaas_set(acc_detector_presence_config_t *presence_config, uint16_t hwaas)
Set the hardware accelerated average samples (HWAAS)
void presence_reg_read_inter_frame_fast_cutoff(uint32_t *value)
void presence_reg_read_manual_profile(uint32_t *value)
bool presence_reg_write_inter_frame_fast_cutoff(const uint32_t value)
uint32_t acc_reg_protocol_get_error_flags(void)
Get the error flags for the register protocol.
uint32_t i2c_presence_detector_get_status(void)
Get presence detector status.
#define ACC_REG_ERROR_FLAG_PACKET_LENGTH_ERROR
void acc_detector_presence_config_inter_phase_boost_set(acc_detector_presence_config_t *presence_config, bool enable)
Set inter-frame phase boost.
acc_config_profile_t
Profile.
bool presence_reg_write_intra_detection_enabled(const uint32_t value)
bool presence_reg_write_auto_step_length_enabled(const uint32_t value)
void acc_detector_presence_config_inter_frame_deviation_time_const_set(acc_detector_presence_config_t *presence_config, float inter_frame_deviation_time_const)
Set the time constant of the low pass filter for the inter-frame deviation between fast and slow.
bool acc_detector_presence_config_reset_filters_on_prepare_get(const acc_detector_presence_config_t *presence_config)
Get if the presence filters should reset on prepare.
bool presence_reg_write_detection_on_gpio(const uint32_t value)
void acc_detector_presence_config_auto_profile_set(acc_detector_presence_config_t *presence_config, bool enable)
Enable automatic selection of profile based on start point of measurement.
bool presence_reg_write_manual_step_length(const uint32_t value)
void presence_reg_read_intra_detection_threshold(uint32_t *value)
#define ACC_REG_ERROR_FLAG_ADDRESS_ERROR
float acc_detector_presence_config_start_get(const acc_detector_presence_config_t *presence_config)
Get the start point of measurement interval in meters.
void presence_reg_read_sweeps_per_frame(uint32_t *value)
void presence_reg_read_reset_filters_on_prepare(uint32_t *value)
void presence_reg_read_intra_presence_score(uint32_t *value)
void acc_detector_presence_config_frame_rate_set(acc_detector_presence_config_t *presence_config, float frame_rate)
Set the frame rate.
void presence_reg_read_presence_distance(uint32_t *value)
bool presence_reg_write_end(const uint32_t value)
void presence_reg_read_protocol_status(uint32_t *value)
float acc_detector_presence_config_inter_output_time_const_get(const acc_detector_presence_config_t *presence_config)
Get the time constant for the output in the inter-frame part.
void acc_integration_critical_section_exit(void)
void presence_reg_read_inter_detection_threshold(uint32_t *value)
void presence_reg_read_start(uint32_t *value)
bool presence_reg_write_inter_detection_threshold(const uint32_t value)
void presence_reg_read_inter_frame_deviation_time_const(uint32_t *value)
uint32_t i2c_presence_detector_get_counter(void)
Get presence detector measure counter.
void presence_reg_read_measure_counter(uint32_t *value)
void presence_reg_read_manual_step_length(uint32_t *value)
uint32_t acc_version_get_hex(void)
Get the version of the Acconeer software as a hex number.
bool presence_reg_write_sweeps_per_frame(const uint32_t value)
#define PRESENCE_REG_MANUAL_PROFILE_ENUM_PROFILE3
bool presence_reg_write_command(const uint32_t value)
void presence_reg_read_end(uint32_t *value)
void acc_detector_presence_config_intra_detection_threshold_set(acc_detector_presence_config_t *presence_config, float intra_detection_threshold)
Set the detection threshold for the intra-frame presence detection.
float acc_detector_presence_config_inter_frame_slow_cutoff_get(const acc_detector_presence_config_t *presence_config)
Get the cutoff frequency of the low pass filter for the slow filtered absolute sweep mean.
#define PRESENCE_REG_MANUAL_PROFILE_ENUM_PROFILE1
bool presence_reg_write_inter_frame_presence_timeout(const uint32_t value)
#define PRESENCE_REG_PROTOCOL_STATUS_FIELD_PROTOCOL_STATE_ERROR_MASK
void presence_reg_read_auto_profile_enabled(uint32_t *value)
#define PRESENCE_REG_MANUAL_PROFILE_ENUM_PROFILE4
float acc_detector_presence_config_end_get(const acc_detector_presence_config_t *presence_config)
Get the end point of measurement interval in meters.
void presence_reg_read_presence_result(uint32_t *value)
bool acc_detector_presence_config_inter_detection_get(const acc_detector_presence_config_t *presence_config)
Get if inter-frame presence detection is enabled.
void presence_reg_read_inter_frame_slow_cutoff(uint32_t *value)
uint16_t acc_detector_presence_config_hwaas_get(const acc_detector_presence_config_t *presence_config)
Get the hardware accelerated average samples (HWAAS)
acc_detector_presence_config_t * i2c_presence_detector_get_config(void)
Get presence detector configuration handle.
uint16_t acc_detector_presence_config_inter_frame_presence_timeout_get(const acc_detector_presence_config_t *presence_config)
Get the inter-frame presence timeout in seconds.
#define ACC_REG_ERROR_FLAG_WRITE_FAILED
#define PRESENCE_REG_MANUAL_PROFILE_ENUM_PROFILE5
void acc_detector_presence_config_inter_frame_presence_timeout_set(acc_detector_presence_config_t *presence_config, uint16_t inter_frame_presence_timeout)
Set the inter-frame presence timeout in seconds.
bool presence_reg_write_frame_rate(const uint32_t value)
void i2c_presence_detector_presence_detected_gpio(bool enable)
Enable/Disable gpio output for presence detected.
float i2c_presence_detector_get_distance(void)
Get presence detector distance.
void presence_reg_read_intra_detection_enabled(uint32_t *value)
bool presence_reg_write_intra_detection_threshold(const uint32_t value)
bool acc_detector_presence_config_intra_detection_get(const acc_detector_presence_config_t *presence_config)
Get if frame intra-frame presence detection is enabled.
void acc_detector_presence_config_end_set(acc_detector_presence_config_t *presence_config, float end)
Set the end point of measurement interval in meters.
void acc_detector_presence_config_intra_output_time_const_set(acc_detector_presence_config_t *presence_config, float intra_output_time_const)
Set the time constant for the output in the intra-frame part.
void presence_reg_read_frame_rate(uint32_t *value)
uint32_t i2c_presence_detector_get_result(void)
Get presence detector result.
void presence_reg_read_inter_presence_score(uint32_t *value)
void presence_reg_read_detector_status(uint32_t *value)
float acc_detector_presence_config_inter_detection_threshold_get(const acc_detector_presence_config_t *presence_config)
Get the detection threshold for the inter-frame presence detection.
#define PRESENCE_REG_PROTOCOL_STATUS_FIELD_WRITE_TO_READ_ONLY_MASK
#define PRESENCE_REG_MANUAL_PROFILE_ENUM_PROFILE2
bool presence_reg_write_auto_profile_enabled(const uint32_t value)
bool presence_reg_write_hwaas(uint32_t value)
void acc_detector_presence_config_inter_output_time_const_set(acc_detector_presence_config_t *presence_config, float inter_output_time_const)
Set the time constant for the output in the inter-frame part.
bool presence_reg_write_inter_detection_enabled(const uint32_t value)
void acc_detector_presence_config_reset_filters_on_prepare_set(acc_detector_presence_config_t *presence_config, bool enable)
Set if the presence filters should reset on prepare.
bool presence_reg_write_intra_output_time_const(const uint32_t value)
float acc_detector_presence_config_inter_frame_deviation_time_const_get(const acc_detector_presence_config_t *presence_config)
Get the time constant of the low pass filter for the inter-frame deviation between fast and slow.
float acc_reg_protocol_uint32_milli_to_float(uint32_t value)
Convert uint32 / 1000 to float.
void acc_detector_presence_config_intra_detection_set(acc_detector_presence_config_t *presence_config, bool enable)
Set intra-frame presence detection.
void presence_reg_read_detection_on_gpio(uint32_t *value)
uint16_t acc_detector_presence_config_step_length_get(const acc_detector_presence_config_t *presence_config)
Get the step length in points.
struct acc_detector_presence_config acc_detector_presence_config_t
#define ACC_REG_ERROR_FLAG_PROTOCOL_STATE_ERROR
bool acc_detector_presence_config_auto_profile_get(const acc_detector_presence_config_t *presence_config)
Get if automatic selection of profile based on start point of measurement is enabled.
void presence_reg_read_intra_frame_time_const(uint32_t *value)
bool acc_detector_presence_config_auto_step_length_get(const acc_detector_presence_config_t *presence_config)
Get if automatic selection of step length based on the profile is enabled.
void acc_detector_presence_config_inter_frame_slow_cutoff_set(acc_detector_presence_config_t *presence_config, float inter_frame_slow_cutoff)
Set the cutoff frequency of the low pass filter for the slow filtered absolute sweep mean.
uint16_t acc_detector_presence_config_sweeps_per_frame_get(const acc_detector_presence_config_t *presence_config)
Get the number of sweeps per frame.
void presence_reg_read_auto_step_length_enabled(uint32_t *value)
#define ACC_REG_ERROR_FLAG_WRITE_TO_READ_ONLY
bool presence_reg_write_intra_frame_time_const(const uint32_t value)
bool presence_reg_write_inter_phase_boost_enabled(const uint32_t value)
float i2c_presence_detector_get_inter_presence_score(void)
Get inter presence score.
void presence_reg_read_inter_phase_boost_enabled(uint32_t *value)
bool presence_reg_write_start(const uint32_t value)
float acc_detector_presence_config_frame_rate_get(const acc_detector_presence_config_t *presence_config)
Get the frame rate.
void presence_reg_read_version(uint32_t *value)
void acc_detector_presence_config_profile_set(acc_detector_presence_config_t *presence_config, acc_config_profile_t profile)
Set a profile.
bool i2c_presence_detector_get_presence_detected_gpio(void)
Get gpio output for presence detected state.
void acc_integration_critical_section_enter(void)
bool presence_reg_write_inter_output_time_const(const uint32_t value)
bool presence_reg_write_inter_frame_deviation_time_const(const uint32_t value)
float acc_detector_presence_config_intra_detection_threshold_get(const acc_detector_presence_config_t *presence_config)
Get the detection threshold for the intra-frame presence detection.
float i2c_presence_detector_get_intra_presence_score(void)
Get intra presence score.
#define PRESENCE_REG_PROTOCOL_STATUS_FIELD_ADDRESS_ERROR_MASK
float acc_detector_presence_config_inter_frame_fast_cutoff_get(const acc_detector_presence_config_t *presence_config)
Get the cutoff frequency of the low pass filter for the fast filtered absolute sweep mean.
acc_config_profile_t acc_detector_presence_config_profile_get(const acc_detector_presence_config_t *presence_config)
Get the currently set profile.
bool acc_detector_presence_config_inter_phase_boost_get(const acc_detector_presence_config_t *presence_config)
Get if inter-frame phase boost is enabled.
static uint32_t get_protocol_error_flags(void)
Get the protocol error status flags.
void presence_reg_read_inter_detection_enabled(uint32_t *value)
float acc_detector_presence_config_intra_frame_time_const_get(const acc_detector_presence_config_t *presence_config)
Get the time constant for the depthwise filtering in the intra-frame part.
void acc_detector_presence_config_start_set(acc_detector_presence_config_t *presence_config, float start)
Set the start point of measurement interval in meters.
#define PRESENCE_REG_PROTOCOL_STATUS_FIELD_WRITE_FAILED_MASK
float acc_detector_presence_config_intra_output_time_const_get(const acc_detector_presence_config_t *presence_config)
Get the time constant for the output in the intra-frame part.
bool presence_reg_write_reset_filters_on_prepare(const uint32_t value)
void presence_reg_read_inter_frame_presence_timeout(uint32_t *value)
void acc_detector_presence_config_inter_detection_threshold_set(acc_detector_presence_config_t *presence_config, float inter_detection_threshold)
Set the detection threshold for the inter-frame presence detection.
void acc_detector_presence_config_auto_step_length_set(acc_detector_presence_config_t *presence_config, bool enable)
Enable automatic selection of step length based on the profile.
#define PRESENCE_REG_PROTOCOL_STATUS_FIELD_PACKET_LENGTH_ERROR_MASK
bool presence_reg_write_manual_profile(const uint32_t value)
void presence_reg_read_inter_output_time_const(uint32_t *value)
void acc_detector_presence_config_intra_frame_time_const_set(acc_detector_presence_config_t *presence_config, float intra_frame_time_const)
Set the time constant for the depthwise filtering in the intra-frame part.
void presence_reg_read_hwaas(uint32_t *value)
void acc_detector_presence_config_step_length_set(acc_detector_presence_config_t *presence_config, uint16_t step_length)
Set the step length in points.
bool i2c_presence_detector_command(uint32_t command)
Send command to be executed to i2c presence detector.
void acc_detector_presence_config_inter_frame_fast_cutoff_set(acc_detector_presence_config_t *presence_config, float inter_frame_fast_cutoff)
Set the cutoff frequency of the low pass filter for the fast filtered absolute sweep mean.