aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/usrp1/usrp1_ctrl.hpp
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2011-03-10 14:07:38 -0800
committerJosh Blum <josh@joshknows.com>2011-03-10 14:07:38 -0800
commit11e9d7e8fcb649d978a4a5cad8e2b0aa77e4a508 (patch)
tree3483888e9b73e1a093fc66dfe997a21a2e9506c4 /host/lib/usrp/usrp1/usrp1_ctrl.hpp
parente2847fd99c83dab4c3ba08b1b31edf6d459c9e2e (diff)
downloaduhd-11e9d7e8fcb649d978a4a5cad8e2b0aa77e4a508.tar.gz
uhd-11e9d7e8fcb649d978a4a5cad8e2b0aa77e4a508.tar.bz2
uhd-11e9d7e8fcb649d978a4a5cad8e2b0aa77e4a508.zip
usrp1: throw in control calls that fail rather than print the error
Diffstat (limited to 'host/lib/usrp/usrp1/usrp1_ctrl.hpp')
-rw-r--r--host/lib/usrp/usrp1/usrp1_ctrl.hpp47
1 files changed, 4 insertions, 43 deletions
diff --git a/host/lib/usrp/usrp1/usrp1_ctrl.hpp b/host/lib/usrp/usrp1/usrp1_ctrl.hpp
index 8ccfacab7..ee68f8401 100644
--- a/host/lib/usrp/usrp1/usrp1_ctrl.hpp
+++ b/host/lib/usrp/usrp1/usrp1_ctrl.hpp
@@ -40,60 +40,21 @@ public:
* Load firmware in Intel HEX Format onto device
* \param filename name of firmware file
* \param force reload firmware if already loaded
- * \return 0 on success, error code otherwise
*/
- virtual int usrp_load_firmware(std::string filename,
+ virtual void usrp_load_firmware(std::string filename,
bool force = false) = 0;
/*!
* Load fpga file onto usrp
* \param filename name of fpga image
- * \return 0 on success, error code otherwise
*/
- virtual int usrp_load_fpga(std::string filename) = 0;
+ virtual void usrp_load_fpga(std::string filename) = 0;
/*!
* Load USB descriptor file in Intel HEX format into EEPROM
- * \param filename name of EEPROM image
- * \return 0 on success, error code otherwise
+ * \param filename name of EEPROM image
*/
- virtual int usrp_load_eeprom(std::string filestring) = 0;
-
- /*!
- * Set led usrp
- * \param led_num which LED to control (0 or 1)
- * \param on turn LED on or off
- * \return 0 on success, error code otherwise
- */
- virtual int usrp_set_led(int led_num, bool on) = 0;
-
- /*!
- * Get firmware hash
- * \param hash a size_t hash value
- * \return 0 on success, error code otherwise
- */
- virtual int usrp_get_firmware_hash(size_t &hash) = 0;
-
- /*!
- * Set firmware hash
- * \param hash a size_t hash value
- * \return 0 on success, error code otherwise
- */
- virtual int usrp_set_firmware_hash(size_t hash) = 0;
-
- /*!
- * Get fpga hash
- * \param hash a size_t hash value
- * \return 0 on success, error code otherwise
- */
- virtual int usrp_get_fpga_hash(size_t &hash) = 0;
-
- /*!
- * Set fpga hash
- * \param hash a size_t hash value
- * \return 0 on success, error code otherwise
- */
- virtual int usrp_set_fpga_hash(size_t hash) = 0;
+ virtual void usrp_load_eeprom(std::string filestring) = 0;
/*!
* Submit an IN transfer