UHD
003.001.000
|
#include <mboard_iface.hpp>
Public Types | |
typedef boost::shared_ptr< mboard_iface > | sptr |
Public Member Functions | |
virtual void | poke32 (boost::uint32_t addr, boost::uint32_t data)=0 |
virtual boost::uint32_t | peek32 (boost::uint32_t addr)=0 |
virtual void | poke16 (boost::uint32_t addr, boost::uint16_t data)=0 |
virtual boost::uint16_t | peek16 (boost::uint32_t addr)=0 |
virtual void | write_uart (boost::uint8_t dev, const std::string &buf)=0 |
virtual std::string | read_uart (boost::uint8_t dev)=0 |
![]() | |
virtual void | write_i2c (boost::uint8_t addr, const byte_vector_t &buf)=0 |
virtual byte_vector_t | read_i2c (boost::uint8_t addr, size_t num_bytes)=0 |
virtual void | write_eeprom (boost::uint8_t addr, boost::uint8_t offset, const byte_vector_t &buf) |
virtual byte_vector_t | read_eeprom (boost::uint8_t addr, boost::uint8_t offset, size_t num_bytes) |
![]() | |
virtual boost::uint32_t | transact_spi (int which_slave, const spi_config_t &config, boost::uint32_t data, size_t num_bits, bool readback)=0 |
virtual boost::uint32_t | read_spi (int which_slave, const spi_config_t &config, boost::uint32_t data, size_t num_bits) |
virtual void | write_spi (int which_slave, const spi_config_t &config, boost::uint32_t data, size_t num_bits) |
The mboard interface class: Provides a set of functions to implementation layer. Including spi, peek, poke, control...
typedef boost::shared_ptr<mboard_iface> uhd::usrp::mboard_iface::sptr |
|
pure virtual |
Read a register (16 bits)
addr | the address |
|
pure virtual |
Read a register (32 bits)
addr | the address |
|
pure virtual |
Write a register (16 bits)
addr | the address |
data | the 16bit data |
|
pure virtual |
Write a register (32 bits)
addr | the address |
data | the 32bit data |
|
pure virtual |
Read from a serial port.
dev | which UART to read from |
|
pure virtual |
Write to a serial port.
dev | which UART to write to |
buf | the data to write |