UHD  003.002.002
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
Public Types | Public Member Functions | List of all members
uhd::uart_iface Class Referenceabstract

#include <serial.hpp>

Inheritance diagram for uhd::uart_iface:
uhd::usrp::mboard_iface

Public Types

typedef boost::shared_ptr< uart_ifacesptr
 

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
 

Detailed Description

UART interface to write and read bytes.

Member Typedef Documentation

◆ sptr

typedef boost::shared_ptr<uart_iface> uhd::uart_iface::sptr

Member Function Documentation

◆ read_uart()

virtual std::string uhd::uart_iface::read_uart ( boost::uint8_t  dev)
pure virtual

Read from a serial port.

Parameters
devwhich UART to read from
Returns
the data read from the serial port

◆ write_uart()

virtual void uhd::uart_iface::write_uart ( boost::uint8_t  dev,
const std::string &  buf 
)
pure virtual

Write to a serial port.

Parameters
devwhich UART to write to
bufthe data to write

The documentation for this class was generated from the following file: