代码搜索结果
找到约 10,000 项符合
Serial 的代码
serial.h
#ifndef _VIVI_SERIAL_H_
#define _VIVI_SERIAL_H_
#include
#include
typedef void (*vfuncp)(void);
void putc(char c);
char getc(void);
int ctrlc(void);
void putnstr(const char *st
serial.c
/*
* linux/kernel/serial.c
*
* (C) 1991 Linus Torvalds
*/
/*
* serial.c
*
* This module implements the rs232 io functions
* void rs_write(struct tty_struct * queue);
* void rs_init(void);
serial.h
/*命令类型*/
/*参数配置部分*/
/*宏定义*/
#ifndef SERIALH
#define SERIALH
#define ParaSystemWorkMode 0x01
/*工作模式定义*/
//-------------------------------------------
#define PacketMode
serial.c
#include "stdafx.h"
#include "DTE.h"
#include "DTEDlg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
//---------------------------------
serial.lst
C51 COMPILER V7.50 SERIAL 11/24/2008 09:12:33 PAGE 1
C51 COMPILER V7.50, COMPILATION OF MODULE SERIAL
OBJECT MODULE PLACED IN
serial.c
/*===============================================================================//
//== 文 件 名:Serial.c
//== author :gnsusn
//== 说 明:串口操作
//== 修改日志:2008.7.14 创建文件
//==
//===================
serial.h
/*===============================================================================//
//== 文 件 名:Serial.h
//== author :gnsusn
//== 说 明:串口中用到的数据
//== 修改日志:2008.7.15 创建文件
//==
//===============
serial.cpp
#include "stdafx.h"
#include
#define WM_COMM WM_USER+100;
class CCOM
{
public:
char readbyte();
void sendbyte(unsigned char sdata);
void sendstrn(CString mess);
void initcom(int