serialecho.h

来自「贡献一份commoncpp2,有兴趣的可以研究一下」· C头文件 代码 · 共 45 行

H
45
字号
/** ******************************************************************** * 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 + =
减小字号Ctrl + -
显示快捷键?