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;
54 virtual void write_i2c(
76 virtual void write_eeprom(
78 boost::uint8_t offset,
91 boost::uint8_t offset,
129 typedef boost::shared_ptr<spi_iface>
sptr;
140 virtual boost::uint32_t transact_spi(
143 boost::uint32_t data,
156 virtual boost::uint32_t read_spi(
159 boost::uint32_t data,
170 virtual void write_spi(
173 boost::uint32_t data,
183 typedef boost::shared_ptr<uart_iface>
sptr;
189 virtual void write_uart(
const std::string &buf) = 0;
197 virtual std::string read_uart(
double timeout) = 0;