TWatchInfo¶
watch状态参数结构体
结构体说明:
typedef struct WatchInfo
{
short enable;
short run; //
unsigned long time; //
unsigned long head; //
unsigned long threshold; //
short interval; //
short mode; //
unsigned short countBeforeEvent; //
unsigned short countAfterEvent; //
unsigned short varCount; //
unsigned short eventCount; //
} TWatchInfo;
enable:采集使能状态,0:未使能,1:使能。
run:采集状态,0:停止采集,1:正在采集。
time: 采集次数。
head:内部变量。
threshold:最多容纳采集次数。
interval:采集间隔。0:每个中断周期都会更新数据,1:每2个中断周期更新一次数据...。
mode:采集模式,0:静态,1:循环,2:动态。
countBeforeEvent:事件触发之前的采集数量。
countAfterEvent:事件触发以后的采集数量。
varCount:采集变量数量。
eventCount:采集事件数量。
相关指令: