📄 pcrxd.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 + -