21 #include "KeynetikPedometer.h" 28 #define PEDO_ONEG_8G 4096 29 #define PEDO_ONEG_4G 8192 30 #define PEDO_ONEG_2G 16384 31 #define PEDO_FREQHZ_DEFAULT 50 32 #define PEDO_STEP_THRESHOLD_DEFAULT 130 33 #define PEDO_SPEED_PERIOD_DEFAULT 5 34 #define PEDO_FILTER_TIME_DEFAULT 3 35 #define PEDO_FILTER_STEPS_DEFAULT 4 149 #endif // PEDOMETER_H_
KeynetikActivityLevel activitylevel_t
This defines the configuration structure of the pedometer.
debounce_count_t sleepcount_threshold
typedef int32_t(DATA_FORMAT_Append_t))(void *pData
The interface function to append the data on the formated stream.
debounce_count_t activitycount_threshold
This defines the pedometer instance.
uint16_t stepchg_stepcount
This defines the acceleration input data for the pedometer.
debounce_count_t activitycount
pedometer_config_t config
uint16_t debounce_count_t
debounce_count_t sleepcount
int32_t pedometer_run(pedometer_t *pPedometer, ped_accel_t *pData)
The interface function excutes the pedometer algorithm.
void pedometer_configure(pedometer_t *pPedometer, const pedometer_config_t *pConfig)
The interface function to configure the pedometer.
void pedometer_init(pedometer_t *pPedometer)
The interface function initialize the pedometer.