18 #ifndef INCLUDED_UHD_USRP_MBOARD_IFACE_HPP 19 #define INCLUDED_UHD_USRP_MBOARD_IFACE_HPP 23 #include <boost/shared_ptr.hpp> 24 #include <boost/utility.hpp> 25 #include <boost/cstdint.hpp> 29 namespace uhd{
namespace usrp{
38 typedef boost::shared_ptr<mboard_iface>
sptr;
44 virtual void poke32(boost::uint32_t addr, boost::uint32_t data) = 0;
51 virtual boost::uint32_t
peek32(boost::uint32_t addr) = 0;
58 virtual void poke16(boost::uint32_t addr, boost::uint16_t data) = 0;
65 virtual boost::uint16_t
peek16(boost::uint32_t addr) = 0;
72 virtual void write_uart(boost::uint8_t dev,
const std::string &buf) = 0;
79 virtual std::string
read_uart(boost::uint8_t dev) = 0;
85 #endif //INCLUDED_UHD_USRP_DBOARD_IFACE_HPP virtual void write_uart(boost::uint8_t dev, const std::string &buf)=0
Definition: serial.hpp:124
Definition: serial.hpp:44
virtual boost::uint32_t peek32(boost::uint32_t addr)=0
virtual void poke32(boost::uint32_t addr, boost::uint32_t data)=0
virtual void poke16(boost::uint32_t addr, boost::uint16_t data)=0
Definition: convert.hpp:28
virtual std::string read_uart(boost::uint8_t dev)=0
boost::shared_ptr< mboard_iface > sptr
Definition: mboard_iface.hpp:38
virtual boost::uint16_t peek16(boost::uint32_t addr)=0
Definition: mboard_iface.hpp:36