47 #include "KeynetikPedometer.h" 54 #define PEDO_ONEG_8G 4096 55 #define PEDO_ONEG_4G 8192 56 #define PEDO_ONEG_2G 16384 57 #define PEDO_FREQHZ_DEFAULT 50 58 #define PEDO_STEP_THRESHOLD_DEFAULT 130 59 #define PEDO_SPEED_PERIOD_DEFAULT 5 60 #define PEDO_FILTER_TIME_DEFAULT 3 61 #define PEDO_FILTER_STEPS_DEFAULT 4 175 #endif // PEDOMETER_H_ int32_t pedometer_run(pedometer_t *pPedometer, ped_accel_t *pData)
The interface function excutes the pedometer algorithm.
pedometer_config_t config
This defines the configuration structure of the pedometer.
This defines the acceleration input data for the pedometer.
This defines the pedometer instance.
KeynetikActivityLevel activitylevel_t
debounce_count_t sleepcount
debounce_count_t sleepcount_threshold
void pedometer_init(pedometer_t *pPedometer)
The interface function initialize the pedometer.
debounce_count_t activitycount
debounce_count_t activitycount_threshold
void pedometer_configure(pedometer_t *pPedometer, const pedometer_config_t *pConfig)
The interface function to configure the pedometer.
uint16_t stepchg_stepcount
uint16_t debounce_count_t