⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 serialecho.h

📁 贡献一份commoncpp2,有兴趣的可以研究一下
💻 H
字号:
/** ******************************************************************** * C/C++ Source: serialecho.h * * Class definitions for the SerialEcho and related classes. * This package requires the Serial, TTYSession and Thread classes * from the FSF Common C++ library (v 1.2.4 cplusplus.sourceforge.net) *  * SerialEcho is a monitor on the serial port which runs in its own * thread and is responsible for detecting and echoing any serial * input.  The class is based on the ttysession class so it can be * used as any fstream-like class * * @author:  Gary Lawrence Murphy <garym@canada.com> * Copyright:  2000 TeleDynamics Communications Inc (www.teledyn.com) ******************************************************************** */#ifndef SERIALECHO_H#define SERIALECHO_H#include <cc++/common.h>#ifdef	CCXX_NAMESPACESusing namespace std;using namespace ost;#endifclass SerialEcho : public TTYSession { public:  SerialEcho(const char *device,               int priority = 0, int stacksize = 0);  // Exception classes  class xError{}; // nebulous inexplicable error  class xLocked{}; // port is there but we are locked out  class xOverrun{}; // too much data, too little time protected:  void run();};#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -