osxMotionCP Software Library: Middlewares/ST/STM32_OSX_MotionCP_Library/Inc/osx_motion_cp.h Source File

osxMotionCP

osxMotionCP Software Library
osxMotionCP Software Library Documentation
osx_motion_cp.h
Go to the documentation of this file.
1 
44 /* Define to prevent recursive inclusion -------------------------------------*/
45 #ifndef _OSX_MOTION_CP_H_
46 #define _OSX_MOTION_CP_H_
47 
48 #ifdef __cplusplus
49 extern "C" {
50 #endif
51 
52 /* Includes ------------------------------------------------------------------*/
53 #include <stdint.h>
54 
63 /* Exported types ------------------------------------------------------------*/
67 typedef struct
68 {
69  float AccX; /* acc x axes [g] */
70  float AccY; /* acc y axes [g] */
71  float AccZ; /* acc z axes [g] */
73 
74 
75 typedef enum
76 {
77  OSX_MCP_UNKNOWN = 0x00,
85 
86 typedef enum
87 {
88  OSX_FAILED = 0x00, /* License authentication failed */
89  OSX_SUCCESS = 0x01 /* License authentication ok */
91 
96 /* Exported constants --------------------------------------------------------*/
97 /* Exported variables --------------------------------------------------------*/
98 /* Exported macro ------------------------------------------------------------*/
99 
104 /* Exported functions ------------------------------------------------------- */
105 
111 uint8_t osx_MotionCP_Initialize(void);
112 
113 
119 void osx_MotionCP_SetOrientation_Acc(const char *acc_orientation);
120 
121 
128 
134 uint8_t osx_MotionCP_GetLibVersion(char *version);
135 
136 
149 #ifdef __cplusplus
150 }
151 #endif
152 
153 #endif /* _OSX_MOTION_CP_H_ */
154 
155 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
osx_MCP_output_t osx_MotionCP_Update(osx_MCP_input_t *data_in)
Run Carry Position Recognition Algorithm.
osx_MCP_output_t
Definition: osx_motion_cp.h:75
osx_lm_result_t
Definition: osx_motion_cp.h:86
uint8_t osx_MotionCP_Initialize(void)
Initialize the MotionCP engine.
uint8_t osx_MotionCP_GetLibVersion(char *version)
Get the library version.
void osx_MotionCP_SetOrientation_Acc(const char *acc_orientation)
Set the MotionCP Accelerometer data orientation.
Generated on Thu Oct 15 2015 15:17:20 for osxMotionCP Software Library by   doxygen 1.8.8