X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=usrp2%2Fhost%2Finclude%2Fusrp2%2Fusrp2.h;h=70d800bf0f204c9f3d950477f34d524ae7e42675;hb=98dca512c2fdfbed0f9db14bc07fe5c2ed58b83b;hp=39da63aa5d8bc6da455772f33f768fbf7fe987e7;hpb=5eb35d758f7bf08b821479d11a8784689eef239c;p=debian%2Fgnuradio diff --git a/usrp2/host/include/usrp2/usrp2.h b/usrp2/host/include/usrp2/usrp2.h index 39da63aa..70d800bf 100644 --- a/usrp2/host/include/usrp2/usrp2.h +++ b/usrp2/host/include/usrp2/usrp2.h @@ -1,6 +1,6 @@ /* -*- c++ -*- */ /* - * Copyright 2008 Free Software Foundation, Inc. + * Copyright 2008,2009 Free Software Foundation, Inc. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -94,6 +94,11 @@ namespace usrp2 { */ std::string mac_addr(); + /*! + * Returns the GbE interface name associated with this USRP + */ + std::string interface_name(); + /* * ---------------------------------------------------------------- * Rx configuration and control @@ -115,6 +120,11 @@ namespace usrp2 { //! return Rx gain db_per_step double rx_gain_db_per_step(); + /*! + * \brief Set receive daughterboard LO offset frequency + */ + bool set_rx_lo_offset(double frequency); + /*! * Set receiver center frequency */ @@ -200,6 +210,11 @@ namespace usrp2 { //! return Tx gain db_per_step double tx_gain_db_per_step(); + /* + * \brief Set transmit daughterboard LO offset frequency + */ + bool set_tx_lo_offset(double frequency); + /*! * Set transmitter center frequency */ @@ -362,10 +377,15 @@ namespace usrp2 { bool burn_mac_addr(const std::string &new_addr); /*! - * Reset master time to 0 at next PPS rising edge + * Reset master time to 0 at next PPS edge */ bool sync_to_pps(); + /*! + * Reset master time to 0 at every PPS edge + */ + bool sync_every_pps(bool enable); + /*! * Read memory from Wishbone bus as 32-bit words. Handles endian swapping if needed. *