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 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145
|
<?xml version="1.0"?>
<block>
<name>IIO Attribute Source</name>
<key>iio_attr_source</key>
<category>[Industrial IO]</category>
<import>from gnuradio import iio</import>
<make>iio.attr_source($uri, $device, $channel, $attribute, $update_interval_ms, $samples_per_update, $type, $attr_type, $output, $address, $required_enable)</make>
<param>
<name>uri</name>
<key>uri</key>
<value>""</value>
<type>string</type>
</param>
<param>
<name>Device</name>
<key>device</key>
<value>""</value>
<type>string</type>
</param>
<param>
<name>Attribute Type</name>
<key>attr_type</key>
<type>enum</type>
<option>
<name>Channel</name>
<key>0</key>
</option>
<option>
<name>Device</name>
<key>1</key>
</option>
<option>
<name>Device Debug</name>
<key>2</key>
</option>
<option>
<name>Register</name>
<key>3</key>
</option>
</param>
<param>
<name>Input/Output</name>
<key>output</key>
<type>enum</type>
<hide>#if int($attr_type()) == 0 then 'none' else 'all'#</hide>
<option>
<name>Input</name>
<key>False</key>
</option>
<option>
<name>Output</name>
<key>True</key>
</option>
</param>
<param>
<name>Channel Name</name>
<key>channel</key>
<value>""</value>
<type>string</type>
<hide>#if int($attr_type()) == 0 then 'none' else 'all'#</hide>
</param>
<param>
<name>Attribute Name</name>
<key>attribute</key>
<value>""</value>
<type>string</type>
<hide>#if int($attr_type()) != 3 then 'none' else 'all'#</hide>
</param>
<param>
<name>Register Address</name>
<key>address</key>
<value>int("0x123",0)</value>
<type>int</type>
<hide>#if int($attr_type()) == 3 then 'none' else 'all'#</hide>
</param>
<param>
<name>Required Enable</name>
<key>required_enable</key>
<type>enum</type>
<hide>#if int($attr_type()) == 3 then 'none' else 'all'#</hide>
<option>
<name>Not Required</name>
<key>False</key>
</option>
<option>
<name>Enable</name>
<key>True</key>
</option>
</param>
<param>
<name>Data Type</name>
<key>type</key>
<type>enum</type>
<hide>#if int($attr_type()) != 3 then 'none' else 'all'#</hide>
<option>
<name>Double</name>
<key>0</key>
<opt>fcn:f64</opt>
</option>
<option>
<name>Float (casted from double)</name>
<key>1</key>
<opt>fcn:f32</opt>
</option>
<option>
<name>Long Long</name>
<key>2</key>
<opt>fcn:s64</opt>
</option>
<option>
<name>Long (casted from long long)</name>
<key>3</key>
<opt>fcn:s32</opt>
</option>
<option>
<name>Bool</name>
<key>4</key>
<opt>fcn:s8</opt>
</option>
</param>
<param>
<name>Update Interval (ms)</name>
<key>update_interval_ms</key>
<value>1</value>
<type>int</type>
</param>
<param>
<name>Samples Per Update</name>
<key>samples_per_update</key>
<value>1024</value>
<type>int</type>
</param>
<source>
<name>out</name>
<type>#if int($attr_type()) == 3 then 's32' else str($type.fcn)#</type>
<nports>len($attributes)</nports>
</source>
<doc>
https://wiki.analog.com/resources/tools-software/linux-software/gnuradio
</doc>
</block>
|