Old fashion design for PC-104
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

41 lines
630 B

#ifndef __AUTO__RESET__H__INCLUDED__
#define __AUTO__RESET__H__INCLUDED__
typedef struct AUTO_RESET
{
BOOL bEnabled;
DWORD dwInterleave;
DWORD dwTimeout;
}AUTO_RESET;
class CAutoReset
{
public:
CAutoReset();
~CAutoReset();
public:
BOOL Create( AUTO_RESET *pAutoReset );
void Destroy();
public:
void OnTarget( INT nAngle, INT nRange );
void OnError();
public:
BOOL IsNeedToReset();
private:
void OnAlarm();
private:
BOOL m_bFirst;
DWORD m_dwFirstTime;
DWORD m_dwLastTime;
BOOL m_bPerformReset;
BOOL m_bEnabled;
DWORD m_dwInterleave;
DWORD m_dwTimeout;
};
#endif