SerialLinux Class
Implements the Serial interface on Linux. More...
Header: | #include <OSAPI/Serial/SerialLinux.h> |
Inherits: | Serial |
Public Functions
SerialLinux() | |
virtual | ~SerialLinux() |
bool | TxWait(unsigned int timeoutMs) |
Reimplemented Public Functions
virtual void | ClearDTR() override |
virtual void | ClearRTS() override |
virtual void | Close() override |
virtual bool | GetByte(unsigned char *pByte, unsigned int timeoutMs) override |
virtual int | GetBytes(unsigned char *pBuf, int nBytes, unsigned int timeoutMs) override |
virtual unsigned int | GetInfinite() override |
virtual unsigned int | GetZeroTimeout() override |
virtual bool | Open() override |
virtual bool | PutByte(const unsigned char *pByte, unsigned int timeoutMs) override |
virtual int | PutBytes(const unsigned char *pBuf, int nBytes, unsigned int timeoutMs) override |
virtual void | SetDTR() override |
virtual void | SetRTS() override |
virtual void | SetupParams(unsigned int lBaudRate, ParityModes eParity, int nDataBits, int nStopBits, ProtocolModes eProtocol, int nMultiDrop, std::string strPortName) override |
- 21 public functions inherited from Serial
Additional Inherited Members
Detailed Description
Implements the Serial interface on Linux.
Member Function Documentation
SerialLinux::SerialLinux()
Constructor. Don't instantiate this class; Use Serial::MakeSerial() instead.
[virtual]
SerialLinux::~SerialLinux()
Destructor.
[override virtual]
void SerialLinux::ClearDTR()
Reimplemented from Serial::ClearDTR().
[override virtual]
void SerialLinux::ClearRTS()
Reimplemented from Serial::ClearRTS().
[override virtual]
void SerialLinux::Close()
Reimplemented from Serial::Close().
[override virtual]
bool SerialLinux::GetByte(unsigned char *pByte, unsigned int timeoutMs)
Reimplemented from Serial::GetByte().
[override virtual]
int SerialLinux::GetBytes(unsigned char *pBuf, int nBytes, unsigned int timeoutMs)
Reimplemented from Serial::GetBytes().
[override virtual]
unsigned int SerialLinux::GetInfinite()
Reimplemented from Serial::GetInfinite().
[override virtual]
unsigned int SerialLinux::GetZeroTimeout()
Reimplemented from Serial::GetZeroTimeout().
[override virtual]
bool SerialLinux::Open()
Reimplemented from Serial::Open().
[override virtual]
bool SerialLinux::PutByte(const unsigned char *pByte, unsigned int timeoutMs)
Reimplemented from Serial::PutByte().
[override virtual]
int SerialLinux::PutBytes(const unsigned char *pBuf, int nBytes, unsigned int timeoutMs)
Reimplemented from Serial::PutBytes().
[override virtual]
void SerialLinux::SetDTR()
Reimplemented from Serial::SetDTR().
[override virtual]
void SerialLinux::SetRTS()
Reimplemented from Serial::SetRTS().
[override virtual]
void SerialLinux::SetupParams(unsigned int lBaudRate, ParityModes eParity, int nDataBits, int nStopBits, ProtocolModes eProtocol, int nMultiDrop, std::string strPortName)
Reimplemented from Serial::SetupParams().
bool SerialLinux::TxWait(unsigned int timeoutMs)
Get started with CDP Studio today
Let us help you take your great ideas and turn them into the products your customer will love.