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(
61 const byte_vector_t &buf
70 virtual byte_vector_t read_i2c(
81 virtual void write_eeprom(
83 boost::uint16_t offset,
84 const byte_vector_t &buf
94 virtual byte_vector_t read_eeprom(
96 boost::uint16_t offset,
140 typedef boost::shared_ptr<spi_iface>
sptr;
153 virtual boost::uint32_t transact_spi(
156 boost::uint32_t data,
169 virtual boost::uint32_t read_spi(
172 boost::uint32_t data,
183 virtual void write_spi(
186 boost::uint32_t data,
196 typedef boost::shared_ptr<uart_iface>
sptr;
204 virtual void write_uart(
const std::string &buf) = 0;
212 virtual std::string read_uart(
double timeout) = 0;
size_t divider
Optionally set the SPI clock divider for this transaction.
Definition: serial.hpp:125
Definition: serial.hpp:138
Definition: serial.hpp:45
bool use_custom_divider
Set the clock speed for this transaction.
Definition: serial.hpp:122
edge_t mosi_edge
on what edge is the mosi data valid?
Definition: serial.hpp:116
Definition: build_info.hpp:25
Definition: serial.hpp:105
boost::shared_ptr< spi_iface > sptr
Definition: serial.hpp:140
std::vector< boost::uint8_t > byte_vector_t
Byte vector used for I2C data passing and EEPROM parsing.
Definition: byte_vector.hpp:33
#define UHD_API
Definition: config.h:73
edge_t miso_edge
on what edge is the miso data valid?
Definition: serial.hpp:119
Definition: serial.hpp:194
boost::shared_ptr< uart_iface > sptr
Definition: serial.hpp:196
edge_t
Definition: serial.hpp:110
boost::shared_ptr< i2c_iface > sptr
Definition: serial.hpp:47