MCPcopy Create free account
hub / github.com/crayzeewulf/libserial / IsOpen

Method IsOpen

src/SerialStream.cpp:249–265  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

247 }
248
249 bool
250 SerialStream::IsOpen()
251 try
252 {
253 // Checks to see if mIOBuffer is a null buffer, if not, calls
254 // the IsOpen() function on this stream's SerialStreamBuf mIOBuffer
255 if (mIOBuffer == nullptr)
256 {
257 return false;
258 }
259 return mIOBuffer->IsOpen() ;
260 }
261 catch (const std::exception&)
262 {
263 setstate(std::ios_base::failbit) ;
264 throw ;
265 }
266
267 void
268 SerialStream::SetBaudRate(const BaudRate& baudRate)

Callers 1

~SerialStreamMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected