#include <complex.h>
#include <stdbool.h>
#include <stdint.h>
#include "acc_config.h"
#include "acc_processing.h"
Go to the source code of this file.
◆ acc_vibration_handle_t
◆ acc_vibration_preset_t
Vibration presets.
| Enumerator |
|---|
| ACC_VIBRATION_PRESET_HIGH_FREQUENCY | |
| ACC_VIBRATION_PRESET_LOW_FREQUENCY | |
Definition at line 17 of file example_vibration.h.
◆ acc_vibration_reported_displacement_mode_t
Specifies how displacement is reported.
| Enumerator |
|---|
| ACC_VIBRATION_REPORT_DISPLACEMENT_AS_AMPLITUDE | Reports displacement as amplitude
|
| ACC_VIBRATION_REPORT_DISPLACEMENT_AS_PEAK2PEAK | Reports displacement as peak-to-peak
|
Definition at line 26 of file example_vibration.h.
◆ acc_vibration_config_log()
◆ acc_vibration_handle_continuous_data_acquisition_get()
| bool acc_vibration_handle_continuous_data_acquisition_get |
( |
acc_vibration_handle_t * |
handle, |
|
|
bool * |
continuous_data_acquisition |
|
) |
| |
- Parameters
-
| [in] | handle | A handle to get the internal setting from |
| [out] | continuous_data_acquisition | Wether continuous data acquisition is enabled |
- Returns
- True is arguments are non-NULL, false otherwise
- Examples
- example_vibration_main.c.
Definition at line 369 of file example_vibration.c.
◆ acc_vibration_handle_create()
◆ acc_vibration_handle_destroy()
◆ acc_vibration_handle_displacement_history_get()
| const float* acc_vibration_handle_displacement_history_get |
( |
acc_vibration_handle_t * |
handle, |
|
|
uint16_t * |
num_elem |
|
) |
| |
- Parameters
-
| [in] | handle | A handle to get the internal displacement history from |
| [out] | num_elem | The number of elements in the returned array |
- Returns
- An array with displacements if arguments are non-NULL
- Examples
- example_vibration_main.c.
Definition at line 355 of file example_vibration.c.
◆ acc_vibration_handle_sensor_config_get()
◆ acc_vibration_preset_set()
◆ acc_vibration_process()
- Parameters
-
| [in] | proc_result | Input for vibration processing |
| [in] | handle | The vibration processing handle |
| [in] | config | The vibration app config |
| [out] | result | The vibration processing result |
- Examples
- example_vibration_main.c.
Definition at line 437 of file example_vibration.c.