MT2523 API Reference  LinkIt SDK v4
Sensor fusion algorithm interface

The sensor fusion algorithm interface enables the plug-in sensors, such as pedometer and activity recognition and the application of the fusion algorithms. More...

Overview

The sensor fusion algorithm interface enables the plug-in sensors, such as pedometer and activity recognition and the application of the fusion algorithms.

The fusion algorithm is available in a library format. The APIs are designed to feed the physical sensor data into fusion algorithms and obtain the results based on the various application needs.

How to use sensor fusion algorithm interface

Below is an example of the pedometer fusion algorithm (requiring accelerometer of 50Hz sampling rate) registration. The steps are shown below:

Functions

int32_t sensor_fusion_algorithm_register_type (const sensor_descriptor_t *desp)
 Registers fusion algorithm of the specified sensor_descriptor. More...
 
int32_t sensor_fusion_algorithm_register_data_buffer (uint32_t sensor_type, uint32_t exist_data_count)
 Registers the required data buffer of fusion algorithm of the specified sensor type. More...
 
int32_t sensor_fusion_algorithm_notify (uint32_t sensor_type)
 For fusion algorithm to notify sensor manager of sensor event. More...
 

Modules

 Enum
 
 Struct
 
 Typedef
 

Function Documentation

int32_t sensor_fusion_algorithm_notify ( uint32_t  sensor_type)

For fusion algorithm to notify sensor manager of sensor event.

Parameters
[in]sensor_typeis the specified sensor type.
Returns
>=0, if the operation completed successfully.
int32_t sensor_fusion_algorithm_register_data_buffer ( uint32_t  sensor_type,
uint32_t  exist_data_count 
)

Registers the required data buffer of fusion algorithm of the specified sensor type.

Parameters
[in]sensor_typeis the specified sensor type.
[in]exist_data_countis the required data buffer count.
Returns
>=0, if the operation completed successfully.
int32_t sensor_fusion_algorithm_register_type ( const sensor_descriptor_t desp)

Registers fusion algorithm of the specified sensor_descriptor.

Parameters
[in]despis the specified sensor_descriptor.
Returns
>=0, if the operation completed successfully.