![]() |
MotionSM Software Library
MotionSM Software Library Documentation
|
MOTION_SM_Exported_Functions
Functions | |
void | MotionSM_Initialize (void) |
Initialize the MotionSM engine. More... | |
void | MotionSM_SetOrientation_Acc (const char *acc_orientation) |
Set the MotionSM accelerometer data orientation. More... | |
void | MotionSM_Update (MSM_input_t *data_in, MSM_output_t *data_out) |
Run sleep monitoring algorithm. More... | |
void | MotionSM_Reset (void) |
Reset sleep monitorin algorithm. More... | |
uint8_t | MotionSM_GetLibVersion (char *version) |
Get the library version. More... | |
Detailed Description
Function Documentation
uint8_t MotionSM_GetLibVersion | ( | char * | version | ) |
Get the library version.
- Parameters
-
version Pointer to an array of 35 char
- Return values
-
Number of characters in the version string
void MotionSM_Initialize | ( | void | ) |
Initialize the MotionSM engine.
- Parameters
-
none
- Return values
-
none
void MotionSM_Reset | ( | void | ) |
Reset sleep monitorin algorithm.
- Parameters
-
none
- Return values
-
none
void MotionSM_SetOrientation_Acc | ( | const char * | acc_orientation | ) |
Set the MotionSM accelerometer data orientation.
- Parameters
-
*acc_orientation reference system of the accelerometer raw data (for instance: south west up became "swu", north east up became "ned")
- Return values
-
none
void MotionSM_Update | ( | MSM_input_t * | data_in, |
MSM_output_t * | data_out | ||
) |
Run sleep monitoring algorithm.
- Parameters
-
data_in Pointer to accaleration in [g] data_out pointer to output data (sleep indication, total sleep time)
- Return values
-
none
Generated on Fri Nov 24 2017 16:59:13 for MotionSM Software Library by
