Line 14... |
Line 14... |
// Creator: Dan Gisselquist, Ph.D.
|
// Creator: Dan Gisselquist, Ph.D.
|
// Gisselquist Technology, LLC
|
// Gisselquist Technology, LLC
|
//
|
//
|
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
//
|
//
|
// Copyright (C) 2015, Gisselquist Technology, LLC
|
// Copyright (C) 2015-2016, Gisselquist Technology, LLC
|
//
|
//
|
// This program is free software (firmware): you can redistribute it and/or
|
// This program is free software (firmware): you can redistribute it and/or
|
// modify it under the terms of the GNU General Public License as published
|
// modify it under the terms of the GNU General Public License as published
|
// by the Free Software Foundation, either version 3 of the License, or (at
|
// by the Free Software Foundation, either version 3 of the License, or (at
|
// your option) any later version.
|
// your option) any later version.
|
Line 50... |
Line 50... |
virtual void kill(void) { this->close(); };
|
virtual void kill(void) { this->close(); };
|
virtual void close(void);
|
virtual void close(void);
|
virtual void write(char *buf, int len);
|
virtual void write(char *buf, int len);
|
virtual int read(char *buf, int len);
|
virtual int read(char *buf, int len);
|
virtual bool poll(unsigned ms);
|
virtual bool poll(unsigned ms);
|
|
|
|
// Tests whether or not bytes are available to be read, returns a
|
|
// count of the bytes that may be immediately read
|
|
virtual int available(void); // { return 0; };
|
};
|
};
|
|
|
class TTYCOMMS : public LLCOMMSI {
|
class TTYCOMMS : public LLCOMMSI {
|
public:
|
public:
|
TTYCOMMS(const char *dev);
|
TTYCOMMS(const char *dev);
|