|
|
Module to interpret and process data read from sensor. More...
Data Structures | |
| struct | acc_processing_metadata_t |
| Metadata that will be populated by the processing module during creation. More... | |
| struct | acc_processing_result_t |
| Result provided by the processing module. More... | |
Typedefs | |
| typedef struct acc_processing_handle | acc_processing_t |
Functions | |
| acc_processing_t * | acc_processing_create (const acc_config_t *config, acc_processing_metadata_t *processing_metadata) |
| Create a processing instance with the provided configuration. More... | |
| void | acc_processing_execute (acc_processing_t *handle, void *buffer, acc_processing_result_t *result) |
| Process the data according to the configuration used in create. More... | |
| void | acc_processing_destroy (acc_processing_t *handle) |
| Destroy a processing instance identified with the provided processing handle. More... | |
| float | acc_processing_points_to_meter (int32_t points) |
| Convert a distance or step length in points to meter. More... | |
| int32_t | acc_processing_meter_to_points (float length) |
| Convert a distance or step length in meter to points. More... | |
Module to interpret and process data read from sensor.
| typedef struct acc_processing_handle acc_processing_t |
Definition at line 30 of file acc_processing.h.
| acc_processing_t* acc_processing_create | ( | const acc_config_t * | config, |
| acc_processing_metadata_t * | processing_metadata | ||
| ) |
Create a processing instance with the provided configuration.
| [in] | config | The configuration to create a processing instance with |
| [out] | processing_metadata | The metadata of the created processing instance |
| void acc_processing_destroy | ( | acc_processing_t * | handle | ) |
Destroy a processing instance identified with the provided processing handle.
| [in] | handle | A reference to the processing handle to destroy, can be NULL |
| void acc_processing_execute | ( | acc_processing_t * | handle, |
| void * | buffer, | ||
| acc_processing_result_t * | result | ||
| ) |
Process the data according to the configuration used in create.
| [in] | handle | A reference to the processing handle |
| [in] | buffer | A reference to the buffer (populated by acc_sensor_read) containing the data to be processed. |
| [out] | result | Processing result |
| int32_t acc_processing_meter_to_points | ( | float | length | ) |
Convert a distance or step length in meter to points.
Does not include any zero-point offset since it is highly integration dependant. In other words, calling this function with a 0.0 always returns 0.
| [in] | length | Length in meter to convert to points |
| float acc_processing_points_to_meter | ( | int32_t | points | ) |
Convert a distance or step length in points to meter.
Does not include any zero-point offset since it is highly integration dependant. In other words, calling this function with a 0 always returns 0.0.
| [in] | points | Number of points to convert to meter |