DUNE: Uniform Navigational Environment
2.6.0-rc1
|
Public Member Functions | |
virtual | ~Handle (void) |
size_t | write (const uint8_t *data, size_t length) |
size_t | write (const char *data, size_t length) |
size_t | writeString (const char *cstr) |
size_t | read (uint8_t *data, size_t length) |
size_t | read (char *data, size_t length) |
size_t | readString (char *bfr, size_t length) |
void | flush (void) |
void | flushInput (void) |
void | flushOutput (void) |
NativeHandle | getNative (void) const |
Protected Member Functions | |
virtual NativeHandle | doGetNative (void) const =0 |
virtual size_t | doWrite (const uint8_t *data, size_t data_size)=0 |
virtual size_t | doRead (uint8_t *data, size_t data_size)=0 |
virtual void | doFlushInput (void) |
virtual void | doFlushOutput (void) |
virtual void | doFlush (void) |
|
inlinevirtual |
Destructor.
|
inlineprotectedvirtual |
References doFlushInput(), and doFlushOutput().
Referenced by flush().
|
inlineprotectedvirtual |
Referenced by doFlush(), and flushInput().
|
inlineprotectedvirtual |
Referenced by doFlush(), and flushOutput().
|
protectedpure virtual |
Referenced by getNative().
|
protectedpure virtual |
Referenced by read().
|
protectedpure virtual |
Referenced by write().
|
inline |
Flush input and output.
References doFlush().
Referenced by DUNE::Hardware::UCTK::Interface::flush(), and DUNE::Hardware::SerialPort::~SerialPort().
|
inline |
Flush data received but not read.
References doFlushInput().
Referenced by DUNE::Hardware::BasicModem::BasicModem(), DUNE::Hardware::BasicModem::flushInput(), DUNE::Hardware::BasicModem::initialize(), and DUNE::Hardware::HayesModem::initialize().
|
inline |
Flush data buffered but not written.
References doFlushOutput().
|
inline |
Retrieve the native I/O handle.
References doGetNative().
Referenced by DUNE::IO::Poll::add(), DUNE::IO::Poll::poll(), and DUNE::IO::Poll::wasTriggered().
|
inline |
Read binary data from I/O handle.
[in] | data | data buffer. |
[in] | length | number of bytes to read. |
References doRead().
Referenced by DUNE::Hardware::UCTK::Interface::consume(), Sensors::SW100::Driver::read(), DUNE::Hardware::LUCL::Protocol::read(), read(), and readString().
|
inline |
Read binary data from I/O handle.
[in] | data | data buffer. |
[in] | length | number of bytes to read. |
References read().
|
inline |
Read C-style string from I/O handle.
[in] | bfr | data buffer. |
[in] | length | capacity of the data buffer. |
References read().
|
inline |
Write binary data to I/O handle.
[in] | data | data buffer. |
[in] | length | number of bytes to write. |
References doWrite().
Referenced by DUNE::Hardware::UCTK::Interface::sendFrame(), DUNE::Hardware::HayesModem::sendRaw(), DUNE::Hardware::BasicModem::sendRaw(), write(), DUNE::Hardware::LUCL::Protocol::write(), DUNE::Network::TCPSocket::writeFile(), and writeString().
|
inline |
Write binary data to I/O handle.
[in] | data | data buffer. |
[in] | length | number of bytes to write. |
References write().
|
inline |
Write C-style string to I/O handle.
[in] | cstr | C-style string. |
References write().