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(
56 const byte_vector_t &buf
65 virtual byte_vector_t read_i2c(
76 virtual void write_eeprom(
78 boost::uint8_t offset,
79 const byte_vector_t &buf
89 virtual byte_vector_t read_eeprom(
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;
Definition: serial.hpp:127
Definition: serial.hpp:45
edge_t mosi_edge
on what edge is the mosi data valid?
Definition: serial.hpp:111
#define UHD_API
Definition: config.hpp:76
Definition: convert.hpp:28
Definition: serial.hpp:100
std::vector< boost::uint8_t > byte_vector_t
Definition: serial.hpp:31
boost::shared_ptr< spi_iface > sptr
Definition: serial.hpp:129
edge_t miso_edge
on what edge is the miso data valid?
Definition: serial.hpp:114
Definition: serial.hpp:181
boost::shared_ptr< uart_iface > sptr
Definition: serial.hpp:183
edge_t
Definition: serial.hpp:105
boost::shared_ptr< i2c_iface > sptr
Definition: serial.hpp:47