7 #ifndef INCLUDED_UHD_TYPES_SERIAL_HPP 8 #define INCLUDED_UHD_TYPES_SERIAL_HPP 11 #include <boost/shared_ptr.hpp> 36 typedef boost::shared_ptr<i2c_iface>
sptr;
48 virtual void write_i2c(
50 const byte_vector_t &buf
59 virtual byte_vector_t read_i2c(
70 virtual void write_eeprom(
73 const byte_vector_t &buf
83 virtual byte_vector_t read_eeprom(
129 typedef boost::shared_ptr<spi_iface>
sptr;
142 virtual uint32_t transact_spi(
158 virtual uint32_t read_spi(
172 virtual void write_spi(
185 typedef boost::shared_ptr<uart_iface>
sptr;
193 virtual void write_uart(
const std::string &buf) = 0;
200 virtual std::string read_uart(
double timeout) = 0;
size_t divider
Optionally set the SPI clock divider for this transaction.
Definition: serial.hpp:114
Definition: serial.hpp:127
Definition: serial.hpp:34
bool use_custom_divider
Set the clock speed for this transaction.
Definition: serial.hpp:111
edge_t mosi_edge
on what edge is the mosi data valid?
Definition: serial.hpp:105
Definition: build_info.hpp:14
Definition: serial.hpp:94
boost::shared_ptr< spi_iface > sptr
Definition: serial.hpp:129
#define UHD_API
Definition: config.h:62
edge_t miso_edge
on what edge is the miso data valid?
Definition: serial.hpp:108
Definition: serial.hpp:183
boost::shared_ptr< uart_iface > sptr
Definition: serial.hpp:185
edge_t
Definition: serial.hpp:99
boost::shared_ptr< i2c_iface > sptr
Definition: serial.hpp:36
std::vector< uint8_t > byte_vector_t
Byte vector used for I2C data passing and EEPROM parsing.
Definition: byte_vector.hpp:22