代码搜索结果
找到约 10,000 项符合
Serial 的代码
serial.c
#include "fx2.h"
#include "fx2regs.h"
#include "io.h"
#include "serial.h"
#define BAUDRATE 9600 //设置波特率
serial.h
#define ReceiveMaxLength 1024
extern BYTE xdata ReceiveBuf0[ReceiveMaxLength]; //接收缓冲区
extern WORD ReceiveCount0; //接收个数
extern BYTE xdata ReceiveBuf1[ReceiveMaxLength]; //接收
serial.__i
"Serial.c" BROWSE DEBUG OBJECTEXTEND
serial.lst
C51 COMPILER V7.02b SERIAL 07/04/2004 14:58:26 PAGE 1
C51 COMPILER V7.02b, COMPILATION OF MODULE SERIAL
OBJECT MODULE PLACED IN
serial.c
#include "fx2.h"
#include "fx2regs.h"
#include "io.h"
#include "serial.h"
#include "fx2sdly.h"
#define BAUDRATE 9600 //设置波特率
serial.h
#define ReceiveMaxLength 1024
extern BYTE xdata ReceiveBuf0[ReceiveMaxLength]; //接收缓冲区
extern WORD ReceiveCount0; //接收个数
extern BYTE xdata ReceiveBuf1[ReceiveMaxLength]; //接收
serial.__i
"Serial.c" BROWSE DEBUG OBJECTEXTEND
serial.h
#ifndef SERIAL_H
#define SERIAL_H
#include
#include
#define TIMEOUT_SECS 20
#define DEFAULT_BAUD_RATE 38400;
#define CR 0x0D
#define LF 0x0A
class Serial
{
serial.cpp
#include "StdAfx.h"
#include "stdio.h"
#include "serial.h"
DWORD Serial::m_dwTimeOut=TIMEOUT_SECS;
Serial *Serial::OpenSerial(TCHAR *strPort,int nRate,BOOL bSoftHandshake)
{
Serial *pSerial