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,
   134         typedef boost::shared_ptr<spi_iface> 
sptr;
   147         virtual boost::uint32_t transact_spi(
   150             boost::uint32_t data,
   163         virtual boost::uint32_t read_spi(
   166             boost::uint32_t data,
   177         virtual void write_spi(
   180             boost::uint32_t data,
   190         typedef boost::shared_ptr<uart_iface> 
sptr;
   198         virtual void write_uart(
const std::string &buf) = 0;
   206         virtual std::string read_uart(
double timeout) = 0;
 Definition: serial.hpp:132
 
Definition: serial.hpp:45
 
edge_t mosi_edge
on what edge is the mosi data valid? 
Definition: serial.hpp:116
 
Definition: convert.hpp:28
 
Definition: serial.hpp:105
 
boost::shared_ptr< spi_iface > sptr
Definition: serial.hpp:134
 
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:66
 
edge_t miso_edge
on what edge is the miso data valid? 
Definition: serial.hpp:119
 
Definition: serial.hpp:188
 
boost::shared_ptr< uart_iface > sptr
Definition: serial.hpp:190
 
edge_t
Definition: serial.hpp:110
 
boost::shared_ptr< i2c_iface > sptr
Definition: serial.hpp:47