1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77
|
<?xml version="1.0"?>
<block>
<name>IIO Device Source</name>
<key>iio_device_source</key>
<category>[Industrial IO]</category>
<flags>throttle</flags>
<import>from gnuradio import iio</import>
<make>iio.device_source($uri, $device, $channels, $device_phy, $params, $buffer_size, $decimation - 1)</make>
<param>
<name>IIO context URI</name>
<key>uri</key>
<value>local:</value>
<type>string</type>
</param>
<param>
<name>Device Name/ID</name>
<key>device</key>
<type>string</type>
</param>
<param>
<name>PHY Device Name/ID</name>
<key>device_phy</key>
<type>string</type>
</param>
<param>
<name>Channels</name>
<key>channels</key>
<value>[]</value>
<type>raw</type>
</param>
<param>
<name>Buffer size</name>
<key>buffer_size</key>
<value>0x8000</value>
<type>int</type>
</param>
<param>
<name>Decimation</name>
<key>decimation</key>
<value>1</value>
<type>int</type>
</param>
<param>
<name>Parameters</name>
<key>params</key>
<value>[]</value>
<type>raw</type>
</param>
<!-- Refuse empty strings -->
<check>$device</check>
<check>$device_phy</check>
<!-- Avoid divisions by zero -->
<check>$decimation > 0</check>
<!-- We need at least one channel -->
<check>len($channels) > 0</check>
<source>
<name>out</name>
<type>short</type>
<nports>len($channels)</nports>
</source>
<source>
<name>msg</name>
<type>message</type>
<optional>1</optional>
</source>
</block>
|