MotionGR Software Library: algorithms/Middlewares/ST/STM32_MotionGR_Library/Inc/motion_gr.h Source File

Motion GR

MotionGR Software Library
MotionGR Software Library Documentation
motion_gr.h
Go to the documentation of this file.
1 
38 /* Define to prevent recursive inclusion -------------------------------------*/
39 #ifndef _MOTION_GR_H_
40 #define _MOTION_GR_H_
41 
42 #ifdef __cplusplus
43 extern "C" {
44 #endif
45 
46 /* Includes ------------------------------------------------------------------*/
47 #include <stdint.h>
48 
61 /* Exported constants --------------------------------------------------------*/
62 
63 /* Exported types ------------------------------------------------------------*/
64  typedef struct
65 {
66  float AccX; /* Acceleration in X axis in [g] */
67  float AccY; /* Acceleration in Y axis in [g] */
68  float AccZ; /* Acceleration in Z axis in [g] */
69 } MGR_input_t;
70 
71 typedef enum
72 {
73  MGR_NOGESTURE = 0x00,
74  MGR_PICKUP = 0x01,
75  MGR_GLANCE = 0x02,
76  MGR_WAKEUP = 0x03
77 } MGR_output_t;
78 
83 /* Exported variables --------------------------------------------------------*/
84 /* Exported macro ------------------------------------------------------------*/
85 
90 /* Exported functions ------------------------------------------------------- */
91 
97 void MotionGR_Initialize(void);
98 
104 void MotionGR_SetOrientation_Acc(const char *acc_orientation);
105 
112 void MotionGR_Update(MGR_input_t *data_in, MGR_output_t *data_out);
113 
119 uint8_t MotionGR_GetLibVersion(char *version);
120 
121 
134 #ifdef __cplusplus
135 }
136 #endif
137 
138 #endif /* _MOTION_GR_H_ */
139 
140 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
void MotionGR_Initialize(void)
Initialize the MotionGR engine.
uint8_t MotionGR_GetLibVersion(char *version)
Get the library version.
MGR_output_t
Definition: motion_gr.h:71
void MotionGR_SetOrientation_Acc(const char *acc_orientation)
Set the MotionGR accelerometer data orientation.
float AccY
Definition: motion_gr.h:67
float AccZ
Definition: motion_gr.h:68
float AccX
Definition: motion_gr.h:66
void MotionGR_Update(MGR_input_t *data_in, MGR_output_t *data_out)
Run gesture recognition algorithm.
Generated on Fri Mar 31 2017 11:09:18 for MotionGR Software Library by   doxygen 1.8.9.1