Go to the documentation of this file.
7 #ifndef EXAMPLE_CARGO_H_
8 #define EXAMPLE_CARGO_H_
239 bool *calibration_complete);
269 bool *calibration_complete);
322 bool *result_available,
cargo_preset_t
Cargo Example App Presets.
cargo_handle_t * cargo_handle_create(const cargo_config_t *cargo_config)
Create a cargo handle.
uint32_t distance_cal_result_static_size
bool cargo_process_presence(cargo_handle_t *handle, void *buffer, cargo_result_t *cargo_result, acc_detector_presence_result_t *nullable_presence_result)
Process Sparse IQ data into a Cargo result.
float intra_detection_threshold
bool cargo_prepare_presence(cargo_handle_t *handle, acc_sensor_t *sensor, const acc_cal_result_t *sensor_cal_result, void *buffer, uint32_t buffer_size)
Prepare Cargo presence for measurements.
cargo_mode_t
Cargo mode enumeration.
acc_cal_result_t sensor_cal_result
bool cargo_presence_metadata_get(cargo_handle_t *handle, acc_detector_presence_metadata_t *presence_metadata)
Get presence detector metadata.
The result from a completed calibration.
uint8_t * distance_cal_result_static
cargo_container_size_t
Container size.
void cargo_config_initialize(cargo_config_t *cargo_config, cargo_preset_t preset)
Initialize cargo config struct with a preset.
Configuration struct for cargo.
float inter_presence_score
uint16_t sweeps_per_frame
@ CARGO_CONTAINER_SIZE_10_FT
Presence detector results container.
The result from a completed calibration update.
@ CARGO_CONTAINER_SIZE_40_FT
bool cargo_calibrate(cargo_handle_t *handle, acc_sensor_t *sensor, const acc_cal_result_t *sensor_cal_result, void *buffer, uint32_t buffer_size, uint8_t *distance_cal_result_static, uint32_t distance_cal_result_static_size, acc_detector_cal_result_dynamic_t *distance_cal_result_dynamic, bool *calibration_complete)
Calibrate Cargo.
@ CARGO_CONTAINER_SIZE_20_FT
bool cargo_get_buffer_size(const cargo_handle_t *handle, uint32_t *buffer_size)
Get the required buffer sensor data buffer size.
bool cargo_get_distance_cal_result_static_size(const cargo_handle_t *handle, uint32_t *distance_cal_result_static_size)
Get the required buffer for static distance detector calibration.
@ CARGO_PRESET_CONTAINER_40_FEET
bool activate_utilization_level
Distance Detector result returned from acc_detector_distance_process.
float intra_presence_score
@ CARGO_PRESET_CONTAINER_10_FEET
acc_detector_presence_metadata_t presence_metadata
void cargo_config_log(const cargo_config_t *cargo_config)
Log cargo config to debug uart.
void cargo_handle_destroy(cargo_handle_t *handle)
Destroy a cargo handle.
cargo_container_size_t container_size
@ CARGO_PRESET_CONTAINER_20_FEET
bool cargo_process_utilization(cargo_handle_t *handle, uint8_t *distance_cal_result_static, acc_detector_cal_result_dynamic_t *distance_cal_result_dynamic, void *buffer, cargo_result_t *cargo_result, bool *result_available, acc_detector_distance_result_t *nullable_distance_result)
Process Sparse IQ data into a Cargo result.
acc_detector_cal_result_dynamic_t distance_cal_result_dynamic
cargo_mode_t cargo_current_mode_get(const cargo_handle_t *handle)
Get current mode of the cargo handle.
bool cargo_update_calibration(cargo_handle_t *handle, acc_sensor_t *sensor, const acc_cal_result_t *sensor_cal_result, void *buffer, uint32_t buffer_size, acc_detector_cal_result_dynamic_t *distance_cal_result_dynamic, bool *calibration_complete)
Update Cargo calibration.
bool cargo_prepare_utilization(cargo_handle_t *handle, acc_sensor_t *sensor, const acc_cal_result_t *sensor_cal_result, void *buffer, uint32_t buffer_size)
Prepare Cargo utilization for measurements.
struct acc_sensor acc_sensor_t
float inter_detection_threshold
float threshold_sensitivity