summaryrefslogtreecommitdiffstats
path: root/firmware/microblaze/lib/db.h
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2010-04-16 09:42:46 +0000
committerJosh Blum <josh@joshknows.com>2010-04-16 09:42:46 +0000
commit835cb56ef820a69e1e6e0ccde7c5a0e78ca5ad25 (patch)
tree4fe48bdaf92311deedfbe1a5e77dd209468a2d7d /firmware/microblaze/lib/db.h
parentf1838b9284a124fcfb5996eaf1647a69b4473278 (diff)
parent067491b58676cbdaa754334949a8ffc2daf32979 (diff)
downloaduhd-835cb56ef820a69e1e6e0ccde7c5a0e78ca5ad25.tar.gz
uhd-835cb56ef820a69e1e6e0ccde7c5a0e78ca5ad25.tar.bz2
uhd-835cb56ef820a69e1e6e0ccde7c5a0e78ca5ad25.zip
Merge branch 'master' of git@ettus.sourcerepo.com:ettus/uhdpriv into usrp_e
Conflicts: .gitignore
Diffstat (limited to 'firmware/microblaze/lib/db.h')
-rw-r--r--firmware/microblaze/lib/db.h78
1 files changed, 0 insertions, 78 deletions
diff --git a/firmware/microblaze/lib/db.h b/firmware/microblaze/lib/db.h
index 5153822c6..358cb222b 100644
--- a/firmware/microblaze/lib/db.h
+++ b/firmware/microblaze/lib/db.h
@@ -28,82 +28,4 @@
int read_dboard_eeprom(int i2c_addr);
-struct db_base;
-
-/* pointers to daughterboard structures */
-extern struct db_base *tx_dboard;
-extern struct db_base *rx_dboard;
-
-
-//! Intermediate tuning information
-
-struct tune_result
-{
- //! The RF frequency that corresponds to DC in the IF from the daughterboard
- u2_fxpt_freq_t baseband_freq;
-
- //! The DDC/DUC frequency used to down/up convert to/from the target frequency
- u2_fxpt_freq_t dxc_freq;
-
- //! Any differerence btwn target and actual (typically < 0.01 Hz)
- u2_fxpt_freq_t residual_freq;
-
- //! Is the complex baseband spectrum inverted
- bool inverted;
-};
-
-
-/*!
- * \brief One-time init at powerup
- *
- * Sets rx_dboard, tx_dboard and initializes daughterboards.
- */
-void
-db_init(void);
-
-/*!
- * \brief Set daughterboard LO offset frequency.
- *
- * \param[in] db is the daughterboard instance
- * \param[in] offset is the amount to add to tuning requests
- * \param[out] success or failure
- */
-bool
-db_set_lo_offset(struct db_base *db, u2_fxpt_freq_t offset);
-
-/*!
- * \brief Two stage tuning. Given target_freq, tune LO and DDC/DUC
- *
- * \param[in] db is the daughterboard instance
- * \param[in] target_freq is the freq to translate the complex baseband to/from.
- * \param[out] result provides details of the resulting configuration.
- *
- */
-bool
-db_tune(struct db_base *db, u2_fxpt_freq_t target_freq, struct tune_result *result);
-
-
-/*
- * Set only the DDC frequency
- */
-bool
-db_set_ddc_freq(u2_fxpt_freq_t dxc_freq, u2_fxpt_freq_t *actual_dxc_freq);
-
-/*
- * Set only the DUC frequency
- */
-bool
-db_set_duc_freq(u2_fxpt_freq_t dxc_freq, u2_fxpt_freq_t *actual_dxc_freq);
-
-
-/*!
- * \brief Set gain
- */
-bool
-db_set_gain(struct db_base *db, u2_fxpt_gain_t gain);
-
-
-void
-set_atr_regs(int bank, int atr_rxval, int atr_txval);
-
#endif /* INCLUDED_DB_H */