MotionFD Software Library: Middlewares/ST/STM32_MotionFD_Library/Inc/motion_fd.h Source File

Motion FD

MotionFD Software Library
MotionFD Software Library Documentation
motion_fd.h
Go to the documentation of this file.
1 
38 /* Define to prevent recursive inclusion -------------------------------------*/
39 #ifndef _MOTION_FD_H_
40 #define _MOTION_FD_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 [mg] */
67  float AccY; /* Acceleration in Y axis in [mg] */
68  float AccZ; /* Acceleration in Z axis in [mg] */
69  float Press; /* Atmospheric pressure in [hPa] */
70 } MFD_input_t;
71 
72 typedef enum
73 {
74  MFD_NOFALL = 0x00,
75  MFD_FALL = 0x01
76 } MFD_output_t;
77 
82 /* Exported variables --------------------------------------------------------*/
83 /* Exported macro ------------------------------------------------------------*/
84 
89 /* Exported functions ------------------------------------------------------- */
90 
96 void MotionFD_Initialize(void);
97 
104 void MotionFD_Update(MFD_input_t *data_in, MFD_output_t *data_out);
105 
111 uint8_t MotionFD_GetLibVersion(char *version);
112 
113 
126 #ifdef __cplusplus
127 }
128 #endif
129 
130 #endif /* _MOTION_FD_H_ */
131 
132 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
float Press
Definition: motion_fd.h:69
void MotionFD_Initialize(void)
Initialize the MotionFD engine.
MFD_output_t
Definition: motion_fd.h:72
uint8_t MotionFD_GetLibVersion(char *version)
Get the library version.
float AccY
Definition: motion_fd.h:67
void MotionFD_Update(MFD_input_t *data_in, MFD_output_t *data_out)
Run fall detection algorithm.
float AccX
Definition: motion_fd.h:66
float AccZ
Definition: motion_fd.h:68
Generated on Fri Aug 25 2017 10:59:41 for MotionFD Software Library by   doxygen 1.8.9.1