UHD
003.005.000-31-stable
|
#include <serial.hpp>
Public Types | |
typedef boost::shared_ptr < uart_iface > | sptr |
Public Member Functions | |
virtual void | write_uart (const std::string &buf)=0 |
virtual std::string | read_uart (double timeout)=0 |
UART interface to write and read bytes.
typedef boost::shared_ptr<uart_iface> uhd::uart_iface::sptr |
virtual std::string uhd::uart_iface::read_uart | ( | double | timeout | ) | [pure virtual] |
Read from a serial port. Reads until complete line or timeout.
timeout | the timeout in seconds |
virtual void uhd::uart_iface::write_uart | ( | const std::string & | buf | ) | [pure virtual] |
Write to a serial port.
buf | the data to write |