UHD 003.002.000
|
#include <serial.hpp>
Public Types | |
typedef boost::shared_ptr < uart_iface > | sptr |
Public Member Functions | |
virtual void | write_uart (boost::uint8_t dev, const std::string &buf)=0 |
virtual std::string | read_uart (boost::uint8_t dev)=0 |
UART interface to write and read bytes.
typedef boost::shared_ptr<uart_iface> uhd::uart_iface::sptr |
Reimplemented in uhd::usrp::mboard_iface.
virtual std::string uhd::uart_iface::read_uart | ( | boost::uint8_t | dev | ) | [pure virtual] |
Read from a serial port.
dev | which UART to read from |
virtual void uhd::uart_iface::write_uart | ( | boost::uint8_t | dev, |
const std::string & | buf | ||
) | [pure virtual] |
Write to a serial port.
dev | which UART to write to |
buf | the data to write |