Data Structures | Functions
acc_control_helper.h File Reference
`#include <stdint.h>`
`#include "acc_config.h"`
`#include "acc_definitions_a121.h"`
`#include "acc_definitions_common.h"`
`#include "acc_processing.h"`
`#include "acc_sensor.h"`

Go to the source code of this file.

## Data Structures
struct | acc_control_helper_t

## Functions
bool | acc_control_helper_create (acc_control_helper_t *radar, acc_sensor_id_t sensor_id)
| Create a helper instance. More...
void | acc_control_helper_destroy (acc_control_helper_t *radar)
| Destroy a helper instance. More...
bool | acc_control_helper_activate (acc_control_helper_t *radar)
| Activate the sensor. More...
bool | acc_control_helper_get_next (acc_control_helper_t *radar)
| Perform a radar measurement and wait for the result. More...

## Function Documentation

## ◆ acc_control_helper_activate()

bool acc_control_helper_activate | ( | acc_control_helper_t * | radar | ) |

Activate the sensor.

After a successful call to this function the following members of the acc_control_helper_t struct are updated:

buffer_size: The size of the allocated buffer sensor: Pointer to sensor instance processing: Pointer to processing instance cal_result: The calibration data

Parameters

  radar | A pointer to an acc_control_helper_t struct

Returns
  true if successful, false otherwise

Examples
  example_control_helper.c, example_processing_amplitude.c, example_processing_coherent_mean.c, example_processing_noncoherent_mean.c, example_processing_peak_interpolation.c, example_processing_static_presence.c, and example_processing_subtract_adaptive_bg.c.

Definition at line 81 of file acc_control_helper.c.

## ◆ acc_control_helper_create()

bool acc_control_helper_create | ( | acc_control_helper_t * | radar,
|  | acc_sensor_id_t | sensor_id
| ) |  |

Create a helper instance.

After a successful call to this function all members of the the acc_control_helper_t are initialized to default values and the config member is created.

Parameters

  radar | A pointer to an acc_control_helper_t struct. The members in this struct will be initialized.
  sensor_id | The sensor id

Returns
  true if successful, false otherwise

Examples
  example_control_helper.c, example_processing_amplitude.c, example_processing_coherent_mean.c, example_processing_noncoherent_mean.c, example_processing_peak_interpolation.c, example_processing_static_presence.c, and example_processing_subtract_adaptive_bg.c.

Definition at line 41 of file acc_control_helper.c.

## ◆ acc_control_helper_destroy()

void acc_control_helper_destroy | ( | acc_control_helper_t * | radar | ) |

Destroy a helper instance.

Parameters

  radar | A pointer to an acc_control_helper_t struct

Examples
  example_control_helper.c, example_processing_amplitude.c, example_processing_coherent_mean.c, example_processing_noncoherent_mean.c, example_processing_peak_interpolation.c, example_processing_static_presence.c, and example_processing_subtract_adaptive_bg.c.

Definition at line 50 of file acc_control_helper.c.

## ◆ acc_control_helper_get_next()

bool acc_control_helper_get_next | ( | acc_control_helper_t * | radar | ) |

Perform a radar measurement and wait for the result.

After each call to this function the "proc_result" member of the acc_control_helper_t is updated.

Parameters

  radar | A pointer to an acc_control_helper_t struct

Returns
  true if successful, false otherwise

Examples
  example_control_helper.c, example_processing_amplitude.c, example_processing_coherent_mean.c, example_processing_noncoherent_mean.c, example_processing_peak_interpolation.c, example_processing_static_presence.c, and example_processing_subtract_adaptive_bg.c.

Definition at line 157 of file acc_control_helper.c.