MotionEC Software Library: algorithms/Middlewares/ST/STM32_MotionEC_Library/Inc/motion_ec.h File Reference

Motion EC

MotionEC Software Library
MotionEC Software Library Documentation
motion_ec.h File Reference

Header for motion_ec module. More...

#include <stdint.h>

Go to the source code of this file.

Data Structures

struct  MEC_input_t
 
struct  MEC_output_t
 

Enumerations

enum  MEC_state_t { MEC_DISABLE = 0, MEC_ENABLE = 1 }
 

Functions

void MotionEC_Initialize (float freq)
 Initialize and reset the MotionEC engine. More...
 
void MotionEC_Run (MEC_input_t *data_in, MEC_output_t *data_out)
 Run E-Compass algorithm (accelerometer and magnetometer data fusion) More...
 
void MotionEC_GetOrientationEnable (MEC_state_t *state)
 Get enable/disable state of the Euler angles calculation. More...
 
void MotionEC_SetOrientationEnable (MEC_state_t state)
 Set enable/disable state of the Euler angles calculation. More...
 
void MotionEC_GetVirtualGyroEnable (MEC_state_t *state)
 Get enable/disable state of the virtual gyroscope calculation. More...
 
void MotionEC_SetVirtualGyroEnable (MEC_state_t state)
 Set enable/disable state of the virtual gyroscope calculation. More...
 
void MotionEC_GetGravityEnable (MEC_state_t *state)
 Get enable/disable state of the gravity vector calculation. More...
 
void MotionEC_SetGravityEnable (MEC_state_t state)
 Set enable/disable state of the gravity vector calculation. More...
 
void MotionEC_GetLinearAccEnable (MEC_state_t *state)
 Get enable/disable state of the linear acceleration calculation. More...
 
void MotionEC_SetLinearAccEnable (MEC_state_t state)
 Set enable/disable state of the linear acceleration calculation. More...
 
void MotionEC_SetFrequency (float freq)
 Set sampling frequency (modify filtering parameters) More...
 
uint8_t MotionEC_GetLibVersion (char *version)
 Get the library version. More...
 

Detailed Description

Header for motion_ec module.

Author
MEMS Application Team
Version
V1.0.0
Date
01-May-2017
Attention

© COPYRIGHT(c) 2017 STMicroelectronics

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
  3. Neither the name of STMicroelectronics nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Definition in file motion_ec.h.

Generated on Mon May 8 2017 15:45:15 for MotionEC Software Library by   doxygen 1.8.9.1