MotionAR Software Library: algorithms/Middlewares/ST/STM32_MotionAR_Library/Inc/motion_ar.h Source File

Motion AR

MotionAR Software Library
MotionAR Software Library Documentation
motion_ar.h
Go to the documentation of this file.
1 
38 /* Define to prevent recursive inclusion -------------------------------------*/
39 #ifndef _MOTION_AR_H_
40 #define _MOTION_AR_H_
41 
42 #ifdef __cplusplus
43 extern "C" {
44 #endif
45 
46 /* Includes ------------------------------------------------------------------*/
47 #include <stdint.h>
48 
61 /* Exported types ------------------------------------------------------------*/
62 
63  typedef struct
64 {
65  float AccX; /* Acceleration in X axis in [g] */
66  float AccY; /* Acceleration in Y axis in [g] */
67  float AccZ; /* Acceleration in Z axis in [g] */
68 } MAR_input_t;
69 
70 typedef enum
71 {
74  MAR_WALKING = 0x02,
76  MAR_JOGGING = 0x04,
77  MAR_BIKING = 0x05,
78  MAR_DRIVING = 0x06
79 } MAR_output_t;
80 
85 /* Exported constants --------------------------------------------------------*/
86 /* Exported variables --------------------------------------------------------*/
87 /* Exported macro ------------------------------------------------------------*/
88 
93 /* Exported functions ------------------------------------------------------- */
94 
100 void MotionAR_Initialize(void);
101 
107 void MotionAR_SetOrientation_Acc(const char *acc_orientation);
108 
115 void MotionAR_Update(MAR_input_t *data_in, MAR_output_t *data_out);
116 
122 void MotionAR_Reset(void);
123 
129 uint8_t MotionAR_GetLibVersion(char *version);
130 
131 
144 #ifdef __cplusplus
145 }
146 #endif
147 
148 #endif /* _MOTION_AR_H_ */
149 
150 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
uint8_t MotionAR_GetLibVersion(char *version)
Get the library version.
void MotionAR_SetOrientation_Acc(const char *acc_orientation)
Set the MotionAR accelerometer data orientation.
void MotionAR_Update(MAR_input_t *data_in, MAR_output_t *data_out)
Run activity recognition algorithm.
MAR_output_t
Definition: motion_ar.h:70
void MotionAR_Reset(void)
Reset activity recognition algorithm.
void MotionAR_Initialize(void)
Initialize the MotionAR engine.
float AccX
Definition: motion_ar.h:65
float AccY
Definition: motion_ar.h:66
float AccZ
Definition: motion_ar.h:67
Generated on Fri Mar 31 2017 10:57:12 for MotionAR Software Library by   doxygen 1.8.9.1