⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 irdll.h

📁 嵌入式wince下进行红外码的采集和压缩,平台:wince42 xscale pxa225
💻 H
字号:

// The following ifdef block is the standard way of creating macros which make exporting 
// from a DLL simpler. All files within this DLL are compiled with the IRDLL_EXPORTS
// symbol defined on the command line. this symbol should not be defined on any project
// that uses this DLL. This way any other project whose source files include this file see 
// IRDLL_API functions as being imported from a DLL, wheras this DLL sees symbols
// defined with this macro as being exported.
#ifdef IRDLL_EXPORTS
#define IRDLL_API __declspec(dllexport)
#else
#define IRDLL_API __declspec(dllimport)
#endif


IRDLL_API void BeginIrStudy();

IRDLL_API int GetIrData(char *pbuf,int nlen);
IRDLL_API void StopIrStudy();

#define ERR_IRDLL_SUCESS	1	//学习成功

#define ERR_IRDLL_RUNNING	0	//学习进行中

#define ERR_IRDLL_CREATEEVENT	-1	//创建事件失败
#define ERR_IRDLL_REGISTER_INT	-2	//注册中断失败
#define ERR_IRDLL_TIME_FREQ		-3	//不支持的时间精度	
#define ERR_IRDLL_PULSEFIRST	-4	//一启动就收到信号,提示用户在看到提示后再按键	
#define ERR_IRDLL_OVERKIND		-5	//脉冲很复杂,很多脉冲类型	
#define ERR_IRDLL_OVERFRAME		-6	//找到过多的脉冲间隔	
#define ERR_IRDLL_BUFMIN		-7	//输入内存size小
#define ERR_IRDLL_CANT_REWORK	-10	//无法校正	
#define ERR_IRDLL_OVERTIME		-11	//超时,用户无按键	
#define ERR_IRDLL_NEVERSTUDY	-12	//未进行学习
#define ERR_IRDLL_OVERBUF	-13	//脉冲长度比输入buf长
#define ERR_IRDLL_MINPULSE	-14	//脉冲数少,可能是干扰

struct PulseIndex
{
	char nF:4;
	char nS:4;
};
struct Pulse
{
	unsigned short unHigh;
	unsigned short unLow;
};
struct IrProtocol{
	unsigned short unHead;
	unsigned short unCount;
	struct Pulse PulseList[8];
	struct PulseIndex List[32];
};

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -