diff options
author | Alexander Chemeris <Alexander.Chemeris@gmail.com> | 2015-06-03 23:47:56 -0400 |
---|---|---|
committer | Tom Tsou <tom.tsou@ettus.com> | 2015-07-30 14:14:33 -0700 |
commit | e8905a03a540fa91aaba3970577edf9e562bb23d (patch) | |
tree | 029750737ac363f282b6186a112e8959d1a88e42 /Transceiver52M/Transceiver.h | |
parent | 909ffbfd231aa716281c4b2948f2cd5e650237c0 (diff) |
osmo-trx: Add a command line option for the dBFS to dBm offset.
Signed-off-by: Tom Tsou <tom.tsou@ettus.com>
Diffstat (limited to 'Transceiver52M/Transceiver.h')
-rw-r--r-- | Transceiver52M/Transceiver.h | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/Transceiver52M/Transceiver.h b/Transceiver52M/Transceiver.h index 4f6aa69..e4fcbfa 100644 --- a/Transceiver52M/Transceiver.h +++ b/Transceiver52M/Transceiver.h @@ -97,10 +97,11 @@ public: @param radioInterface associated radioInterface object */ Transceiver(int wBasePort, - const char *TRXAddress, - size_t wSPS, size_t chans, - GSM::Time wTransmitLatency, - RadioInterface *wRadioInterface); + const char *TRXAddress, + size_t wSPS, size_t chans, + GSM::Time wTransmitLatency, + RadioInterface *wRadioInterface, + double wRssiOffset); /** Destructor */ ~Transceiver(); @@ -181,6 +182,8 @@ private: double txFullScale; ///< full scale input to radio double rxFullScale; ///< full scale output to radio + double rssiOffset; ///< RSSI to dBm conversion offset + /** modulate and add a burst to the transmit queue */ void addRadioVector(size_t chan, BitVector &bits, int RSSI, GSM::Time &wTime); @@ -192,8 +195,8 @@ private: void pushRadioVector(GSM::Time &nowTime); /** Pull and demodulate a burst from the receive FIFO */ - SoftVector *pullRadioVector(GSM::Time &wTime, int &RSSI, - int &timingOffset, size_t chan = 0); + SoftVector *pullRadioVector(GSM::Time &wTime, double &RSSI, + double &timingOffset, size_t chan = 0); /** Set modulus for specific timeslot */ void setModulus(size_t timeslot, size_t chan); |