/usr/lib/python2.7/dist-packages/SoapySDR.py is in python-soapysdr 0.6.1-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 | # This file was automatically generated by SWIG (http://www.swig.org).
# Version 3.0.12
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info as _swig_python_version_info
if _swig_python_version_info >= (2, 7, 0):
def swig_import_helper():
import importlib
pkg = __name__.rpartition('.')[0]
mname = '.'.join((pkg, '_SoapySDR')).lstrip('.')
try:
return importlib.import_module(mname)
except ImportError:
return importlib.import_module('_SoapySDR')
_SoapySDR = swig_import_helper()
del swig_import_helper
elif _swig_python_version_info >= (2, 6, 0):
def swig_import_helper():
from os.path import dirname
import imp
fp = None
try:
fp, pathname, description = imp.find_module('_SoapySDR', [dirname(__file__)])
except ImportError:
import _SoapySDR
return _SoapySDR
try:
_mod = imp.load_module('_SoapySDR', fp, pathname, description)
finally:
if fp is not None:
fp.close()
return _mod
_SoapySDR = swig_import_helper()
del swig_import_helper
else:
import _SoapySDR
del _swig_python_version_info
try:
_swig_property = property
except NameError:
pass # Python < 2.2 doesn't have 'property'.
try:
import builtins as __builtin__
except ImportError:
import __builtin__
def _swig_setattr_nondynamic(self, class_type, name, value, static=1):
if (name == "thisown"):
return self.this.own(value)
if (name == "this"):
if type(value).__name__ == 'SwigPyObject':
self.__dict__[name] = value
return
method = class_type.__swig_setmethods__.get(name, None)
if method:
return method(self, value)
if (not static):
if _newclass:
object.__setattr__(self, name, value)
else:
self.__dict__[name] = value
else:
raise AttributeError("You cannot add attributes to %s" % self)
def _swig_setattr(self, class_type, name, value):
return _swig_setattr_nondynamic(self, class_type, name, value, 0)
def _swig_getattr(self, class_type, name):
if (name == "thisown"):
return self.this.own()
method = class_type.__swig_getmethods__.get(name, None)
if method:
return method(self)
raise AttributeError("'%s' object has no attribute '%s'" % (class_type.__name__, name))
def _swig_repr(self):
try:
strthis = "proxy of " + self.this.__repr__()
except __builtin__.Exception:
strthis = ""
return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
try:
_object = object
_newclass = 1
except __builtin__.Exception:
class _object:
pass
_newclass = 0
class SwigPyIterator(_object):
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, SwigPyIterator, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, SwigPyIterator, name)
def __init__(self, *args, **kwargs):
raise AttributeError("No constructor defined - class is abstract")
__repr__ = _swig_repr
__swig_destroy__ = _SoapySDR.delete_SwigPyIterator
__del__ = lambda self: None
def value(self):
return _SoapySDR.SwigPyIterator_value(self)
def incr(self, n=1):
return _SoapySDR.SwigPyIterator_incr(self, n)
def decr(self, n=1):
return _SoapySDR.SwigPyIterator_decr(self, n)
def distance(self, x):
return _SoapySDR.SwigPyIterator_distance(self, x)
def equal(self, x):
return _SoapySDR.SwigPyIterator_equal(self, x)
def copy(self):
return _SoapySDR.SwigPyIterator_copy(self)
def next(self):
return _SoapySDR.SwigPyIterator_next(self)
def __next__(self):
return _SoapySDR.SwigPyIterator___next__(self)
def previous(self):
return _SoapySDR.SwigPyIterator_previous(self)
def advance(self, n):
return _SoapySDR.SwigPyIterator_advance(self, n)
def __eq__(self, x):
return _SoapySDR.SwigPyIterator___eq__(self, x)
def __ne__(self, x):
return _SoapySDR.SwigPyIterator___ne__(self, x)
def __iadd__(self, n):
return _SoapySDR.SwigPyIterator___iadd__(self, n)
def __isub__(self, n):
return _SoapySDR.SwigPyIterator___isub__(self, n)
def __add__(self, n):
return _SoapySDR.SwigPyIterator___add__(self, n)
def __sub__(self, *args):
return _SoapySDR.SwigPyIterator___sub__(self, *args)
def __iter__(self):
return self
SwigPyIterator_swigregister = _SoapySDR.SwigPyIterator_swigregister
SwigPyIterator_swigregister(SwigPyIterator)
def KwargsFromString(markup):
return _SoapySDR.KwargsFromString(markup)
KwargsFromString = _SoapySDR.KwargsFromString
def KwargsToString(args):
return _SoapySDR.KwargsToString(args)
KwargsToString = _SoapySDR.KwargsToString
class Range(_object):
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, Range, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, Range, name)
__repr__ = _swig_repr
def __init__(self, *args):
this = _SoapySDR.new_Range(*args)
try:
self.this.append(this)
except __builtin__.Exception:
self.this = this
def minimum(self):
return _SoapySDR.Range_minimum(self)
def maximum(self):
return _SoapySDR.Range_maximum(self)
def step(self):
return _SoapySDR.Range_step(self)
def __str__(self):
fields = [self.minimum(), self.maximum()]
if self.step() != 0.0: fields.append(self.step())
return ', '.join(['%g'%f for f in fields])
__swig_destroy__ = _SoapySDR.delete_Range
__del__ = lambda self: None
Range_swigregister = _SoapySDR.Range_swigregister
Range_swigregister(Range)
class ArgInfo(_object):
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, ArgInfo, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, ArgInfo, name)
__repr__ = _swig_repr
def __init__(self):
this = _SoapySDR.new_ArgInfo()
try:
self.this.append(this)
except __builtin__.Exception:
self.this = this
__swig_setmethods__["key"] = _SoapySDR.ArgInfo_key_set
__swig_getmethods__["key"] = _SoapySDR.ArgInfo_key_get
if _newclass:
key = _swig_property(_SoapySDR.ArgInfo_key_get, _SoapySDR.ArgInfo_key_set)
__swig_setmethods__["value"] = _SoapySDR.ArgInfo_value_set
__swig_getmethods__["value"] = _SoapySDR.ArgInfo_value_get
if _newclass:
value = _swig_property(_SoapySDR.ArgInfo_value_get, _SoapySDR.ArgInfo_value_set)
__swig_setmethods__["name"] = _SoapySDR.ArgInfo_name_set
__swig_getmethods__["name"] = _SoapySDR.ArgInfo_name_get
if _newclass:
name = _swig_property(_SoapySDR.ArgInfo_name_get, _SoapySDR.ArgInfo_name_set)
__swig_setmethods__["description"] = _SoapySDR.ArgInfo_description_set
__swig_getmethods__["description"] = _SoapySDR.ArgInfo_description_get
if _newclass:
description = _swig_property(_SoapySDR.ArgInfo_description_get, _SoapySDR.ArgInfo_description_set)
__swig_setmethods__["units"] = _SoapySDR.ArgInfo_units_set
__swig_getmethods__["units"] = _SoapySDR.ArgInfo_units_get
if _newclass:
units = _swig_property(_SoapySDR.ArgInfo_units_get, _SoapySDR.ArgInfo_units_set)
BOOL = _SoapySDR.ArgInfo_BOOL
INT = _SoapySDR.ArgInfo_INT
FLOAT = _SoapySDR.ArgInfo_FLOAT
STRING = _SoapySDR.ArgInfo_STRING
__swig_setmethods__["type"] = _SoapySDR.ArgInfo_type_set
__swig_getmethods__["type"] = _SoapySDR.ArgInfo_type_get
if _newclass:
type = _swig_property(_SoapySDR.ArgInfo_type_get, _SoapySDR.ArgInfo_type_set)
__swig_setmethods__["range"] = _SoapySDR.ArgInfo_range_set
__swig_getmethods__["range"] = _SoapySDR.ArgInfo_range_get
if _newclass:
range = _swig_property(_SoapySDR.ArgInfo_range_get, _SoapySDR.ArgInfo_range_set)
__swig_setmethods__["options"] = _SoapySDR.ArgInfo_options_set
__swig_getmethods__["options"] = _SoapySDR.ArgInfo_options_get
if _newclass:
options = _swig_property(_SoapySDR.ArgInfo_options_get, _SoapySDR.ArgInfo_options_set)
__swig_setmethods__["optionNames"] = _SoapySDR.ArgInfo_optionNames_set
__swig_getmethods__["optionNames"] = _SoapySDR.ArgInfo_optionNames_get
if _newclass:
optionNames = _swig_property(_SoapySDR.ArgInfo_optionNames_get, _SoapySDR.ArgInfo_optionNames_set)
__swig_destroy__ = _SoapySDR.delete_ArgInfo
__del__ = lambda self: None
ArgInfo_swigregister = _SoapySDR.ArgInfo_swigregister
ArgInfo_swigregister(ArgInfo)
class SoapySDRUnsignedList(_object):
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, SoapySDRUnsignedList, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, SoapySDRUnsignedList, name)
__repr__ = _swig_repr
def iterator(self):
return _SoapySDR.SoapySDRUnsignedList_iterator(self)
def __iter__(self):
return self.iterator()
def __nonzero__(self):
return _SoapySDR.SoapySDRUnsignedList___nonzero__(self)
def __bool__(self):
return _SoapySDR.SoapySDRUnsignedList___bool__(self)
def __len__(self):
return _SoapySDR.SoapySDRUnsignedList___len__(self)
def __getslice__(self, i, j):
return _SoapySDR.SoapySDRUnsignedList___getslice__(self, i, j)
def __setslice__(self, *args):
return _SoapySDR.SoapySDRUnsignedList___setslice__(self, *args)
def __delslice__(self, i, j):
return _SoapySDR.SoapySDRUnsignedList___delslice__(self, i, j)
def __delitem__(self, *args):
return _SoapySDR.SoapySDRUnsignedList___delitem__(self, *args)
def __getitem__(self, *args):
return _SoapySDR.SoapySDRUnsignedList___getitem__(self, *args)
def __setitem__(self, *args):
return _SoapySDR.SoapySDRUnsignedList___setitem__(self, *args)
def pop(self):
return _SoapySDR.SoapySDRUnsignedList_pop(self)
def append(self, x):
return _SoapySDR.SoapySDRUnsignedList_append(self, x)
def empty(self):
return _SoapySDR.SoapySDRUnsignedList_empty(self)
def size(self):
return _SoapySDR.SoapySDRUnsignedList_size(self)
def swap(self, v):
return _SoapySDR.SoapySDRUnsignedList_swap(self, v)
def begin(self):
return _SoapySDR.SoapySDRUnsignedList_begin(self)
def end(self):
return _SoapySDR.SoapySDRUnsignedList_end(self)
def rbegin(self):
return _SoapySDR.SoapySDRUnsignedList_rbegin(self)
def rend(self):
return _SoapySDR.SoapySDRUnsignedList_rend(self)
def clear(self):
return _SoapySDR.SoapySDRUnsignedList_clear(self)
def get_allocator(self):
return _SoapySDR.SoapySDRUnsignedList_get_allocator(self)
def pop_back(self):
return _SoapySDR.SoapySDRUnsignedList_pop_back(self)
def erase(self, *args):
return _SoapySDR.SoapySDRUnsignedList_erase(self, *args)
def __init__(self, *args):
this = _SoapySDR.new_SoapySDRUnsignedList(*args)
try:
self.this.append(this)
except __builtin__.Exception:
self.this = this
def push_back(self, x):
return _SoapySDR.SoapySDRUnsignedList_push_back(self, x)
def front(self):
return _SoapySDR.SoapySDRUnsignedList_front(self)
def back(self):
return _SoapySDR.SoapySDRUnsignedList_back(self)
def assign(self, n, x):
return _SoapySDR.SoapySDRUnsignedList_assign(self, n, x)
def resize(self, *args):
return _SoapySDR.SoapySDRUnsignedList_resize(self, *args)
def insert(self, *args):
return _SoapySDR.SoapySDRUnsignedList_insert(self, *args)
def reserve(self, n):
return _SoapySDR.SoapySDRUnsignedList_reserve(self, n)
def capacity(self):
return _SoapySDR.SoapySDRUnsignedList_capacity(self)
__swig_destroy__ = _SoapySDR.delete_SoapySDRUnsignedList
__del__ = lambda self: None
SoapySDRUnsignedList_swigregister = _SoapySDR.SoapySDRUnsignedList_swigregister
SoapySDRUnsignedList_swigregister(SoapySDRUnsignedList)
class SoapySDRKwargs(_object):
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, SoapySDRKwargs, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, SoapySDRKwargs, name)
__repr__ = _swig_repr
def iterator(self):
return _SoapySDR.SoapySDRKwargs_iterator(self)
def __iter__(self):
return self.iterator()
def __nonzero__(self):
return _SoapySDR.SoapySDRKwargs___nonzero__(self)
def __bool__(self):
return _SoapySDR.SoapySDRKwargs___bool__(self)
def __len__(self):
return _SoapySDR.SoapySDRKwargs___len__(self)
def __iter__(self):
return self.key_iterator()
def iterkeys(self):
return self.key_iterator()
def itervalues(self):
return self.value_iterator()
def iteritems(self):
return self.iterator()
def __getitem__(self, key):
return _SoapySDR.SoapySDRKwargs___getitem__(self, key)
def __delitem__(self, key):
return _SoapySDR.SoapySDRKwargs___delitem__(self, key)
def has_key(self, key):
return _SoapySDR.SoapySDRKwargs_has_key(self, key)
def keys(self):
return _SoapySDR.SoapySDRKwargs_keys(self)
def values(self):
return _SoapySDR.SoapySDRKwargs_values(self)
def items(self):
return _SoapySDR.SoapySDRKwargs_items(self)
def __contains__(self, key):
return _SoapySDR.SoapySDRKwargs___contains__(self, key)
def key_iterator(self):
return _SoapySDR.SoapySDRKwargs_key_iterator(self)
def value_iterator(self):
return _SoapySDR.SoapySDRKwargs_value_iterator(self)
def __setitem__(self, *args):
return _SoapySDR.SoapySDRKwargs___setitem__(self, *args)
def asdict(self):
return _SoapySDR.SoapySDRKwargs_asdict(self)
def __init__(self, *args):
this = _SoapySDR.new_SoapySDRKwargs(*args)
try:
self.this.append(this)
except __builtin__.Exception:
self.this = this
def empty(self):
return _SoapySDR.SoapySDRKwargs_empty(self)
def size(self):
return _SoapySDR.SoapySDRKwargs_size(self)
def swap(self, v):
return _SoapySDR.SoapySDRKwargs_swap(self, v)
def begin(self):
return _SoapySDR.SoapySDRKwargs_begin(self)
def end(self):
return _SoapySDR.SoapySDRKwargs_end(self)
def rbegin(self):
return _SoapySDR.SoapySDRKwargs_rbegin(self)
def rend(self):
return _SoapySDR.SoapySDRKwargs_rend(self)
def clear(self):
return _SoapySDR.SoapySDRKwargs_clear(self)
def get_allocator(self):
return _SoapySDR.SoapySDRKwargs_get_allocator(self)
def count(self, x):
return _SoapySDR.SoapySDRKwargs_count(self, x)
def erase(self, *args):
return _SoapySDR.SoapySDRKwargs_erase(self, *args)
def find(self, x):
return _SoapySDR.SoapySDRKwargs_find(self, x)
def lower_bound(self, x):
return _SoapySDR.SoapySDRKwargs_lower_bound(self, x)
def upper_bound(self, x):
return _SoapySDR.SoapySDRKwargs_upper_bound(self, x)
def __str__(self):
out = list()
for k, v in self.iteritems():
out.append("%s=%s"%(k, v))
return '{'+(', '.join(out))+'}'
__swig_destroy__ = _SoapySDR.delete_SoapySDRKwargs
__del__ = lambda self: None
SoapySDRKwargs_swigregister = _SoapySDR.SoapySDRKwargs_swigregister
SoapySDRKwargs_swigregister(SoapySDRKwargs)
class SoapySDRKwargsList(_object):
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, SoapySDRKwargsList, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, SoapySDRKwargsList, name)
__repr__ = _swig_repr
def iterator(self):
return _SoapySDR.SoapySDRKwargsList_iterator(self)
def __iter__(self):
return self.iterator()
def __nonzero__(self):
return _SoapySDR.SoapySDRKwargsList___nonzero__(self)
def __bool__(self):
return _SoapySDR.SoapySDRKwargsList___bool__(self)
def __len__(self):
return _SoapySDR.SoapySDRKwargsList___len__(self)
def __getslice__(self, i, j):
return _SoapySDR.SoapySDRKwargsList___getslice__(self, i, j)
def __setslice__(self, *args):
return _SoapySDR.SoapySDRKwargsList___setslice__(self, *args)
def __delslice__(self, i, j):
return _SoapySDR.SoapySDRKwargsList___delslice__(self, i, j)
def __delitem__(self, *args):
return _SoapySDR.SoapySDRKwargsList___delitem__(self, *args)
def __getitem__(self, *args):
return _SoapySDR.SoapySDRKwargsList___getitem__(self, *args)
def __setitem__(self, *args):
return _SoapySDR.SoapySDRKwargsList___setitem__(self, *args)
def pop(self):
return _SoapySDR.SoapySDRKwargsList_pop(self)
def append(self, x):
return _SoapySDR.SoapySDRKwargsList_append(self, x)
def empty(self):
return _SoapySDR.SoapySDRKwargsList_empty(self)
def size(self):
return _SoapySDR.SoapySDRKwargsList_size(self)
def swap(self, v):
return _SoapySDR.SoapySDRKwargsList_swap(self, v)
def begin(self):
return _SoapySDR.SoapySDRKwargsList_begin(self)
def end(self):
return _SoapySDR.SoapySDRKwargsList_end(self)
def rbegin(self):
return _SoapySDR.SoapySDRKwargsList_rbegin(self)
def rend(self):
return _SoapySDR.SoapySDRKwargsList_rend(self)
def clear(self):
return _SoapySDR.SoapySDRKwargsList_clear(self)
def get_allocator(self):
return _SoapySDR.SoapySDRKwargsList_get_allocator(self)
def pop_back(self):
return _SoapySDR.SoapySDRKwargsList_pop_back(self)
def erase(self, *args):
return _SoapySDR.SoapySDRKwargsList_erase(self, *args)
def __init__(self, *args):
this = _SoapySDR.new_SoapySDRKwargsList(*args)
try:
self.this.append(this)
except __builtin__.Exception:
self.this = this
def push_back(self, x):
return _SoapySDR.SoapySDRKwargsList_push_back(self, x)
def front(self):
return _SoapySDR.SoapySDRKwargsList_front(self)
def back(self):
return _SoapySDR.SoapySDRKwargsList_back(self)
def assign(self, n, x):
return _SoapySDR.SoapySDRKwargsList_assign(self, n, x)
def resize(self, *args):
return _SoapySDR.SoapySDRKwargsList_resize(self, *args)
def insert(self, *args):
return _SoapySDR.SoapySDRKwargsList_insert(self, *args)
def reserve(self, n):
return _SoapySDR.SoapySDRKwargsList_reserve(self, n)
def capacity(self):
return _SoapySDR.SoapySDRKwargsList_capacity(self)
__swig_destroy__ = _SoapySDR.delete_SoapySDRKwargsList
__del__ = lambda self: None
SoapySDRKwargsList_swigregister = _SoapySDR.SoapySDRKwargsList_swigregister
SoapySDRKwargsList_swigregister(SoapySDRKwargsList)
class SoapySDRArgInfoList(_object):
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, SoapySDRArgInfoList, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, SoapySDRArgInfoList, name)
__repr__ = _swig_repr
def iterator(self):
return _SoapySDR.SoapySDRArgInfoList_iterator(self)
def __iter__(self):
return self.iterator()
def __nonzero__(self):
return _SoapySDR.SoapySDRArgInfoList___nonzero__(self)
def __bool__(self):
return _SoapySDR.SoapySDRArgInfoList___bool__(self)
def __len__(self):
return _SoapySDR.SoapySDRArgInfoList___len__(self)
def __getslice__(self, i, j):
return _SoapySDR.SoapySDRArgInfoList___getslice__(self, i, j)
def __setslice__(self, *args):
return _SoapySDR.SoapySDRArgInfoList___setslice__(self, *args)
def __delslice__(self, i, j):
return _SoapySDR.SoapySDRArgInfoList___delslice__(self, i, j)
def __delitem__(self, *args):
return _SoapySDR.SoapySDRArgInfoList___delitem__(self, *args)
def __getitem__(self, *args):
return _SoapySDR.SoapySDRArgInfoList___getitem__(self, *args)
def __setitem__(self, *args):
return _SoapySDR.SoapySDRArgInfoList___setitem__(self, *args)
def pop(self):
return _SoapySDR.SoapySDRArgInfoList_pop(self)
def append(self, x):
return _SoapySDR.SoapySDRArgInfoList_append(self, x)
def empty(self):
return _SoapySDR.SoapySDRArgInfoList_empty(self)
def size(self):
return _SoapySDR.SoapySDRArgInfoList_size(self)
def swap(self, v):
return _SoapySDR.SoapySDRArgInfoList_swap(self, v)
def begin(self):
return _SoapySDR.SoapySDRArgInfoList_begin(self)
def end(self):
return _SoapySDR.SoapySDRArgInfoList_end(self)
def rbegin(self):
return _SoapySDR.SoapySDRArgInfoList_rbegin(self)
def rend(self):
return _SoapySDR.SoapySDRArgInfoList_rend(self)
def clear(self):
return _SoapySDR.SoapySDRArgInfoList_clear(self)
def get_allocator(self):
return _SoapySDR.SoapySDRArgInfoList_get_allocator(self)
def pop_back(self):
return _SoapySDR.SoapySDRArgInfoList_pop_back(self)
def erase(self, *args):
return _SoapySDR.SoapySDRArgInfoList_erase(self, *args)
def __init__(self, *args):
this = _SoapySDR.new_SoapySDRArgInfoList(*args)
try:
self.this.append(this)
except __builtin__.Exception:
self.this = this
def push_back(self, x):
return _SoapySDR.SoapySDRArgInfoList_push_back(self, x)
def front(self):
return _SoapySDR.SoapySDRArgInfoList_front(self)
def back(self):
return _SoapySDR.SoapySDRArgInfoList_back(self)
def assign(self, n, x):
return _SoapySDR.SoapySDRArgInfoList_assign(self, n, x)
def resize(self, *args):
return _SoapySDR.SoapySDRArgInfoList_resize(self, *args)
def insert(self, *args):
return _SoapySDR.SoapySDRArgInfoList_insert(self, *args)
def reserve(self, n):
return _SoapySDR.SoapySDRArgInfoList_reserve(self, n)
def capacity(self):
return _SoapySDR.SoapySDRArgInfoList_capacity(self)
__swig_destroy__ = _SoapySDR.delete_SoapySDRArgInfoList
__del__ = lambda self: None
SoapySDRArgInfoList_swigregister = _SoapySDR.SoapySDRArgInfoList_swigregister
SoapySDRArgInfoList_swigregister(SoapySDRArgInfoList)
class SoapySDRStringList(_object):
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, SoapySDRStringList, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, SoapySDRStringList, name)
__repr__ = _swig_repr
def iterator(self):
return _SoapySDR.SoapySDRStringList_iterator(self)
def __iter__(self):
return self.iterator()
def __nonzero__(self):
return _SoapySDR.SoapySDRStringList___nonzero__(self)
def __bool__(self):
return _SoapySDR.SoapySDRStringList___bool__(self)
def __len__(self):
return _SoapySDR.SoapySDRStringList___len__(self)
def __getslice__(self, i, j):
return _SoapySDR.SoapySDRStringList___getslice__(self, i, j)
def __setslice__(self, *args):
return _SoapySDR.SoapySDRStringList___setslice__(self, *args)
def __delslice__(self, i, j):
return _SoapySDR.SoapySDRStringList___delslice__(self, i, j)
def __delitem__(self, *args):
return _SoapySDR.SoapySDRStringList___delitem__(self, *args)
def __getitem__(self, *args):
return _SoapySDR.SoapySDRStringList___getitem__(self, *args)
def __setitem__(self, *args):
return _SoapySDR.SoapySDRStringList___setitem__(self, *args)
def pop(self):
return _SoapySDR.SoapySDRStringList_pop(self)
def append(self, x):
return _SoapySDR.SoapySDRStringList_append(self, x)
def empty(self):
return _SoapySDR.SoapySDRStringList_empty(self)
def size(self):
return _SoapySDR.SoapySDRStringList_size(self)
def swap(self, v):
return _SoapySDR.SoapySDRStringList_swap(self, v)
def begin(self):
return _SoapySDR.SoapySDRStringList_begin(self)
def end(self):
return _SoapySDR.SoapySDRStringList_end(self)
def rbegin(self):
return _SoapySDR.SoapySDRStringList_rbegin(self)
def rend(self):
return _SoapySDR.SoapySDRStringList_rend(self)
def clear(self):
return _SoapySDR.SoapySDRStringList_clear(self)
def get_allocator(self):
return _SoapySDR.SoapySDRStringList_get_allocator(self)
def pop_back(self):
return _SoapySDR.SoapySDRStringList_pop_back(self)
def erase(self, *args):
return _SoapySDR.SoapySDRStringList_erase(self, *args)
def __init__(self, *args):
this = _SoapySDR.new_SoapySDRStringList(*args)
try:
self.this.append(this)
except __builtin__.Exception:
self.this = this
def push_back(self, x):
return _SoapySDR.SoapySDRStringList_push_back(self, x)
def front(self):
return _SoapySDR.SoapySDRStringList_front(self)
def back(self):
return _SoapySDR.SoapySDRStringList_back(self)
def assign(self, n, x):
return _SoapySDR.SoapySDRStringList_assign(self, n, x)
def resize(self, *args):
return _SoapySDR.SoapySDRStringList_resize(self, *args)
def insert(self, *args):
return _SoapySDR.SoapySDRStringList_insert(self, *args)
def reserve(self, n):
return _SoapySDR.SoapySDRStringList_reserve(self, n)
def capacity(self):
return _SoapySDR.SoapySDRStringList_capacity(self)
__swig_destroy__ = _SoapySDR.delete_SoapySDRStringList
__del__ = lambda self: None
SoapySDRStringList_swigregister = _SoapySDR.SoapySDRStringList_swigregister
SoapySDRStringList_swigregister(SoapySDRStringList)
class SoapySDRRangeList(_object):
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, SoapySDRRangeList, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, SoapySDRRangeList, name)
__repr__ = _swig_repr
def iterator(self):
return _SoapySDR.SoapySDRRangeList_iterator(self)
def __iter__(self):
return self.iterator()
def __nonzero__(self):
return _SoapySDR.SoapySDRRangeList___nonzero__(self)
def __bool__(self):
return _SoapySDR.SoapySDRRangeList___bool__(self)
def __len__(self):
return _SoapySDR.SoapySDRRangeList___len__(self)
def __getslice__(self, i, j):
return _SoapySDR.SoapySDRRangeList___getslice__(self, i, j)
def __setslice__(self, *args):
return _SoapySDR.SoapySDRRangeList___setslice__(self, *args)
def __delslice__(self, i, j):
return _SoapySDR.SoapySDRRangeList___delslice__(self, i, j)
def __delitem__(self, *args):
return _SoapySDR.SoapySDRRangeList___delitem__(self, *args)
def __getitem__(self, *args):
return _SoapySDR.SoapySDRRangeList___getitem__(self, *args)
def __setitem__(self, *args):
return _SoapySDR.SoapySDRRangeList___setitem__(self, *args)
def pop(self):
return _SoapySDR.SoapySDRRangeList_pop(self)
def append(self, x):
return _SoapySDR.SoapySDRRangeList_append(self, x)
def empty(self):
return _SoapySDR.SoapySDRRangeList_empty(self)
def size(self):
return _SoapySDR.SoapySDRRangeList_size(self)
def swap(self, v):
return _SoapySDR.SoapySDRRangeList_swap(self, v)
def begin(self):
return _SoapySDR.SoapySDRRangeList_begin(self)
def end(self):
return _SoapySDR.SoapySDRRangeList_end(self)
def rbegin(self):
return _SoapySDR.SoapySDRRangeList_rbegin(self)
def rend(self):
return _SoapySDR.SoapySDRRangeList_rend(self)
def clear(self):
return _SoapySDR.SoapySDRRangeList_clear(self)
def get_allocator(self):
return _SoapySDR.SoapySDRRangeList_get_allocator(self)
def pop_back(self):
return _SoapySDR.SoapySDRRangeList_pop_back(self)
def erase(self, *args):
return _SoapySDR.SoapySDRRangeList_erase(self, *args)
def __init__(self, *args):
this = _SoapySDR.new_SoapySDRRangeList(*args)
try:
self.this.append(this)
except __builtin__.Exception:
self.this = this
def push_back(self, x):
return _SoapySDR.SoapySDRRangeList_push_back(self, x)
def front(self):
return _SoapySDR.SoapySDRRangeList_front(self)
def back(self):
return _SoapySDR.SoapySDRRangeList_back(self)
def assign(self, n, x):
return _SoapySDR.SoapySDRRangeList_assign(self, n, x)
def resize(self, *args):
return _SoapySDR.SoapySDRRangeList_resize(self, *args)
def insert(self, *args):
return _SoapySDR.SoapySDRRangeList_insert(self, *args)
def reserve(self, n):
return _SoapySDR.SoapySDRRangeList_reserve(self, n)
def capacity(self):
return _SoapySDR.SoapySDRRangeList_capacity(self)
__swig_destroy__ = _SoapySDR.delete_SoapySDRRangeList
__del__ = lambda self: None
SoapySDRRangeList_swigregister = _SoapySDR.SoapySDRRangeList_swigregister
SoapySDRRangeList_swigregister(SoapySDRRangeList)
class SoapySDRSizeList(_object):
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, SoapySDRSizeList, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, SoapySDRSizeList, name)
__repr__ = _swig_repr
def iterator(self):
return _SoapySDR.SoapySDRSizeList_iterator(self)
def __iter__(self):
return self.iterator()
def __nonzero__(self):
return _SoapySDR.SoapySDRSizeList___nonzero__(self)
def __bool__(self):
return _SoapySDR.SoapySDRSizeList___bool__(self)
def __len__(self):
return _SoapySDR.SoapySDRSizeList___len__(self)
def __getslice__(self, i, j):
return _SoapySDR.SoapySDRSizeList___getslice__(self, i, j)
def __setslice__(self, *args):
return _SoapySDR.SoapySDRSizeList___setslice__(self, *args)
def __delslice__(self, i, j):
return _SoapySDR.SoapySDRSizeList___delslice__(self, i, j)
def __delitem__(self, *args):
return _SoapySDR.SoapySDRSizeList___delitem__(self, *args)
def __getitem__(self, *args):
return _SoapySDR.SoapySDRSizeList___getitem__(self, *args)
def __setitem__(self, *args):
return _SoapySDR.SoapySDRSizeList___setitem__(self, *args)
def pop(self):
return _SoapySDR.SoapySDRSizeList_pop(self)
def append(self, x):
return _SoapySDR.SoapySDRSizeList_append(self, x)
def empty(self):
return _SoapySDR.SoapySDRSizeList_empty(self)
def size(self):
return _SoapySDR.SoapySDRSizeList_size(self)
def swap(self, v):
return _SoapySDR.SoapySDRSizeList_swap(self, v)
def begin(self):
return _SoapySDR.SoapySDRSizeList_begin(self)
def end(self):
return _SoapySDR.SoapySDRSizeList_end(self)
def rbegin(self):
return _SoapySDR.SoapySDRSizeList_rbegin(self)
def rend(self):
return _SoapySDR.SoapySDRSizeList_rend(self)
def clear(self):
return _SoapySDR.SoapySDRSizeList_clear(self)
def get_allocator(self):
return _SoapySDR.SoapySDRSizeList_get_allocator(self)
def pop_back(self):
return _SoapySDR.SoapySDRSizeList_pop_back(self)
def erase(self, *args):
return _SoapySDR.SoapySDRSizeList_erase(self, *args)
def __init__(self, *args):
this = _SoapySDR.new_SoapySDRSizeList(*args)
try:
self.this.append(this)
except __builtin__.Exception:
self.this = this
def push_back(self, x):
return _SoapySDR.SoapySDRSizeList_push_back(self, x)
def front(self):
return _SoapySDR.SoapySDRSizeList_front(self)
def back(self):
return _SoapySDR.SoapySDRSizeList_back(self)
def assign(self, n, x):
return _SoapySDR.SoapySDRSizeList_assign(self, n, x)
def resize(self, *args):
return _SoapySDR.SoapySDRSizeList_resize(self, *args)
def insert(self, *args):
return _SoapySDR.SoapySDRSizeList_insert(self, *args)
def reserve(self, n):
return _SoapySDR.SoapySDRSizeList_reserve(self, n)
def capacity(self):
return _SoapySDR.SoapySDRSizeList_capacity(self)
__swig_destroy__ = _SoapySDR.delete_SoapySDRSizeList
__del__ = lambda self: None
SoapySDRSizeList_swigregister = _SoapySDR.SoapySDRSizeList_swigregister
SoapySDRSizeList_swigregister(SoapySDRSizeList)
class SoapySDRDoubleList(_object):
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, SoapySDRDoubleList, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, SoapySDRDoubleList, name)
__repr__ = _swig_repr
def iterator(self):
return _SoapySDR.SoapySDRDoubleList_iterator(self)
def __iter__(self):
return self.iterator()
def __nonzero__(self):
return _SoapySDR.SoapySDRDoubleList___nonzero__(self)
def __bool__(self):
return _SoapySDR.SoapySDRDoubleList___bool__(self)
def __len__(self):
return _SoapySDR.SoapySDRDoubleList___len__(self)
def __getslice__(self, i, j):
return _SoapySDR.SoapySDRDoubleList___getslice__(self, i, j)
def __setslice__(self, *args):
return _SoapySDR.SoapySDRDoubleList___setslice__(self, *args)
def __delslice__(self, i, j):
return _SoapySDR.SoapySDRDoubleList___delslice__(self, i, j)
def __delitem__(self, *args):
return _SoapySDR.SoapySDRDoubleList___delitem__(self, *args)
def __getitem__(self, *args):
return _SoapySDR.SoapySDRDoubleList___getitem__(self, *args)
def __setitem__(self, *args):
return _SoapySDR.SoapySDRDoubleList___setitem__(self, *args)
def pop(self):
return _SoapySDR.SoapySDRDoubleList_pop(self)
def append(self, x):
return _SoapySDR.SoapySDRDoubleList_append(self, x)
def empty(self):
return _SoapySDR.SoapySDRDoubleList_empty(self)
def size(self):
return _SoapySDR.SoapySDRDoubleList_size(self)
def swap(self, v):
return _SoapySDR.SoapySDRDoubleList_swap(self, v)
def begin(self):
return _SoapySDR.SoapySDRDoubleList_begin(self)
def end(self):
return _SoapySDR.SoapySDRDoubleList_end(self)
def rbegin(self):
return _SoapySDR.SoapySDRDoubleList_rbegin(self)
def rend(self):
return _SoapySDR.SoapySDRDoubleList_rend(self)
def clear(self):
return _SoapySDR.SoapySDRDoubleList_clear(self)
def get_allocator(self):
return _SoapySDR.SoapySDRDoubleList_get_allocator(self)
def pop_back(self):
return _SoapySDR.SoapySDRDoubleList_pop_back(self)
def erase(self, *args):
return _SoapySDR.SoapySDRDoubleList_erase(self, *args)
def __init__(self, *args):
this = _SoapySDR.new_SoapySDRDoubleList(*args)
try:
self.this.append(this)
except __builtin__.Exception:
self.this = this
def push_back(self, x):
return _SoapySDR.SoapySDRDoubleList_push_back(self, x)
def front(self):
return _SoapySDR.SoapySDRDoubleList_front(self)
def back(self):
return _SoapySDR.SoapySDRDoubleList_back(self)
def assign(self, n, x):
return _SoapySDR.SoapySDRDoubleList_assign(self, n, x)
def resize(self, *args):
return _SoapySDR.SoapySDRDoubleList_resize(self, *args)
def insert(self, *args):
return _SoapySDR.SoapySDRDoubleList_insert(self, *args)
def reserve(self, n):
return _SoapySDR.SoapySDRDoubleList_reserve(self, n)
def capacity(self):
return _SoapySDR.SoapySDRDoubleList_capacity(self)
__swig_destroy__ = _SoapySDR.delete_SoapySDRDoubleList
__del__ = lambda self: None
SoapySDRDoubleList_swigregister = _SoapySDR.SoapySDRDoubleList_swigregister
SoapySDRDoubleList_swigregister(SoapySDRDoubleList)
class StreamResult(_object):
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, StreamResult, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, StreamResult, name)
__repr__ = _swig_repr
def __init__(self):
this = _SoapySDR.new_StreamResult()
try:
self.this.append(this)
except __builtin__.Exception:
self.this = this
__swig_setmethods__["ret"] = _SoapySDR.StreamResult_ret_set
__swig_getmethods__["ret"] = _SoapySDR.StreamResult_ret_get
if _newclass:
ret = _swig_property(_SoapySDR.StreamResult_ret_get, _SoapySDR.StreamResult_ret_set)
__swig_setmethods__["flags"] = _SoapySDR.StreamResult_flags_set
__swig_getmethods__["flags"] = _SoapySDR.StreamResult_flags_get
if _newclass:
flags = _swig_property(_SoapySDR.StreamResult_flags_get, _SoapySDR.StreamResult_flags_set)
__swig_setmethods__["timeNs"] = _SoapySDR.StreamResult_timeNs_set
__swig_getmethods__["timeNs"] = _SoapySDR.StreamResult_timeNs_get
if _newclass:
timeNs = _swig_property(_SoapySDR.StreamResult_timeNs_get, _SoapySDR.StreamResult_timeNs_set)
__swig_setmethods__["chanMask"] = _SoapySDR.StreamResult_chanMask_set
__swig_getmethods__["chanMask"] = _SoapySDR.StreamResult_chanMask_get
if _newclass:
chanMask = _swig_property(_SoapySDR.StreamResult_chanMask_get, _SoapySDR.StreamResult_chanMask_set)
def __str__(self):
return "ret=%s, flags=%s, timeNs=%s"%(self.ret, self.flags, self.timeNs)
__swig_destroy__ = _SoapySDR.delete_StreamResult
__del__ = lambda self: None
StreamResult_swigregister = _SoapySDR.StreamResult_swigregister
StreamResult_swigregister(StreamResult)
SOAPY_SDR_TX = _SoapySDR.SOAPY_SDR_TX
SOAPY_SDR_RX = _SoapySDR.SOAPY_SDR_RX
SOAPY_SDR_END_BURST = _SoapySDR.SOAPY_SDR_END_BURST
SOAPY_SDR_HAS_TIME = _SoapySDR.SOAPY_SDR_HAS_TIME
SOAPY_SDR_END_ABRUPT = _SoapySDR.SOAPY_SDR_END_ABRUPT
SOAPY_SDR_ONE_PACKET = _SoapySDR.SOAPY_SDR_ONE_PACKET
SOAPY_SDR_MORE_FRAGMENTS = _SoapySDR.SOAPY_SDR_MORE_FRAGMENTS
SOAPY_SDR_WAIT_TRIGGER = _SoapySDR.SOAPY_SDR_WAIT_TRIGGER
def SoapySDR_errToStr(errorCode):
return _SoapySDR.SoapySDR_errToStr(errorCode)
SoapySDR_errToStr = _SoapySDR.SoapySDR_errToStr
SOAPY_SDR_TIMEOUT = _SoapySDR.SOAPY_SDR_TIMEOUT
SOAPY_SDR_STREAM_ERROR = _SoapySDR.SOAPY_SDR_STREAM_ERROR
SOAPY_SDR_CORRUPTION = _SoapySDR.SOAPY_SDR_CORRUPTION
SOAPY_SDR_OVERFLOW = _SoapySDR.SOAPY_SDR_OVERFLOW
SOAPY_SDR_NOT_SUPPORTED = _SoapySDR.SOAPY_SDR_NOT_SUPPORTED
SOAPY_SDR_TIME_ERROR = _SoapySDR.SOAPY_SDR_TIME_ERROR
SOAPY_SDR_UNDERFLOW = _SoapySDR.SOAPY_SDR_UNDERFLOW
SOAPY_SDR_API_VERSION = _SoapySDR.SOAPY_SDR_API_VERSION
SOAPY_SDR_ABI_VERSION = _SoapySDR.SOAPY_SDR_ABI_VERSION
def SoapySDR_getAPIVersion():
return _SoapySDR.SoapySDR_getAPIVersion()
SoapySDR_getAPIVersion = _SoapySDR.SoapySDR_getAPIVersion
def SoapySDR_getABIVersion():
return _SoapySDR.SoapySDR_getABIVersion()
SoapySDR_getABIVersion = _SoapySDR.SoapySDR_getABIVersion
def SoapySDR_getLibVersion():
return _SoapySDR.SoapySDR_getLibVersion()
SoapySDR_getLibVersion = _SoapySDR.SoapySDR_getLibVersion
SOAPY_SDR_CF64 = _SoapySDR.SOAPY_SDR_CF64
SOAPY_SDR_CF32 = _SoapySDR.SOAPY_SDR_CF32
SOAPY_SDR_CS32 = _SoapySDR.SOAPY_SDR_CS32
SOAPY_SDR_CU32 = _SoapySDR.SOAPY_SDR_CU32
SOAPY_SDR_CS16 = _SoapySDR.SOAPY_SDR_CS16
SOAPY_SDR_CU16 = _SoapySDR.SOAPY_SDR_CU16
SOAPY_SDR_CS12 = _SoapySDR.SOAPY_SDR_CS12
SOAPY_SDR_CU12 = _SoapySDR.SOAPY_SDR_CU12
SOAPY_SDR_CS8 = _SoapySDR.SOAPY_SDR_CS8
SOAPY_SDR_CU8 = _SoapySDR.SOAPY_SDR_CU8
SOAPY_SDR_CS4 = _SoapySDR.SOAPY_SDR_CS4
SOAPY_SDR_CU4 = _SoapySDR.SOAPY_SDR_CU4
SOAPY_SDR_F64 = _SoapySDR.SOAPY_SDR_F64
SOAPY_SDR_F32 = _SoapySDR.SOAPY_SDR_F32
SOAPY_SDR_S32 = _SoapySDR.SOAPY_SDR_S32
SOAPY_SDR_U32 = _SoapySDR.SOAPY_SDR_U32
SOAPY_SDR_S16 = _SoapySDR.SOAPY_SDR_S16
SOAPY_SDR_U16 = _SoapySDR.SOAPY_SDR_U16
SOAPY_SDR_S8 = _SoapySDR.SOAPY_SDR_S8
SOAPY_SDR_U8 = _SoapySDR.SOAPY_SDR_U8
def SoapySDR_formatToSize(format):
return _SoapySDR.SoapySDR_formatToSize(format)
SoapySDR_formatToSize = _SoapySDR.SoapySDR_formatToSize
SOAPY_SDR_FATAL = _SoapySDR.SOAPY_SDR_FATAL
SOAPY_SDR_CRITICAL = _SoapySDR.SOAPY_SDR_CRITICAL
SOAPY_SDR_ERROR = _SoapySDR.SOAPY_SDR_ERROR
SOAPY_SDR_WARNING = _SoapySDR.SOAPY_SDR_WARNING
SOAPY_SDR_NOTICE = _SoapySDR.SOAPY_SDR_NOTICE
SOAPY_SDR_INFO = _SoapySDR.SOAPY_SDR_INFO
SOAPY_SDR_DEBUG = _SoapySDR.SOAPY_SDR_DEBUG
SOAPY_SDR_TRACE = _SoapySDR.SOAPY_SDR_TRACE
SOAPY_SDR_SSI = _SoapySDR.SOAPY_SDR_SSI
def SoapySDR_log(logLevel, message):
return _SoapySDR.SoapySDR_log(logLevel, message)
SoapySDR_log = _SoapySDR.SoapySDR_log
def SoapySDR_setLogLevel(logLevel):
return _SoapySDR.SoapySDR_setLogLevel(logLevel)
SoapySDR_setLogLevel = _SoapySDR.SoapySDR_setLogLevel
def errToStr(errorCode):
return _SoapySDR.errToStr(errorCode)
errToStr = _SoapySDR.errToStr
def getAPIVersion():
return _SoapySDR.getAPIVersion()
getAPIVersion = _SoapySDR.getAPIVersion
def getABIVersion():
return _SoapySDR.getABIVersion()
getABIVersion = _SoapySDR.getABIVersion
def getLibVersion():
return _SoapySDR.getLibVersion()
getLibVersion = _SoapySDR.getLibVersion
def getRootPath():
return _SoapySDR.getRootPath()
getRootPath = _SoapySDR.getRootPath
def listSearchPaths():
return _SoapySDR.listSearchPaths()
listSearchPaths = _SoapySDR.listSearchPaths
def listModules(*args):
return _SoapySDR.listModules(*args)
listModules = _SoapySDR.listModules
def loadModule(path):
return _SoapySDR.loadModule(path)
loadModule = _SoapySDR.loadModule
def getLoaderResult(path):
return _SoapySDR.getLoaderResult(path)
getLoaderResult = _SoapySDR.getLoaderResult
def unloadModule(path):
return _SoapySDR.unloadModule(path)
unloadModule = _SoapySDR.unloadModule
def loadModules():
return _SoapySDR.loadModules()
loadModules = _SoapySDR.loadModules
def formatToSize(format):
return _SoapySDR.formatToSize(format)
formatToSize = _SoapySDR.formatToSize
def ticksToTimeNs(ticks, rate):
return _SoapySDR.ticksToTimeNs(ticks, rate)
ticksToTimeNs = _SoapySDR.ticksToTimeNs
def timeNsToTicks(timeNs, rate):
return _SoapySDR.timeNsToTicks(timeNs, rate)
timeNsToTicks = _SoapySDR.timeNsToTicks
def log(logLevel, message):
return _SoapySDR.log(logLevel, message)
log = _SoapySDR.log
def setLogLevel(logLevel):
return _SoapySDR.setLogLevel(logLevel)
setLogLevel = _SoapySDR.setLogLevel
class Device(_object):
__swig_setmethods__ = {}
__setattr__ = lambda self, name, value: _swig_setattr(self, Device, name, value)
__swig_getmethods__ = {}
__getattr__ = lambda self, name: _swig_getattr(self, Device, name)
def __init__(self, *args, **kwargs):
raise AttributeError("No constructor defined")
__repr__ = _swig_repr
__swig_destroy__ = _SoapySDR.delete_Device
__del__ = lambda self: None
if _newclass:
enumerate = staticmethod(_SoapySDR.Device_enumerate)
else:
enumerate = _SoapySDR.Device_enumerate
if _newclass:
make = staticmethod(_SoapySDR.Device_make)
else:
make = _SoapySDR.Device_make
if _newclass:
unmake = staticmethod(_SoapySDR.Device_unmake)
else:
unmake = _SoapySDR.Device_unmake
def getDriverKey(self):
return _SoapySDR.Device_getDriverKey(self)
def getHardwareKey(self):
return _SoapySDR.Device_getHardwareKey(self)
def getHardwareInfo(self):
return _SoapySDR.Device_getHardwareInfo(self)
def setFrontendMapping(self, direction, mapping):
return _SoapySDR.Device_setFrontendMapping(self, direction, mapping)
def getFrontendMapping(self, direction):
return _SoapySDR.Device_getFrontendMapping(self, direction)
def getNumChannels(self, direction):
return _SoapySDR.Device_getNumChannels(self, direction)
def getChannelInfo(self, direction, channel):
return _SoapySDR.Device_getChannelInfo(self, direction, channel)
def getFullDuplex(self, direction, channel):
return _SoapySDR.Device_getFullDuplex(self, direction, channel)
def getStreamFormats(self, direction, channel):
return _SoapySDR.Device_getStreamFormats(self, direction, channel)
def getNativeStreamFormat(self, direction, channel, fullScale):
return _SoapySDR.Device_getNativeStreamFormat(self, direction, channel, fullScale)
def getStreamArgsInfo(self, direction, channel):
return _SoapySDR.Device_getStreamArgsInfo(self, direction, channel)
def setupStream(self, *args):
return _SoapySDR.Device_setupStream(self, *args)
def closeStream(self, stream):
return _SoapySDR.Device_closeStream(self, stream)
def getStreamMTU(self, stream):
return _SoapySDR.Device_getStreamMTU(self, stream)
def activateStream(self, stream, flags=0, timeNs=0, numElems=0):
return _SoapySDR.Device_activateStream(self, stream, flags, timeNs, numElems)
def deactivateStream(self, stream, flags=0, timeNs=0):
return _SoapySDR.Device_deactivateStream(self, stream, flags, timeNs)
def readStream(self, stream, buffs, numElems, flags, timeNs, timeoutUs=100000):
return _SoapySDR.Device_readStream(self, stream, buffs, numElems, flags, timeNs, timeoutUs)
def writeStream(self, stream, buffs, numElems, flags, timeNs=0, timeoutUs=100000):
return _SoapySDR.Device_writeStream(self, stream, buffs, numElems, flags, timeNs, timeoutUs)
def readStreamStatus(self, stream, chanMask, flags, timeNs, timeoutUs=100000):
return _SoapySDR.Device_readStreamStatus(self, stream, chanMask, flags, timeNs, timeoutUs)
def getNumDirectAccessBuffers(self, stream):
return _SoapySDR.Device_getNumDirectAccessBuffers(self, stream)
def getDirectAccessBufferAddrs(self, stream, handle, buffs):
return _SoapySDR.Device_getDirectAccessBufferAddrs(self, stream, handle, buffs)
def acquireReadBuffer(self, stream, handle, buffs, flags, timeNs, timeoutUs=100000):
return _SoapySDR.Device_acquireReadBuffer(self, stream, handle, buffs, flags, timeNs, timeoutUs)
def releaseReadBuffer(self, stream, handle):
return _SoapySDR.Device_releaseReadBuffer(self, stream, handle)
def acquireWriteBuffer(self, stream, handle, buffs, timeoutUs=100000):
return _SoapySDR.Device_acquireWriteBuffer(self, stream, handle, buffs, timeoutUs)
def releaseWriteBuffer(self, stream, handle, numElems, flags, timeNs=0):
return _SoapySDR.Device_releaseWriteBuffer(self, stream, handle, numElems, flags, timeNs)
def listAntennas(self, direction, channel):
return _SoapySDR.Device_listAntennas(self, direction, channel)
def setAntenna(self, direction, channel, name):
return _SoapySDR.Device_setAntenna(self, direction, channel, name)
def getAntenna(self, direction, channel):
return _SoapySDR.Device_getAntenna(self, direction, channel)
def hasDCOffsetMode(self, direction, channel):
return _SoapySDR.Device_hasDCOffsetMode(self, direction, channel)
def setDCOffsetMode(self, direction, channel, automatic):
return _SoapySDR.Device_setDCOffsetMode(self, direction, channel, automatic)
def getDCOffsetMode(self, direction, channel):
return _SoapySDR.Device_getDCOffsetMode(self, direction, channel)
def hasDCOffset(self, direction, channel):
return _SoapySDR.Device_hasDCOffset(self, direction, channel)
def setDCOffset(self, direction, channel, offset):
return _SoapySDR.Device_setDCOffset(self, direction, channel, offset)
def getDCOffset(self, direction, channel):
return _SoapySDR.Device_getDCOffset(self, direction, channel)
def hasIQBalance(self, direction, channel):
return _SoapySDR.Device_hasIQBalance(self, direction, channel)
def setIQBalance(self, direction, channel, balance):
return _SoapySDR.Device_setIQBalance(self, direction, channel, balance)
def getIQBalance(self, direction, channel):
return _SoapySDR.Device_getIQBalance(self, direction, channel)
def hasFrequencyCorrection(self, direction, channel):
return _SoapySDR.Device_hasFrequencyCorrection(self, direction, channel)
def setFrequencyCorrection(self, direction, channel, value):
return _SoapySDR.Device_setFrequencyCorrection(self, direction, channel, value)
def getFrequencyCorrection(self, direction, channel):
return _SoapySDR.Device_getFrequencyCorrection(self, direction, channel)
def listGains(self, direction, channel):
return _SoapySDR.Device_listGains(self, direction, channel)
def hasGainMode(self, direction, channel):
return _SoapySDR.Device_hasGainMode(self, direction, channel)
def setGainMode(self, direction, channel, automatic):
return _SoapySDR.Device_setGainMode(self, direction, channel, automatic)
def getGainMode(self, direction, channel):
return _SoapySDR.Device_getGainMode(self, direction, channel)
def setGain(self, *args):
return _SoapySDR.Device_setGain(self, *args)
def getGain(self, *args):
return _SoapySDR.Device_getGain(self, *args)
def getGainRange(self, *args):
return _SoapySDR.Device_getGainRange(self, *args)
def setFrequency(self, *args):
return _SoapySDR.Device_setFrequency(self, *args)
def getFrequency(self, *args):
return _SoapySDR.Device_getFrequency(self, *args)
def listFrequencies(self, direction, channel):
return _SoapySDR.Device_listFrequencies(self, direction, channel)
def getFrequencyRange(self, *args):
return _SoapySDR.Device_getFrequencyRange(self, *args)
def getFrequencyArgsInfo(self, direction, channel):
return _SoapySDR.Device_getFrequencyArgsInfo(self, direction, channel)
def setSampleRate(self, direction, channel, rate):
return _SoapySDR.Device_setSampleRate(self, direction, channel, rate)
def getSampleRate(self, direction, channel):
return _SoapySDR.Device_getSampleRate(self, direction, channel)
def listSampleRates(self, direction, channel):
return _SoapySDR.Device_listSampleRates(self, direction, channel)
def getSampleRateRange(self, direction, channel):
return _SoapySDR.Device_getSampleRateRange(self, direction, channel)
def setBandwidth(self, direction, channel, bw):
return _SoapySDR.Device_setBandwidth(self, direction, channel, bw)
def getBandwidth(self, direction, channel):
return _SoapySDR.Device_getBandwidth(self, direction, channel)
def listBandwidths(self, direction, channel):
return _SoapySDR.Device_listBandwidths(self, direction, channel)
def getBandwidthRange(self, direction, channel):
return _SoapySDR.Device_getBandwidthRange(self, direction, channel)
def setMasterClockRate(self, rate):
return _SoapySDR.Device_setMasterClockRate(self, rate)
def getMasterClockRate(self):
return _SoapySDR.Device_getMasterClockRate(self)
def getMasterClockRates(self):
return _SoapySDR.Device_getMasterClockRates(self)
def listClockSources(self):
return _SoapySDR.Device_listClockSources(self)
def setClockSource(self, source):
return _SoapySDR.Device_setClockSource(self, source)
def getClockSource(self):
return _SoapySDR.Device_getClockSource(self)
def listTimeSources(self):
return _SoapySDR.Device_listTimeSources(self)
def setTimeSource(self, source):
return _SoapySDR.Device_setTimeSource(self, source)
def getTimeSource(self):
return _SoapySDR.Device_getTimeSource(self)
def hasHardwareTime(self, *args):
return _SoapySDR.Device_hasHardwareTime(self, *args)
def getHardwareTime(self, *args):
return _SoapySDR.Device_getHardwareTime(self, *args)
def setHardwareTime(self, *args):
return _SoapySDR.Device_setHardwareTime(self, *args)
def setCommandTime(self, *args):
return _SoapySDR.Device_setCommandTime(self, *args)
def listSensors(self, *args):
return _SoapySDR.Device_listSensors(self, *args)
def getSensorInfo(self, *args):
return _SoapySDR.Device_getSensorInfo(self, *args)
def readSensor(self, *args):
return _SoapySDR.Device_readSensor(self, *args)
def listRegisterInterfaces(self):
return _SoapySDR.Device_listRegisterInterfaces(self)
def writeRegister(self, *args):
return _SoapySDR.Device_writeRegister(self, *args)
def readRegister(self, *args):
return _SoapySDR.Device_readRegister(self, *args)
def writeRegisters(self, name, addr, value):
return _SoapySDR.Device_writeRegisters(self, name, addr, value)
def readRegisters(self, name, addr, length):
return _SoapySDR.Device_readRegisters(self, name, addr, length)
def getSettingInfo(self, *args):
return _SoapySDR.Device_getSettingInfo(self, *args)
def writeSetting(self, *args):
return _SoapySDR.Device_writeSetting(self, *args)
def readSetting(self, *args):
return _SoapySDR.Device_readSetting(self, *args)
def listGPIOBanks(self):
return _SoapySDR.Device_listGPIOBanks(self)
def writeGPIO(self, *args):
return _SoapySDR.Device_writeGPIO(self, *args)
def readGPIO(self, bank):
return _SoapySDR.Device_readGPIO(self, bank)
def writeGPIODir(self, *args):
return _SoapySDR.Device_writeGPIODir(self, *args)
def readGPIODir(self, bank):
return _SoapySDR.Device_readGPIODir(self, bank)
def writeI2C(self, addr, data):
return _SoapySDR.Device_writeI2C(self, addr, data)
def readI2C(self, addr, numBytes):
return _SoapySDR.Device_readI2C(self, addr, numBytes)
def transactSPI(self, addr, data, numBits):
return _SoapySDR.Device_transactSPI(self, addr, data, numBits)
def listUARTs(self):
return _SoapySDR.Device_listUARTs(self)
def writeUART(self, which, data):
return _SoapySDR.Device_writeUART(self, which, data)
def readUART(self, which, timeoutUs=100000):
return _SoapySDR.Device_readUART(self, which, timeoutUs)
def readStream__(self, stream, buffs, numElems, flags, timeoutUs):
return _SoapySDR.Device_readStream__(self, stream, buffs, numElems, flags, timeoutUs)
def writeStream__(self, stream, buffs, numElems, flags, timeNs, timeoutUs):
return _SoapySDR.Device_writeStream__(self, stream, buffs, numElems, flags, timeNs, timeoutUs)
def readStreamStatus__(self, stream, timeoutUs):
return _SoapySDR.Device_readStreamStatus__(self, stream, timeoutUs)
#call unmake from custom deleter
def __del__(self):
Device.unmake(self)
def __str__(self):
return "%s:%s"%(self.getDriverKey(), self.getHardwareKey())
def readStream(self, stream, buffs, numElems, flags = 0, timeoutUs = 100000):
ptrs = [extractBuffPointer(b) for b in buffs]
return self.readStream__(stream, ptrs, numElems, flags, timeoutUs)
def writeStream(self, stream, buffs, numElems, flags = 0, timeNs = 0, timeoutUs = 100000):
ptrs = [extractBuffPointer(b) for b in buffs]
return self.writeStream__(stream, ptrs, numElems, flags, timeNs, timeoutUs)
def readStreamStatus(self, stream, timeoutUs = 100000):
return self.readStreamStatus__(stream, timeoutUs)
Device_swigregister = _SoapySDR.Device_swigregister
Device_swigregister(Device)
def Device_enumerate(*args):
return _SoapySDR.Device_enumerate(*args)
Device_enumerate = _SoapySDR.Device_enumerate
def Device_make(*args):
return _SoapySDR.Device_make(*args)
Device_make = _SoapySDR.Device_make
def Device_unmake(device):
return _SoapySDR.Device_unmake(device)
Device_unmake = _SoapySDR.Device_unmake
__all__ = list()
for key in sorted(globals().keys()):
if key.startswith('SOAPY_SDR_'):
__all__.append(key)
_Device = Device
class Device(Device):
def __new__(cls, *args, **kwargs):
return cls.make(*args, **kwargs)
def extractBuffPointer(buff):
if hasattr(buff, '__array_interface__'): return buff.__array_interface__['data'][0]
if hasattr(buff, 'buffer_info'): return buff.buffer_info()[0]
if hasattr(buff, '__long__'): return long(buff)
if hasattr(buff, '__int__'): return int(buff)
raise Exception("Unrecognized data format: " + str(type(buff)))
# This file is compatible with both classic and new-style classes.
|