📄 irpulse.h
字号:
// IrPulse.h: interface for the IrPulse class.
// Written by Nick Deacon May 2003. nhgdeacon@hotmail.com
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_IRPULSE_H__53993D2B_D7DE_49AB_8C8F_AA4B42511789__INCLUDED_)
#define AFX_IRPULSE_H__53993D2B_D7DE_49AB_8C8F_AA4B42511789__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
class CIrPulse : public CObject
{
public:
CIrPulse();
virtual ~CIrPulse();
BOOL Open(UINT uiPort);
void Close();
static UINT FindIrPort();
BOOL IsOpen() const;
BOOL SendCode(long);
BOOL SetCodeSize(DWORD);
protected:
HANDLE m_irPort;
CByteArray bPulseStream;
DWORD Write(const char *, DWORD) const;
int iDataLength; //number of bits to transmit
int iHPulse; //length of start bit (us)
int iHSpace; //length of start space (us)
int i1Pulse; //length of 1pulse (us)
int i1Space; //length of 1space (us)
int i0Pulse; //length of 0pulse (us)
int i0Space; //length of 0space (us)
DWORD dwLastValue;
BOOL MakeStream(long);
};
#endif // !defined(AFX_IRPULSE_H__53993D2B_D7DE_49AB_8C8F_AA4B42511789__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -