 |
USRP Hardware Driver and USRP Manual
Version: 4.8.0.0
UHD and USRP Manual
|
|
Go to the documentation of this file.
39 typedef std::shared_ptr<i2c_iface>
sptr;
51 virtual void write_i2c(uint16_t addr,
const byte_vector_t& buf) = 0;
59 virtual byte_vector_t read_i2c(uint16_t addr,
size_t num_bytes) = 0;
67 virtual void write_eeprom(uint16_t addr, uint16_t offset,
const byte_vector_t& buf);
76 virtual byte_vector_t read_eeprom(uint16_t addr, uint16_t offset,
size_t num_bytes);
89 enum edge_t { EDGE_RISE =
'r', EDGE_FALL =
'f' };
125 typedef std::shared_ptr<spi_iface>
sptr;
138 virtual uint32_t transact_spi(
int which_slave,
152 virtual uint32_t read_spi(
153 int which_slave,
const spi_config_t& config, uint32_t data,
size_t num_bits);
162 virtual void write_spi(
163 int which_slave,
const spi_config_t& config, uint32_t data,
size_t num_bits);
172 typedef std::shared_ptr<uart_iface>
sptr;
180 virtual void write_uart(
const std::string& buf) = 0;
187 virtual std::string read_uart(
double timeout) = 0;
edge_t
Definition: serial.hpp:89
#define UHD_API
Definition: config.h:87
std::shared_ptr< i2c_iface > sptr
Definition: serial.hpp:39
std::shared_ptr< uart_iface > sptr
Definition: serial.hpp:172
std::vector< uint8_t > byte_vector_t
Byte vector used for I2C data passing and EEPROM parsing.
Definition: byte_vector.hpp:21
Definition: build_info.hpp:12
Definition: serial.hpp:169
edge_t mosi_edge
on what edge is the mosi data valid?
Definition: serial.hpp:92
edge_t miso_edge
on what edge is the miso data valid?
Definition: serial.hpp:95
size_t divider
Optionally set the SPI clock divider for this transaction.
Definition: serial.hpp:101
Definition: serial.hpp:36
Definition: serial.hpp:83
Definition: serial.hpp:122
std::shared_ptr< spi_iface > sptr
Definition: serial.hpp:125
bool use_custom_divider
Set the clock speed for this transaction.
Definition: serial.hpp:98