MotionID Software Library: algorithms/Middlewares/ST/STM32_MotionID_Library/Inc/motion_id.h Source File

Motion ID

MotionID Software Library
MotionID Software Library Documentation
motion_id.h
Go to the documentation of this file.
1 
38 /* Define to prevent recursive inclusion -------------------------------------*/
39 #ifndef _MOTION_ID_H_
40 #define _MOTION_ID_H_
41 
42 #ifdef __cplusplus
43 extern "C"
44 {
45 #endif
46 
47 /* Includes ------------------------------------------------------------------*/
48 #include <stdint.h>
49 
61 /* Exported types ------------------------------------------------------------*/
62 typedef struct
63 {
64  float AccX; /* Acceleration in X axis in [g] */
65  float AccY; /* Acceleration in Y axis in [g] */
66  float AccZ; /* Acceleration in Z axis in [g] */
67 } MID_input_t;
68 
69 typedef enum
70 {
71  MID_ON_DESK = 0x00,
74  MID_BIKING = 0x03,
78  MID_FWALKING = 0x07,
82 } MID_output_t;
83 
88 /* Exported constants --------------------------------------------------------*/
89 /* Exported variables --------------------------------------------------------*/
90 /* Exported macro ------------------------------------------------------------*/
91 
96 /* Exported functions ------------------------------------------------------- */
97 
103 void MotionID_Initialize(void);
104 
111 void MotionID_Update(MID_input_t *data_in, MID_output_t *data_out);
112 
118 void MotionID_ResetLib(void);
119 
125 uint8_t MotionID_GetLibVersion(char *version);
126 
139 #ifdef __cplusplus
140 }
141 #endif
142 
143 #endif /* _MOTION_ID_H_ */
144 
145 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
float AccZ
Definition: motion_id.h:66
void MotionID_Initialize(void)
Initialize the MotionID engine.
uint8_t MotionID_GetLibVersion(char *version)
Get the library version.
MID_output_t
Definition: motion_id.h:69
float AccY
Definition: motion_id.h:65
void MotionID_Update(MID_input_t *data_in, MID_output_t *data_out)
Run Intensity Detection algorithm.
void MotionID_ResetLib(void)
Reset Libray.
float AccX
Definition: motion_id.h:64
Generated on Fri Apr 21 2017 16:09:59 for MotionID Software Library by   doxygen 1.8.9.1