You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
714 B
C++
22 lines
714 B
C++
#pragma once
|
|
#include "workcmd.h"
|
|
|
|
//检查pci 端口状态
|
|
class CWorkCmdPciPortCheck :public CWorkCmd
|
|
{
|
|
public:
|
|
CWorkCmdPciPortCheck(CString &CtrlContent,bool NeedState);
|
|
~CWorkCmdPciPortCheck(void);
|
|
virtual bool Excute();
|
|
virtual void WirteLog();
|
|
void SetMaxCheckDelay(int t){m_MaxCheckDelay = t;};
|
|
private:
|
|
bool ReadPortState();
|
|
private:
|
|
CString m_CtrlContent;//控制的内容
|
|
bool m_NeedState;//要求这个端口是开还是关
|
|
int m_MaxCheckDelay;//最大检测延时,表示在这个时间内反复检测,直到满足要求为止
|
|
//0表示直接检测
|
|
};
|
|
|