UHD
003.003.002
|
#include <mboard_iface.hpp>
Public Types | |
typedef boost::shared_ptr< mboard_iface > | sptr |
![]() | |
typedef boost::shared_ptr< i2c_iface > | sptr |
![]() | |
typedef boost::shared_ptr< spi_iface > | sptr |
![]() | |
typedef boost::shared_ptr< uart_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_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) |
![]() | |
virtual void | write_uart (const std::string &buf)=0 |
virtual std::string | read_uart (double timeout)=0 |
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 |