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

📄 pcrxd.c

📁 指纹识别源代码,用于智能门紧,还有配合MF800卡使用
💻 C
字号:
#include "reg58.h"
#include "intrins.h"

#define _PCRXD_C_
#include "pcrxd.h"
#include "rxd.h"
#include "sram.h"
#include "pccomm.h"
#include "system.h"
//////////////////////////////////////////////////////////////
void ackpccmd(unsigned char cmd,unsigned char state,unsigned short paramlen)
{
	paramlen+=11;
	uart0buff[0]=PCPACKAGEHEAD;
	uart0buff[1]=paramlen&0xff;			//the low byte of length
	uart0buff[2]=paramlen>>8;			//the high byte of length

	uart0buff[3]=ram_readp0(COMMID);	//readcommid();
	uart0buff[4]=cmd;
	uart0buff[5]=state;
	
	uart0buff[6]=0;
	uart0buff[7]=0;
	uart0buff[8]=0;
	uart0buff[9]=0;
	uart0buff[10]=0;
	uart0buff[11]=0;

	checkcrc(paramlen);
	sendstring1(paramlen+3);
	
}
//////////////////////////////////////////////////////////////

⌨️ 快捷键说明

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