//////////////////////////////////////////////////////////////////////////// ///@copyright Copyright (c) 2018, 传控科技 All rights reserved. ///------------------------------------------------------------------------- /// @file bsp_drv.h /// @brief bsp @ driver config ///------------------------------------------------------------------------- /// @version 1.0 /// @author CC /// @date 20180331 /// @note cc_AS_stc02 ////////////////////////////////////////////////////////////////////////////// #ifndef _APP_TASK_WEIGHT_KEEP_H #define _APP_TASK_WEIGHT_KEEP_H #include "../ctask/TTSS_task.h" #include "../clib/c_lib.h" #include "../clib/c_type51.h" typedef struct _s_task_weight_keep { TS_task task; //100ms一次,离开保持状态判定的次数 U8 levelJudgeTimes; //离开保持重量阈值 U16 levelWeightThresholdKgx10; //阈值 U8 levelTimesThreshold; //单位时间呢,超过阈值的次数 U8 levelTimes; //100ms一次,进入保持状态判定的次数 U8 enterJudgeTimes; //单位时间,超过阈值的次数 U8 enterTimes; //进入保持重量阈值 U16 enterWeightThresholdKgx10; //最大值 U16 enterMaxWeight; //最小值 U16 enterMinWeight; //求和 U32 enterSumWeight; }S_TASK_WEIGHT_KEEP; extern S_TASK_WEIGHT_KEEP _s_task_weight_keep; extern void L3_task_weight_keep_init(void); extern void L3_task_weight_keep_handler(S_TASK_WEIGHT_KEEP *s); #endif // #ifndef _APP_TASK_WEIGHT_KEEP_H