|
|
#include <stdbool.h>#include <stdint.h>#include "acc_definitions_a121.h"#include "acc_definitions_common.h"Go to the source code of this file.
Data Structures | |
| struct | ref_app_parking_car_config_t |
| Configuration for car detection. More... | |
| struct | ref_app_parking_obstruction_config_t |
| Configuration for obstruction detection. More... | |
| struct | ref_app_parking_config_t |
| Overall configuration for parking application. More... | |
Typedefs | |
| typedef struct ref_app_parking_handle | ref_app_parking_handle_t |
Enumerations | |
| enum | ref_app_parking_parking_preset_t { PARKING_PRESET_NONE, PARKING_PRESET_GROUND, PARKING_PRESET_POLE } |
| Configuration presets - a set of configurations for a specific sensor placement. More... | |
| typedef struct ref_app_parking_handle ref_app_parking_handle_t |
Definition at line 23 of file ref_app_parking.h.
Configuration presets - a set of configurations for a specific sensor placement.
Definition at line 29 of file ref_app_parking.h.
| ref_app_parking_handle_t* ref_app_parking_handle_create | ( | ref_app_parking_config_t * | parking_config, |
| acc_sensor_id_t | sensor_id | ||
| ) |
Create parking handle.
The handle is used for both control and processing
This function enables the sensor
| [in] | parking_config | The parking config used to create the parking handle |
| [in] | sensor_id | The sensor_id for the sensor to be used |
Definition at line 252 of file ref_app_parking.c.
| void ref_app_parking_handle_destroy | ( | ref_app_parking_handle_t * | handle | ) |
Destroy parking handle.
This function disables the sensor
| [in] | handle | The handle to destroy |
Definition at line 284 of file ref_app_parking.c.
| bool ref_app_parking_handle_indications | ( | ref_app_parking_handle_t * | handle, |
| bool * | data_reliable | ||
| ) |
Handle indications from a measurement.
| [in] | handle | The handle to do a sensor measurement for |
| [out] | data_reliable | Flag to determine if data from measurement is reliable. Se log for more details if false |
Definition at line 597 of file ref_app_parking.c.
| bool ref_app_parking_measure | ( | ref_app_parking_handle_t * | handle, |
| bool | hibernate | ||
| ) |
Perform a sensor measurement.
| [in] | handle | The handle to do a sensor measurement for |
| [in] | hibernate | Hibernate sensor between measurements |
Definition at line 554 of file ref_app_parking.c.
| bool ref_app_parking_noise_calibration | ( | ref_app_parking_handle_t * | handle | ) |
Noise calibration.
| [in] | handle | The handle to calibrate noise for |
Definition at line 390 of file ref_app_parking.c.
| bool ref_app_parking_obstruction_calibration | ( | ref_app_parking_handle_t * | handle | ) |
Obstruction calibration.
Note that the sensor must be free from obstruction when calling this function.
| [in] | handle | The handle to calibrate obstruction for |
Definition at line 445 of file ref_app_parking.c.
| void ref_app_parking_obstruction_process | ( | ref_app_parking_handle_t * | handle, |
| bool * | obstruction_detected | ||
| ) |
Do obstruction processing.
| [in] | handle | The handle to do obstruction processing for |
| [out] | obstruction_detected | true if obstruction detected, false otherwise |
Definition at line 663 of file ref_app_parking.c.
| void ref_app_parking_process | ( | ref_app_parking_handle_t * | handle, |
| bool * | car_detected | ||
| ) |
Do parking processing.
| [in] | handle | The handle to do parking processing for |
| [out] | car_detected | true if car detected, false otherwise |
Definition at line 711 of file ref_app_parking.c.
| bool ref_app_parking_sensor_calibration | ( | ref_app_parking_handle_t * | handle | ) |
Sensor calibration.
| [in] | handle | The handle to calibrate sensor for |
Definition at line 355 of file ref_app_parking.c.
| bool ref_app_parking_sensor_prepare | ( | ref_app_parking_handle_t * | handle | ) |
Prepare sensor for measurement.
| [in] | handle | The handle to prepare sensor for |
Definition at line 537 of file ref_app_parking.c.
| void ref_app_parking_set_config | ( | ref_app_parking_parking_preset_t | preset, |
| ref_app_parking_config_t * | parking_config | ||
| ) |
Set parking config according to specified preset.
| [in] | preset | The preset used to set parking config |
| [out] | parking_config | The parking config to be set |
Definition at line 201 of file ref_app_parking.c.