摘要: /*************************************************Function: hexStringtoByteArray()Description: 十六进制字串转化为十六进制编码Calls: formatString()Called By:Input: he... 阅读全文
posted @ 2014-05-14 16:44 luxiaolai 阅读(12712) 评论(1) 推荐(0) 编辑
摘要: #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(){ ... 阅读全文
posted @ 2014-05-14 16:31 luxiaolai 阅读(477) 评论(0) 推荐(0) 编辑
摘要: /*************************************************Function: formatString()Description: 将十六进制字串每字节中间加空格分隔Calls:Called By:hexStringtoByteArray()Input: o... 阅读全文
posted @ 2014-05-14 16:00 luxiaolai 阅读(927) 评论(0) 推荐(0) 编辑
摘要: typedef unsigned char UCHAR;typedef unsigned char BOOL;/* 计算cnt字节数据的crc,最后一个字节的低7比特必须是0,实际上求的是(cnt×8-1)比特数据的crc */UCHAR CRC7_Cal(UCHAR *pSrc, UINT32 c... 阅读全文
posted @ 2014-05-14 15:56 luxiaolai 阅读(643) 评论(0) 推荐(0) 编辑
摘要: 使用头文件#include #include "QTimer"#include "QTime"#include "QMessageBox"#include #include #include #include #include "stdio.h"#include "stdlib.h"#include... 阅读全文
posted @ 2014-05-14 15:55 luxiaolai 阅读(7313) 评论(16) 推荐(1) 编辑