8 #ifndef INCLUDED_UHD_TYPES_SERIAL_HPP 9 #define INCLUDED_UHD_TYPES_SERIAL_HPP 12 #include <boost/shared_ptr.hpp> 37 typedef boost::shared_ptr<i2c_iface>
sptr;
49 virtual void write_i2c(
51 const byte_vector_t &buf
60 virtual byte_vector_t read_i2c(
71 virtual void write_eeprom(
74 const byte_vector_t &buf
84 virtual byte_vector_t read_eeprom(
130 typedef boost::shared_ptr<spi_iface>
sptr;
143 virtual uint32_t transact_spi(
159 virtual uint32_t read_spi(
173 virtual void write_spi(
186 typedef boost::shared_ptr<uart_iface>
sptr;
194 virtual void write_uart(
const std::string &buf) = 0;
201 virtual std::string read_uart(
double timeout) = 0;
size_t divider
Optionally set the SPI clock divider for this transaction.
Definition: serial.hpp:115
Definition: serial.hpp:128
Definition: serial.hpp:35
bool use_custom_divider
Set the clock speed for this transaction.
Definition: serial.hpp:112
edge_t mosi_edge
on what edge is the mosi data valid?
Definition: serial.hpp:106
Definition: build_info.hpp:14
Definition: serial.hpp:95
boost::shared_ptr< spi_iface > sptr
Definition: serial.hpp:130
#define UHD_API
Definition: config.h:63
edge_t miso_edge
on what edge is the miso data valid?
Definition: serial.hpp:109
Definition: serial.hpp:184
boost::shared_ptr< uart_iface > sptr
Definition: serial.hpp:186
edge_t
Definition: serial.hpp:100
boost::shared_ptr< i2c_iface > sptr
Definition: serial.hpp:37
std::vector< uint8_t > byte_vector_t
Byte vector used for I2C data passing and EEPROM parsing.
Definition: byte_vector.hpp:20