acc_sensor.h File Reference
#include <stdbool.h>
#include <stdint.h>
#include "acc_config.h"
#include "acc_definitions_a121.h"
#include "acc_definitions_common.h"

Go to the source code of this file.

Typedefs

typedef struct acc_sensor acc_sensor_t
 

Functions

acc_sensor_tacc_sensor_create (acc_sensor_id_t sensor_id)
 Create a sensor instance. More...
 
void acc_sensor_destroy (acc_sensor_t *sensor)
 Destroy a sensor instance freeing any resources allocated. More...
 
bool acc_sensor_calibrate (acc_sensor_t *sensor, bool *cal_complete, acc_cal_result_t *cal_result, void *buffer, uint32_t buffer_size)
 Calibrate a sensor. More...
 
bool acc_sensor_get_cal_info (const acc_cal_result_t *cal_result, acc_cal_info_t *cal_info)
 Gets calibration information from a calibration result. More...
 
bool acc_sensor_prepare (acc_sensor_t *sensor, const acc_config_t *config, const acc_cal_result_t *cal_result, void *buffer, uint32_t buffer_size)
 Prepare a sensor to do a measurement. More...
 
bool acc_sensor_measure (acc_sensor_t *sensor)
 Start a radar measurement with previously prepared configuration. More...
 
bool acc_sensor_read (const acc_sensor_t *sensor, void *buffer, uint32_t buffer_size)
 Read out radar data. More...
 
bool acc_sensor_connected (acc_sensor_id_t sensor_id)
 Check if a sensor is connected and responsive. More...
 
void acc_sensor_status (const acc_sensor_t *sensor)
 Check the status of the sensor. More...
 
bool acc_sensor_hibernate_on (acc_sensor_t *sensor)
 Prepare sensor for entering hibernation. More...
 
bool acc_sensor_hibernate_off (const acc_sensor_t *sensor)
 Restore sensor after exiting hibernation. More...
 
bool acc_sensor_validate_calibration (const acc_cal_result_t *cal_result)
 Validate calibration result. More...