05 2014 档案

摘要:/*****************************************************************************Copyright: 2014,TkaiFile name: main.cDescription:28335外部中断测试Author: Vers... 阅读全文
posted @ 2014-05-27 20:31 luxiaolai 阅读(2519) 评论(0) 推荐(0)
摘要:lib/libQtGui.so: undefined reference to `ts_read_raw'/lib/libQtGui.so: undefined reference to `ts_open'/lib/libQtGui.so: undefined reference to `ts_fd... 阅读全文
posted @ 2014-05-23 15:53 luxiaolai 阅读(6066) 评论(0) 推荐(1)
摘要:KERNELDIR =/home/wenhao/platform/linux-2.6.34PWD := $(shell pwd)CROSS_COMPILE = /usr/local/arm/4.3.2/bin/arm-linux-CC = $(CROSS_COMPILE)gccobj-m := ke... 阅读全文
posted @ 2014-05-20 21:36 luxiaolai 阅读(398) 评论(0) 推荐(0)
摘要:/*************************************************Function: hexStringtoByteArray()Description: 十六进制字串转化为十六进制编码Calls: formatString()Called By:Input: he... 阅读全文
posted @ 2014-05-14 16:44 luxiaolai 阅读(12755) 评论(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 阅读(494) 评论(0) 推荐(0)
摘要:/*************************************************Function: formatString()Description: 将十六进制字串每字节中间加空格分隔Calls:Called By:hexStringtoByteArray()Input: o... 阅读全文
posted @ 2014-05-14 16:00 luxiaolai 阅读(976) 评论(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 阅读(659) 评论(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 阅读(7538) 评论(16) 推荐(1)
摘要:QString str = QString("%1").arg(outChar&0xFF,2,16,QLatin1Char('0'));int a=0001;QString str = QString("%1").arg(a,4,10,QLatin1Char('0')); 阅读全文
posted @ 2014-05-12 18:47 luxiaolai 阅读(7307) 评论(0) 推荐(0)