36#ifndef __INCLUDE_SENSING_STEP_COUNTER_H
37#define __INCLUDE_SENSING_STEP_COUNTER_H
52#include "sensing/sensor_api.h"
53#include "sensing/sensor_id.h"
54#include "sensing/sensor_ecode.h"
56#include "memutils/s_stl/queue.h"
66#define STEP_COUNTER_INITIAL_WALK_STEP_LENGTH 60
67#define STEP_COUNTER_INITIAL_RUN_STEP_LENGTH 80
81 void set_callback(
void);
86 : m_cmd_pool_id(cmd_pool_id)
94 #define MAX_EXEC_COUNT 8
100 s_std::Queue<struct exe_mh_s, MAX_EXEC_COUNT> m_exe_que;
109 pthread_t m_thread_id;
Memory Handler Class for "Memory Manager Lite". This is only wrapper class for convert project-specif...
Definition: MemManager.h:107
Definition: step_counter.h:74
int StepCounterWrite(FAR StepCounterClass *ins, FAR sensor_command_data_mh_t *command)
Send data to StepCounter worker task.
StepCounterClass * StepCounterCreate(MemMgrLite::PoolId cmd_pool_id)
Create StepCounterClass instance.
int StepCounterSet(FAR StepCounterClass *ins, FAR StepCounterSetting *set)
User step set function.
int StepCounterOpen(FAR StepCounterClass *ins)
Load StepCounter library and boot up as worker task. After booted up, send initialize and wait comple...
int StepCounterClose(FAR StepCounterClass *ins)
Destory StepCounter worker task.
Definition: MemMgrTypes.h:88
the structure of Accelstep user setting.
The command of send some sensor data with MemHandle to the sensor manager. This function only can cal...
Definition: sensor_api.h:134