|
|
#include <stdbool.h>#include <stdio.h>#include <stdlib.h>#include "acc_config.h"#include "acc_hal_definitions_a121.h"#include "acc_hal_integration_a121.h"#include "acc_integration.h"#include "acc_integration_log.h"#include "acc_rss_a121.h"#include "acc_sensor.h"#include "acc_version.h"#include "example_cargo.h"#include "example_cargo_main.h"Go to the source code of this file.
Macros | |
| #define | SENSOR_ID (1U) |
| #define | SENSOR_TIMEOUT_MS (1000U) |
Functions | |
| static void | cleanup (acc_sensor_t *sensor, void *buffer, uint8_t *distance_cal_result_static, cargo_handle_t *handle) |
| Frees any allocated resources. More... | |
| static bool | do_sensor_calibration (acc_sensor_t *sensor, void *buffer, uint32_t buffer_size, acc_cal_result_t *cal_result) |
| Performs sensor calibration (with retry) More... | |
| static bool | do_cargo_calibration (acc_sensor_t *sensor, cargo_handle_t *cargo_handle, void *buffer, uint32_t buffer_size, acc_cal_result_t *sensor_cal_result, uint8_t *distance_cal_result_static, uint32_t distance_cal_result_static_size, acc_detector_cal_result_dynamic_t *distance_cal_result_dynamic) |
| Performs cargo calibration (with retry) More... | |
| static void | print_cargo_result (const cargo_result_t *result, bool result_available) |
| Print a processor result in a human-readable format. More... | |
| int | acconeer_main (int argc, char *argv[]) |
| Assembly test example. More... | |
| #define SENSOR_ID (1U) |
Definition at line 22 of file example_cargo_main.c.
| #define SENSOR_TIMEOUT_MS (1000U) |
Definition at line 23 of file example_cargo_main.c.
| int acconeer_main | ( | int | argc, |
| char * | argv[] | ||
| ) |
Assembly test example.
Touchless button application.
Tank level reference application.
Smart presence reference application.
Parking application.
Breathing example application.
Waste level application.
Vibration example.
Surface velocity example application.
Service subsweeps example.
Service multple configurations example.
Low power service example.
Service sensor calibration caching example.
Service example.
Processing subtract adaptive background example.
Processing static presence example.
Processing peak interpolation example.
Processing noncoherent mean example.
Processing coherent mean example.
Processing amplitude example.
hand motion application
Detector presence example with multiple configurations.
Low power detector presence example.
Detector presence example.
Detector distance example with iq data print.
Distance detector low power example.
Detector distance with calibration caching example.
Detector distance example.
Control helper example.
Cargo application.
Test if measure on wake up is enable Do a measurement if the the detector is ready (configured and calibrated)
Test if measure on wake up is enable Do a measurement if the the detector is ready (configured and calibrated)
Detector filters and states are reset on prepare (reconfiguration) to avoid risk of false detections when switching back to a zone.
Detector filters and states are reset on prepare (reconfiguration) to avoid risk of false detections when switching back to a zone.
Definition at line 52 of file example_cargo_main.c.
|
static |
Frees any allocated resources.
Definition at line 291 of file example_cargo_main.c.
|
static |
Performs cargo calibration (with retry)
Definition at line 344 of file example_cargo_main.c.
|
static |
Performs sensor calibration (with retry)
Definition at line 317 of file example_cargo_main.c.
|
static |
Print a processor result in a human-readable format.
Definition at line 377 of file example_cargo_main.c.