Hot Search : Source embeded web remote control p2p game More...
Location : Home Search - 1289
Search - 1289 - List
sigmatel STMP36XX MP4方案下1289控制器和HX8347控制器,ssd1339控制器,ssd133x控制器,s6b0724控制器屏的驱动。
Date : 2008-10-13 Size : 65.33kb User : paul

1289 RGB IF CODE
Date : 2008-10-13 Size : 4.95kb User : jason

一个判断远程主机存活程序代码(ping) #include #include #include #include #include "winsock.h" #pragma comment(lib,"Ws2_32"); #define SEND_SIZE 32 #define PACKET_SIZE 4096 #define ICMP_ECHO 8 #define ICMP_ECHOREPLY 0 struct icmp { unsigned char icmp_type; unsigned char icmp_code; unsigned short icmp_cksum; unsigned short icmp_id; unsigned short icmp_seq; unsigned long icmp_data; }; struct ip { unsigned char ip_hl:4; unsigned char ip_v:4; unsigned char ip_tos; unsigned short ip_len; unsigned short ip_id; unsigned short ip_off; unsigned char ip_ttl; unsigned char ip_p; unsigned short ip_sum; unsigned long ip_src; unsigned long ip_dst; }; unsigned char sendpacket[PACKET_SIZE]; unsigned char recvpacket[PACKET_SIZE]; struct sockaddr_in dest_addr; struct sockaddr_in from_addr; int sockfd; int pid; unsigned short cal_chksum(unsigned short *addr,int len); int pack(int pack_no); int unpack(unsigned char *buf,int len); void send_packet(void); void recv_packet(void); void main(int argc,char *argv[]) { struct hostent *host; struct protoent *protocol; WSADATA wsaData; int timeout=1000; int SEND_COUNT=4; int i; char *par_host; par_host=argv[argc-1]; //IP赋值 switch(argc) { case 2: break; case 3: if(strcmp(argv[1],"-t")==0) { SEND_COUNT=10000; break; } //fall through default: printf("usage: %s [-t] Host name or IP address\n",argv[0]); exit(1); } if(WSAStartup(0x1010,&wsaData)!=0) { printf("wsastartup error\n"); exit(1); } if( (protocol=getprotobyname("icmp") )==NULL) { printf("getprotobyname error\n"); exit(1); } /* printf("%s\n",protocol->p_name); printf("%s\n",protocol->p_aliases); printf("%d\n",protocol->p_proto); system("pause"); */ if( (sockfd=socket(AF_INET,SOCK_RAW,protocol->p_proto) )<0) { printf("socket error\n"); exit(1); } if(setsockopt(sockfd,SOL_SOCKET,SO_RCVTIMEO,(char*)&timeout,sizeof(timeout))h_length); //resolve address to hostname if(host=gethostbyaddr(host->h_addr,4,PF_INET)) par_host=host->h_name; // //printf("%s\n",par_host); // } else if( dest_addr.sin_addr.s_addr=inet_addr(par_host)==INADDR_NONE) { printf("Unkown host %s\n",par_host); exit(1); } pid=getpid(); /* printf("%d\n",pid); system("pause"); */ printf("Pinging %s [%s]: with %d bytes of data:\n\n",par_host,inet_ntoa(dest_addr.sin_addr),SEND_SIZE); for(i=0;i1) { sum+=*w++; nleft-=2; } if( nleft==1) { *(unsigned char *)(&answer)=*(unsigned char *)w; sum+=answer; } sum=(sum>>16)+(sum&0xffff); sum+=(sum>>16); answer=~sum; return answer; } //打包 int pack(int pack_no) { int packsize; struct icmp *icmp; packsize=8+SEND_SIZE; icmp=(struct icmp*)sendpacket; icmp->icmp_type=ICMP_ECHO; icmp->icmp_code=0; icmp->icmp_cksum=0; icmp->icmp_seq=pack_no; icmp->icmp_id=pid; icmp->icmp_data=GetTickCount(); icmp->icmp_cksum=cal_chksum( (unsigned short *)icmp,packsize); /*校验算法*/ return packsize; } //解包 int unpack(unsigned char *buf,int len) { struct ip *ip; struct icmp *icmp; double rtt; int iphdrlen; ip=(struct ip *)buf; iphdrlen=ip->ip_hl*4; icmp=(struct icmp *)(buf+iphdrlen); if( (icmp->icmp_type==ICMP_ECHOREPLY) && (icmp->icmp_id==pid) ) { len=len-iphdrlen-8; rtt=GetTickCount()-icmp->icmp_data; printf("Reply from %s: bytes=%d time=%.0fms TTL=%d icmp_seq=%u\n", inet_ntoa(from_addr.sin_addr), len, rtt, ip->ip_ttl, icmp->icmp_seq); return 1; } return 0; } //发送 void send_packet() { int packetsize; static int pack_no=0; packetsize=pack(pack_no++); if( sendto(sockfd,(char *)sendpacket,packetsize,0,(struct sockaddr *)&dest_addr,sizeof(dest_addr) )=0) success=unpack(recvpacket,n); else if (WSAGetLastError() == WSAETIMEDOUT) { printf("Request timed out.\n"); return; } }while(!success); } UID5380 帖子239 精华0 积分1289 阅读权限40 来自软件学院 在线时间81 小时 注册时间2006-5-22 最后登录2007-2-24 查看详细资料 TOP
Date : 2009-05-29 Size : 5.74kb User : shuiyuan313

1289的驱动程序
Date : 2010-10-18 Size : 3.28kb User : pengjunjun0807

DL : 0
SSD1289 TFT驱动控制器datasheet,分辨率为240*320.-SSD1289 TFT driver controller datasheet, a resolution of 240* 320.
Date : 2025-07-04 Size : 669kb User : 杨荣华

来个T6963C 控制的128×128 DOTS 源代码-T6963C control to a 128 × 128 DOTS source code
Date : 2025-07-04 Size : 2kb User : 李伟

sigmatel STMP36XX MP4方案下1289控制器和HX8347控制器,ssd1339控制器,ssd133x控制器,s6b0724控制器屏的驱动。-sigmatel STMP36XX MP4 program HX8347 under the 1289 controller and controller, ssd1339 controller, ssd133x controller, s6b0724 screen controller driver.
Date : 2025-07-04 Size : 65kb User : paul

当前流行的屏驱动,包括CPU屏和RGB屏.压缩文件中,lcd_1289,lcd_9320,lcd8312为320*240 TFT LCD的驱动.lcdc.c为480*240的RGB屏驱动.文件中带注释-The current popular-screen-driven, including the CPU screen and RGB screen. Compressed file, lcd_1289, lcd_9320, lcd8312 for 320* 240 TFT LCD driver. Lcdc.c for 480* 240 screen of the RGB driver. File with the Notes
Date : 2025-07-04 Size : 15kb User :

ssd1289驅動程序,請大家參考,液晶顯示tft上面的應用-ssd1289 driver, please refer to, liquid crystal display tft above application
Date : 2025-07-04 Size : 2kb User : lp342100

TFT液晶控制器ssd1289z初始化文档-TFT LCD controller to initialize the document ssd1289z
Date : 2025-07-04 Size : 3kb User : ygliu

1289 RGB IF CODE
Date : 2025-07-04 Size : 5kb User : jason

SPI INTERFACE驱动 IC为1289的TFT显示屏-SPI INTERFACE driver IC of the TFT screen for 1289
Date : 2025-07-04 Size : 208kb User : jerry

屏的显示模式是262k色的,输入的数据是666格式的,由于1289本身的限制,只能显示18位色,而BMP图片是24为,所以最低两位数据被丢掉。-Screen display mode is a 262k color, type of data is 666 format, due to the limitations imposed by the 1289, can only display 18 colors, and BMP image is 24 for, so a minimum of two data is lost.
Date : 2025-07-04 Size : 3kb User : feng

A display driver for the controller named brief Structures and code specific to the Solomon Systech 1289 controller
Date : 2025-07-04 Size : 18kb User : boghdady

MCS51单片机控制TFT液晶显示屏控制器SSD1289的程序-MCS51 single-chip TFT LCD controller control procedures SSD1289
Date : 2025-07-04 Size : 208kb User :

基于matlab平台的一些简单实用程序,大家一起共享实用程序。-Matlab platform based on some simple utility, we work together to share utilities.
Date : 2025-07-04 Size : 588kb User : laopu

1289液晶控制器的驱动程序,可驱动320*240 16位色的TFT真彩液晶屏。-1289 LCD Controller Driver
Date : 2025-07-04 Size : 2kb User : junjun

1289液晶控制器的驱动程序,可驱动320*240 16位色的TFT真彩液-1289 LCD controller driver, can drive 320* 240 True Color 16-bit TFT color liquid
Date : 2025-07-04 Size : 2kb User : junjun

火牛开发板MP3原程序包,STM32内核的,配的是3.2寸的TFT触摸屏-AC adapter MP3 program development board
Date : 2025-07-04 Size : 968kb User : yuzhiqiang

1289液晶控制器的驱动程序,可驱动320*240 16位色的TFT真彩液晶屏。-1289 LCD Controller Driver
Date : 2025-07-04 Size : 2kb User : rcent
« 12 »
CodeBus is one of the largest source code repositories on the Internet!
Contact us :
1999-2046 CodeBus All Rights Reserved.