MotionAT Software Library: Middlewares/ST/STM32_MotionAT_Library/Inc/motion_at.h Source File

MotionAT Software Library

MotionAT Software Library
MotionAT Software Library Documentation
motion_at.h
Go to the documentation of this file.
1 
38 /* Define to prevent recursive inclusion -------------------------------------*/
39 #ifndef _MOTION_AT_H_
40 #define _MOTION_AT_H_
41 
42 #ifdef __cplusplus
43 extern "C" {
44 #endif
45 
46 /* Includes ------------------------------------------------------------------*/
47 #include <stdint.h>
48 
61 /* Exported types ------------------------------------------------------------*/
62 typedef struct
63 {
64  float acc_x;
65  float acc_y;
66  float acc_z;
67 } MAT_input_t;
68 
69 typedef struct
70 {
71  uint8_t active;
72 } MAT_output_t;
73 
78 /* Exported constants --------------------------------------------------------*/
79 /* Exported variables --------------------------------------------------------*/
80 /* Exported macro ------------------------------------------------------------*/
81 
86 /* Exported functions ------------------------------------------------------- */
87 
93 void MotionAT_Initialize(void);
94 
100 void MotionAT_Deinitialize(void);
101 
108 void MotionAT_Update(MAT_input_t *data_in, MAT_output_t *data_out);
109 
115 uint8_t MotionAT_GetLibVersion(char *version);
116 
129 #ifdef __cplusplus
130 }
131 #endif
132 
133 #endif /* _MOTION_AT_H_ */
134 
135 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
float acc_z
Acceleration in Z axis in [g].
Definition: motion_at.h:66
uint8_t MotionAT_GetLibVersion(char *version)
Get the library version.
float acc_y
Acceleration in Y axis in [g].
Definition: motion_at.h:65
void MotionAT_Deinitialize(void)
Deinitialize MotionAT engine (free dynamically allocated memory)
void MotionAT_Update(MAT_input_t *data_in, MAT_output_t *data_out)
Run Active Time algorithm.
uint8_t active
1 if currently active, 0 otherwise
Definition: motion_at.h:71
void MotionAT_Initialize(void)
Initialize MotionAT engine (dynamically allocate memory)
float acc_x
Acceleration in X axis in [g].
Definition: motion_at.h:64
Generated on Fri Nov 24 2017 15:23:39 for MotionAT Software Library by   doxygen 1.8.9.1