代码搜索结果

找到约 10,000 项符合 Serial 的代码

serial.pas

{ PROG:serial LANG:PASCAL } program serial; var fin,fout:text; bully,minvictim,v:string; half,i:integer; function count(s:string;x:char):integer; var i:integer; begin

serial.c

/* $Id: serial.c 4666 2008-01-21 01:19:38Z garyemiller $ */ #include #include #include #include #include #include #include

serial.h

#ifndef SERIAL_H #define SERIAL_H void set_speed(int fd, int speed); int set_Parity(int fd,int databits,int stopbits,int parity, int timeout); void set_raw_io( int fd ); int InitDev(int

serial.cpp

#include #include #include #include #include #include #include #include int speed_arr[] = { B57600, B3840

serial.h

#ifndef _SERIAL_H #define _SERIAL_H #define USE_FFUART #undef USE_BTUART #undef USE_STUART #define UART_BAUDRATE (115200) //#define LCR_VALUE (0x03) // No Parity, 8 bit data, 1 stop bit //

serial.c

#include #include #include #include #if defined(USE_FFUART) static const unsigned long base = 0x40100000; #elif defined(USE_BTUART) static const unsigned l

serial.h

//本函数集来自“51单片机世界”,作者斑竹丁丁(聂小猛)。 //主页地址http://www.mcu51.com //串口中断服务程序,仅需做简单调用即可完成串口输入输出的处理 //出入均设有缓冲区,大小可任意设置。 //可供使用的函数名: //char getbyte(void);从接收缓冲区取一个byte,如不想等待则在调用前检测inbufsign是否为1。 //getline( ...

serial.c

#include //=============================================================================== //延时n x 100ns void delay100ns(unsigned char d) //在源程序开头定义是否用w77e58或22.1184M晶振 { unsigned c

serial.cpp

//************************************************ //项目: //文件名:Serial.cpp //功能:串口类 //日期:2008/07/28 //版权:Copyright (C) 2008 //作者:杨世峰 // //修改备注 //... //***************************************