UHD  003.001.002
Public Types | Public Member Functions | List of all members
uhd::usrp::mboard_iface Class Referenceabstract

#include <mboard_iface.hpp>

Inheritance diagram for uhd::usrp::mboard_iface:
uhd::i2c_iface uhd::spi_iface

Public Types

typedef boost::shared_ptr< mboard_ifacesptr
 

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
 
- Public Member Functions inherited from uhd::i2c_iface
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)
 
- Public Member Functions inherited from uhd::spi_iface
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)
 

Detailed Description

The mboard interface class: Provides a set of functions to implementation layer. Including spi, peek, poke, control...

Member Typedef Documentation

◆ sptr

typedef boost::shared_ptr<mboard_iface> uhd::usrp::mboard_iface::sptr

Member Function Documentation

◆ peek16()

virtual boost::uint16_t uhd::usrp::mboard_iface::peek16 ( boost::uint32_t  addr)
pure virtual

Read a register (16 bits)

Parameters
addrthe address
Returns
the 16bit data

◆ peek32()

virtual boost::uint32_t uhd::usrp::mboard_iface::peek32 ( boost::uint32_t  addr)
pure virtual

Read a register (32 bits)

Parameters
addrthe address
Returns
the 32bit data

◆ poke16()

virtual void uhd::usrp::mboard_iface::poke16 ( boost::uint32_t  addr,
boost::uint16_t  data 
)
pure virtual

Write a register (16 bits)

Parameters
addrthe address
datathe 16bit data

◆ poke32()

virtual void uhd::usrp::mboard_iface::poke32 ( boost::uint32_t  addr,
boost::uint32_t  data 
)
pure virtual

Write a register (32 bits)

Parameters
addrthe address
datathe 32bit data

◆ read_uart()

virtual std::string uhd::usrp::mboard_iface::read_uart ( boost::uint8_t  dev)
pure virtual

Read from a serial port.

Parameters
devwhich UART to read from
Returns
the data read from the serial port

◆ write_uart()

virtual void uhd::usrp::mboard_iface::write_uart ( boost::uint8_t  dev,
const std::string &  buf 
)
pure virtual

Write to a serial port.

Parameters
devwhich UART to write to
bufthe data to write

The documentation for this class was generated from the following file: