Skip to content

Commit

Permalink
trx/radio_if: add freq_offset parameter to constructor
Browse files Browse the repository at this point in the history
Change-Id: Ie1db02b719a0fec478b8a8b8a95643fb10fdfce5
  • Loading branch information
ptrkrysik committed Sep 13, 2018
1 parent 89585b3 commit 0631767
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions apps/grgsm_trx
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ class Application:
self.radio = radio_if(self.phy_args, self.phy_sample_rate,
self.phy_rx_gain, self.phy_tx_gain, self.phy_ppm,
self.phy_rx_antenna, self.phy_tx_antenna,
self.bind_addr, self.remote_addr,
self.base_port)
self.phy_freq_offset_hz, self.bind_addr,
self.remote_addr, self.base_port)

# Optional frequency offset
if self.phy_freq_offset_hz is not None:
Expand Down
5 changes: 3 additions & 2 deletions python/trx/radio_if.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,8 @@ class radio_if(gr.top_block):
def __init__(self, phy_args, phy_sample_rate,
phy_rx_gain, phy_tx_gain, phy_ppm,
phy_rx_antenna, phy_tx_antenna,
trx_bind_addr, trx_remote_addr,
trx_base_port):
phy_freq_offset_hz, trx_bind_addr,
trx_remote_addr, trx_base_port):

print("[i] Init Radio interface (L:%s:%u <-> R:%s:%u)"
% (trx_bind_addr, trx_base_port + 2,
Expand All @@ -98,6 +98,7 @@ def __init__(self, phy_args, phy_sample_rate,
self.rx_gain = phy_rx_gain
self.tx_gain = phy_tx_gain
self.ppm = phy_ppm
self.freq_offset_hz = phy_freq_offset_hz

gr.top_block.__init__(self, "GR-GSM TRX")

Expand Down

0 comments on commit 0631767

Please sign in to comment.