摘要:
/*************************************************Function: hexStringtoByteArray()Description: 十六进制字串转化为十六进制编码Calls: formatString()Called By:Input: he... 阅读全文
摘要:
#include "stdio.h"void set(int *ch,int a,int *c,int *d){ c[0]=12; c[1]=133; c[2]=14; ch[0]=ch[0]+1; ch[2]=ch[2]+1; ch[1]=ch[1]+1;*d=10;}void main(){ ... 阅读全文
摘要:
/*************************************************Function: formatString()Description: 将十六进制字串每字节中间加空格分隔Calls:Called By:hexStringtoByteArray()Input: o... 阅读全文
摘要:
typedef unsigned char UCHAR;typedef unsigned char BOOL;/* 计算cnt字节数据的crc,最后一个字节的低7比特必须是0,实际上求的是(cnt×8-1)比特数据的crc */UCHAR CRC7_Cal(UCHAR *pSrc, UINT32 c... 阅读全文
摘要:
使用头文件#include #include "QTimer"#include "QTime"#include "QMessageBox"#include #include #include #include #include "stdio.h"#include "stdlib.h"#include... 阅读全文