Go to the documentation of this file.
48 uint32_t protocol_status = 0;
75 *value = protocol_status;
101 *value = (uint32_t)float_value;
187 *value =
config->num_dists_to_analyze;
198 config->num_dists_to_analyze = value;
210 *value =
config->distance_determination_duration_s;
221 config->distance_determination_duration_s = value;
233 *value =
config->use_presence_processor ? 1 : 0;
244 config->use_presence_processor = (value != 0);
256 *value =
config->lowest_breathing_rate;
267 config->lowest_breathing_rate = value;
279 *value =
config->highest_breathing_rate;
290 config->highest_breathing_rate = value;
302 *value =
config->time_series_length_s;
313 config->time_series_length_s = value;
396 uint32_t profile_value = 0;
419 *value = profile_value;
@ REF_APP_BREATHING_APP_STATE_ESTIMATE_BREATHING_RATE
uint32_t acc_reg_protocol_float_to_uint32_milli(float value)
Convert 1000 * float to uint32.
void ref_app_breathing_reg_read_app_state(uint32_t *value)
#define REF_APP_BREATHING_REG_APP_STATE_ENUM_ESTIMATE_BREATHING_RATE
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.
bool ref_app_breathing_reg_write_command(const uint32_t value)
@ REF_APP_BREATHING_APP_STATE_INIT
uint32_t i2c_ref_app_breathing_get_status(void)
Get ref app breathing status.
void acc_detector_presence_config_hwaas_set(acc_detector_presence_config_t *presence_config, uint16_t hwaas)
Set the hardware accelerated average samples (HWAAS)
#define REF_APP_BREATHING_REG_APPLICATION_ID_ENUM_REF_APP_BREATHING
#define REF_APP_BREATHING_REG_PROTOCOL_STATUS_FIELD_PROTOCOL_STATE_ERROR_MASK
uint32_t acc_reg_protocol_get_error_flags(void)
Get the error flags for the register protocol.
#define ACC_REG_ERROR_FLAG_PACKET_LENGTH_ERROR
bool ref_app_breathing_reg_write_highest_breathing_rate(const uint32_t value)
ref_app_breathing_config_t * i2c_ref_app_breathing_get_config(void)
Get ref app breathing configuration handle.
#define REF_APP_BREATHING_REG_APP_STATE_ENUM_INTRA_PRESENCE
bool ref_app_breathing_reg_write_end(const uint32_t value)
void ref_app_breathing_reg_read_time_series_length_s(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.
#define REF_APP_BREATHING_REG_APP_STATE_ENUM_DETERMINE_DISTANCE
void acc_detector_presence_config_frame_rate_set(acc_detector_presence_config_t *presence_config, float frame_rate)
Set the frame rate.
#define REF_APP_BREATHING_REG_APP_STATE_ENUM_INIT
void acc_integration_critical_section_exit(void)
void ref_app_breathing_reg_read_end(uint32_t *value)
bool ref_app_breathing_reg_write_hwaas(uint32_t value)
void ref_app_breathing_reg_read_lowest_breathing_rate(uint32_t *value)
bool ref_app_breathing_reg_write_start(const uint32_t value)
uint32_t acc_version_get_hex(void)
Get the version of the Acconeer software as a hex number.
#define REF_APP_BREATHING_REG_PROTOCOL_STATUS_FIELD_PACKET_LENGTH_ERROR_MASK
bool ref_app_breathing_reg_write_time_series_length_s(const uint32_t value)
@ REF_APP_BREATHING_APP_STATE_INTRA_PRESENCE
float i2c_ref_app_breathing_get_breathing_rate(void)
Get breathing rate.
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.
ref_app_breathing_app_state_t i2c_ref_app_breathing_get_app_state(void)
Get app state.
void ref_app_breathing_reg_read_num_distances_to_analyze(uint32_t *value)
void ref_app_breathing_reg_read_sweeps_per_frame(uint32_t *value)
float acc_detector_presence_config_end_get(const acc_detector_presence_config_t *presence_config)
Get the end point of measurement interval in meters.
uint16_t acc_detector_presence_config_hwaas_get(const acc_detector_presence_config_t *presence_config)
Get the hardware accelerated average samples (HWAAS)
#define REF_APP_BREATHING_REG_APP_STATE_ENUM_NO_PRESENCE
bool ref_app_breathing_reg_write_intra_detection_threshold(const uint32_t value)
#define ACC_REG_ERROR_FLAG_WRITE_FAILED
void ref_app_breathing_reg_read_measure_counter(uint32_t *value)
bool ref_app_breathing_reg_write_sweeps_per_frame(const uint32_t value)
uint32_t i2c_ref_app_breathing_get_counter(void)
Get measure counter.
void ref_app_breathing_reg_read_intra_detection_threshold(uint32_t *value)
void ref_app_breathing_reg_read_application_id(uint32_t *value)
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 ref_app_breathing_reg_read_app_status(uint32_t *value)
@ REF_APP_BREATHING_APP_STATE_NO_PRESENCE
bool i2c_ref_app_breathing_command(uint32_t command)
Send command to be executed to i2c ref app breathing.
#define REF_APP_BREATHING_REG_PROFILE_ENUM_PROFILE3
bool ref_app_breathing_reg_write_num_distances_to_analyze(const uint32_t value)
#define REF_APP_BREATHING_REG_PROTOCOL_STATUS_FIELD_WRITE_TO_READ_ONLY_MASK
bool ref_app_breathing_reg_write_lowest_breathing_rate(const uint32_t value)
#define REF_APP_BREATHING_REG_PROFILE_ENUM_PROFILE5
void ref_app_breathing_reg_read_hwaas(uint32_t *value)
float acc_reg_protocol_uint32_milli_to_float(uint32_t value)
Convert uint32 / 1000 to float.
#define REF_APP_BREATHING_REG_PROFILE_ENUM_PROFILE2
void ref_app_breathing_reg_read_start(uint32_t *value)
void ref_app_breathing_reg_read_profile(uint32_t *value)
void ref_app_breathing_reg_read_breathing_result(uint32_t *value)
void ref_app_breathing_reg_read_version(uint32_t *value)
static uint32_t get_protocol_error_flags(void)
Get the protocol error status flags.
#define ACC_REG_ERROR_FLAG_PROTOCOL_STATE_ERROR
void ref_app_breathing_reg_read_protocol_status(uint32_t *value)
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.
#define REF_APP_BREATHING_REG_PROFILE_ENUM_PROFILE4
#define ACC_REG_ERROR_FLAG_WRITE_TO_READ_ONLY
bool ref_app_breathing_reg_write_frame_rate(const uint32_t value)
void ref_app_breathing_reg_read_breathing_rate(uint32_t *value)
@ REF_APP_BREATHING_APP_STATE_DETERMINE_DISTANCE
#define REF_APP_BREATHING_REG_PROTOCOL_STATUS_FIELD_WRITE_FAILED_MASK
float acc_detector_presence_config_frame_rate_get(const acc_detector_presence_config_t *presence_config)
Get the frame rate.
void acc_detector_presence_config_profile_set(acc_detector_presence_config_t *presence_config, acc_config_profile_t profile)
Set a profile.
void ref_app_breathing_reg_read_highest_breathing_rate(uint32_t *value)
void ref_app_breathing_reg_read_distance_determination_duration_s(uint32_t *value)
void acc_integration_critical_section_enter(void)
bool ref_app_breathing_reg_write_profile(const uint32_t value)
acc_config_profile_t
Profile.
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.
acc_config_profile_t acc_detector_presence_config_profile_get(const acc_detector_presence_config_t *presence_config)
Get the currently set profile.
uint32_t i2c_ref_app_breathing_get_result(void)
Get ref app breathing result.
Breathing application config container.
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.
void ref_app_breathing_reg_read_frame_rate(uint32_t *value)
#define REF_APP_BREATHING_REG_PROTOCOL_STATUS_FIELD_ADDRESS_ERROR_MASK
bool ref_app_breathing_reg_write_use_presence_processor(const uint32_t value)
bool ref_app_breathing_reg_write_distance_determination_duration_s(const uint32_t value)
ref_app_breathing_app_state_t
State of the application.
void ref_app_breathing_reg_read_use_presence_processor(uint32_t *value)
#define REF_APP_BREATHING_REG_PROFILE_ENUM_PROFILE1