18 #ifndef INCLUDED_UHD_TYPES_SERIAL_HPP
19 #define INCLUDED_UHD_TYPES_SERIAL_HPP
22 #include <boost/shared_ptr.hpp>
23 #include <boost/cstdint.hpp>
47 typedef boost::shared_ptr<i2c_iface>
sptr;
59 virtual void write_i2c(
81 virtual void write_eeprom(
83 boost::uint16_t offset,
96 boost::uint16_t offset,
134 typedef boost::shared_ptr<spi_iface>
sptr;
147 virtual boost::uint32_t transact_spi(
150 boost::uint32_t data,
163 virtual boost::uint32_t read_spi(
166 boost::uint32_t data,
177 virtual void write_spi(
180 boost::uint32_t data,
190 typedef boost::shared_ptr<uart_iface>
sptr;
198 virtual void write_uart(
const std::string &buf) = 0;
206 virtual std::string read_uart(
double timeout) = 0;