forked from sdr/gr-osmosdr
87 lines
2.1 KiB
XML
87 lines
2.1 KiB
XML
<?xml version="1.0"?>
|
|
<block>
|
|
<name>OsmoSDR Source</name>
|
|
<key>osmosdr_source_c</key>
|
|
<category>OsmoSDR</category>
|
|
<import>import osmosdr</import>
|
|
<make>osmosdr.source_c($args)
|
|
self.$(id).set_sample_rate($rate)
|
|
self.$(id).set_center_freq($freq)
|
|
self.$(id).set_freq_corr($corr)
|
|
self.$(id).set_gain($gain)
|
|
self.$(id).set_antenna($antenna)
|
|
</make>
|
|
<callback>set_center_freq($freq)</callback>
|
|
<callback>set_freq_corr($corr)</callback>
|
|
<callback>set_sample_rate($rate)</callback>
|
|
<callback>set_gain($gain)</callback>
|
|
<callback>set_antenna($antenna)</callback>
|
|
<param>
|
|
<name>Device arguments</name>
|
|
<key>args</key>
|
|
<value></value>
|
|
<type>string</type>
|
|
</param>
|
|
<param>
|
|
<name>Frequency (Hz)</name>
|
|
<key>freq</key>
|
|
<value>392.8e6</value>
|
|
<type>real</type>
|
|
</param>
|
|
<param>
|
|
<name>Freq. corr. (ppm)</name>
|
|
<key>corr</key>
|
|
<value>0</value>
|
|
<type>real</type>
|
|
</param>
|
|
<param>
|
|
<name>Sample rate (Hz)</name>
|
|
<key>rate</key>
|
|
<value>1024000</value>
|
|
<type>real</type>
|
|
</param>
|
|
<param>
|
|
<name>Gain (dB)</name>
|
|
<key>gain</key>
|
|
<value>20.0</value>
|
|
<type>real</type>
|
|
</param>
|
|
<param>
|
|
<name>Antenna</name>
|
|
<key>antenna</key>
|
|
<value></value>
|
|
<type>string</type>
|
|
</param>
|
|
<check>($freq >= 50e6) and ($freq <= 2.2e9)</check>
|
|
<check>($rate >= 1e6) and ($rate <= 3.2e6)</check>
|
|
<source>
|
|
<name>out</name>
|
|
<type>complex</type>
|
|
<nports>1</nports>
|
|
</source>
|
|
<doc>
|
|
The OsmoSDR Source Block:
|
|
|
|
Device Arguments:
|
|
The device address is a delimited string used to locate devices on your system.
|
|
Use the device address to specify a specific device or list of devices.
|
|
If left blank, the first device found will be used.
|
|
|
|
Frequency:
|
|
The center frequency is the overall frequency of the RF chain.
|
|
|
|
Frequency correction:
|
|
The frequency correction factor in parts per million (ppm).
|
|
|
|
Sample rate:
|
|
The sample rate is the number of samples per second output by this block.
|
|
|
|
Gain:
|
|
Overall RF gain of the device.
|
|
|
|
Antenna:
|
|
For devices with only one antenna, this may be left blank.
|
|
Otherwise, the user should specify one of the possible antenna choices.
|
|
</doc>
|
|
</block>
|