example_service.c File Reference
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include "acc_config.h"
#include "acc_definitions_a121.h"
#include "acc_definitions_common.h"
#include "acc_hal_definitions_a121.h"
#include "acc_hal_integration_a121.h"
#include "acc_integration.h"
#include "acc_processing.h"
#include "acc_rss_a121.h"
#include "acc_sensor.h"
#include "acc_version.h"

Go to the source code of this file.

Macros

#define SENSOR_ID   (1U)
 
#define SENSOR_TIMEOUT_MS   (1000U)
 
#define MAX_DATA_ENTRY_LEN   (15U)
 

Functions

static void set_config (acc_config_t *config)
 
static bool do_sensor_calibration_and_prepare (acc_sensor_t *sensor, acc_config_t *config, void *buffer, uint32_t buffer_size)
 
static void print_data (acc_int16_complex_t *data, uint16_t data_length)
 
static void cleanup (acc_config_t *config, acc_processing_t *processing, acc_sensor_t *sensor, void *buffer)
 
int app_main (int argc, char *argv[])
 Assembly test example. More...
 

Macro Definition Documentation

◆ MAX_DATA_ENTRY_LEN

#define MAX_DATA_ENTRY_LEN   (15U)
Examples
example_service.c.

Definition at line 43 of file example_service.c.

◆ SENSOR_ID

#define SENSOR_ID   (1U)
Examples
example_service.c.

Definition at line 41 of file example_service.c.

◆ SENSOR_TIMEOUT_MS

#define SENSOR_TIMEOUT_MS   (1000U)
Examples
example_service.c.

Definition at line 42 of file example_service.c.

Function Documentation

◆ app_main()

int app_main ( int  argc,
char *  argv[] 
)

Assembly test example.

Service subsweeps example.

Low power service example.

Service multple configurations 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.

Detector presence example with multiple configurations.

Detector presence example.

Detector distance example with iq data print.

Detector distance with calibration caching example.

Detector distance example.

Control helper example.

Returns
Returns EXIT_SUCCESS if successful, otherwise EXIT_FAILURE

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.

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.

Examples
example_service.c.

Definition at line 61 of file example_service.c.

◆ cleanup()

static void cleanup ( acc_config_t config,
acc_processing_t processing,
acc_sensor_t sensor,
void *  buffer 
)
static
Examples
example_service.c.

Definition at line 264 of file example_service.c.

◆ do_sensor_calibration_and_prepare()

static bool do_sensor_calibration_and_prepare ( acc_sensor_t sensor,
acc_config_t config,
void *  buffer,
uint32_t  buffer_size 
)
static
Examples
example_service.c.

Definition at line 205 of file example_service.c.

◆ print_data()

static void print_data ( acc_int16_complex_t data,
uint16_t  data_length 
)
static
Examples
example_service.c.

Definition at line 243 of file example_service.c.

◆ set_config()

static void set_config ( acc_config_t config)
static
Examples
example_service.c.

Definition at line 196 of file example_service.c.