1 /* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
15 /*************************************************************** -*- c -*-
16 * python/precommon.swg
18 * Rename all exported symbols from common.swg, to avoid symbol
19 * clashes if multiple interpreters are included
21 ************************************************************************/
23 #define SWIG_TypeRegister SWIG_Python_TypeRegister
24 #define SWIG_TypeCheck SWIG_Python_TypeCheck
25 #define SWIG_TypeCast SWIG_Python_TypeCast
26 #define SWIG_TypeDynamicCast SWIG_Python_TypeDynamicCast
27 #define SWIG_TypeName SWIG_Python_TypeName
28 #define SWIG_TypePrettyName SWIG_Python_TypePrettyName
29 #define SWIG_TypeQuery SWIG_Python_TypeQuery
30 #define SWIG_TypeClientData SWIG_Python_TypeClientData
31 #define SWIG_PackData SWIG_Python_PackData
32 #define SWIG_UnpackData SWIG_Python_UnpackData
35 /***********************************************************************
38 * This file contains generic SWIG runtime support for pointer
39 * type checking as well as a few commonly used macros to control
42 * Author : David Beazley (beazley@cs.uchicago.edu)
44 * Copyright (c) 1999-2000, The University of Chicago
46 * This file may be freely redistributed without license or fee provided
47 * this copyright message remains intact.
48 ************************************************************************/
52 #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
53 # if defined(_MSC_VER) || defined(__GNUC__)
54 # if defined(STATIC_LINKED)
55 # define SWIGEXPORT(a) a
56 # define SWIGIMPORT(a) extern a
58 # define SWIGEXPORT(a) __declspec(dllexport) a
59 # define SWIGIMPORT(a) extern a
62 # if defined(__BORLANDC__)
63 # define SWIGEXPORT(a) a _export
64 # define SWIGIMPORT(a) a _export
66 # define SWIGEXPORT(a) a
67 # define SWIGIMPORT(a) a
71 # define SWIGEXPORT(a) a
72 # define SWIGIMPORT(a) a
76 # define SWIGRUNTIME(a) SWIGEXPORT(a)
78 # define SWIGRUNTIME(a) static a
85 typedef void *(*swig_converter_func)(void *);
86 typedef struct swig_type_info *(*swig_dycast_func)(void **);
88 typedef struct swig_type_info {
90 swig_converter_func converter;
93 swig_dycast_func dcast;
94 struct swig_type_info *next;
95 struct swig_type_info *prev;
100 SWIGIMPORT(swig_type_info *) SWIG_TypeRegister(swig_type_info *);
101 SWIGIMPORT(swig_type_info *) SWIG_TypeCheck(char *c, swig_type_info *);
102 SWIGIMPORT(void *) SWIG_TypeCast(swig_type_info *, void *);
103 SWIGIMPORT(swig_type_info *) SWIG_TypeDynamicCast(swig_type_info *, void **);
104 SWIGIMPORT(const char *) SWIG_TypeName(const swig_type_info *);
105 SWIGIMPORT(const char *) SWIG_TypePrettyName(const swig_type_info *);
106 SWIGIMPORT(swig_type_info *) SWIG_TypeQuery(const char *);
107 SWIGIMPORT(void) SWIG_TypeClientData(swig_type_info *, void *);
108 SWIGIMPORT(char *) SWIG_PackData(char *, void *, int);
109 SWIGIMPORT(char *) SWIG_UnpackData(char *, void *, int);
113 static swig_type_info *swig_type_list = 0;
114 static swig_type_info **swig_type_list_handle = &swig_type_list;
116 /* Register a type mapping with the type-checking */
117 SWIGRUNTIME(swig_type_info *)
118 SWIG_TypeRegister(swig_type_info *ti) {
119 swig_type_info *tc, *head, *ret, *next;
120 /* Check to see if this type has already been registered */
121 tc = *swig_type_list_handle;
123 if (strcmp(tc->name, ti->name) == 0) {
124 /* Already exists in the table. Just add additional types to the list */
125 if (tc->clientdata) ti->clientdata = tc->clientdata;
136 ti->prev = *swig_type_list_handle;
137 *swig_type_list_handle = ti;
139 /* Build linked lists */
143 /* Patch up the rest of the links */
150 if (next) next->prev = head;
155 /* Check the typename */
156 SWIGRUNTIME(swig_type_info *)
157 SWIG_TypeCheck(char *c, swig_type_info *ty) {
159 if (!ty) return 0; /* Void pointer */
160 s = ty->next; /* First element always just a name */
162 if (strcmp(s->name,c) == 0) {
163 if (s == ty->next) return s;
164 /* Move s to the top of the linked list */
165 s->prev->next = s->next;
167 s->next->prev = s->prev;
169 /* Insert s as second element in the list */
171 if (ty->next) ty->next->prev = s;
177 } while (s && (s != ty->next));
181 /* Cast a pointer up an inheritance hierarchy */
183 SWIG_TypeCast(swig_type_info *ty, void *ptr) {
184 if ((!ty) || (!ty->converter)) return ptr;
185 return (*ty->converter)(ptr);
188 /* Dynamic pointer casting. Down an inheritance hierarchy */
189 SWIGRUNTIME(swig_type_info *)
190 SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) {
191 swig_type_info *lastty = ty;
192 if (!ty || !ty->dcast) return ty;
193 while (ty && (ty->dcast)) {
194 ty = (*ty->dcast)(ptr);
200 /* Return the name associated with this type */
201 SWIGRUNTIME(const char *)
202 SWIG_TypeName(const swig_type_info *ty) {
206 /* Return the pretty name associated with this type,
207 that is an unmangled type name in a form presentable to the user.
209 SWIGRUNTIME(const char *)
210 SWIG_TypePrettyName(const swig_type_info *type) {
211 /* The "str" field contains the equivalent pretty names of the
212 type, separated by vertical-bar characters. We choose
213 to print the last name, as it is often (?) the most
215 if (type->str != NULL) {
216 const char *last_name = type->str;
218 for (s = type->str; *s; s++)
219 if (*s == '|') last_name = s+1;
227 Compare two type names skipping the space characters, therefore
228 "char*" == "char *" and "Class<int>" == "Class<int >", etc.
230 Return 0 when the two name types are equivalent, as in
231 strncmp, but skipping ' '.
234 SWIG_TypeNameComp(const char *f1, const char *l1,
235 const char *f2, const char *l2) {
236 for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) {
237 while ((*f1 == ' ') && (f1 != l1)) ++f1;
238 while ((*f2 == ' ') && (f2 != l2)) ++f2;
239 if (*f1 != *f2) return *f1 - *f2;
241 return (l1 - f1) - (l2 - f2);
245 Check type equivalence in a name list like <name1>|<name2>|...
248 SWIG_TypeEquiv(const char *nb, const char *tb) {
250 const char* te = tb + strlen(tb);
252 while (!equiv && *ne) {
253 for (nb = ne; *ne; ++ne) {
254 if (*ne == '|') break;
256 equiv = SWIG_TypeNameComp(nb, ne, tb, te) == 0;
263 /* Search for a swig_type_info structure */
264 SWIGRUNTIME(swig_type_info *)
265 SWIG_TypeQuery(const char *name) {
266 swig_type_info *ty = *swig_type_list_handle;
268 if (ty->str && (SWIG_TypeEquiv(ty->str,name))) return ty;
269 if (ty->name && (strcmp(name,ty->name) == 0)) return ty;
275 /* Set the clientdata field for a type */
277 SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
278 swig_type_info *tc, *equiv;
279 if (ti->clientdata == clientdata) return;
280 ti->clientdata = clientdata;
283 if (!equiv->converter) {
284 tc = *swig_type_list_handle;
286 if ((strcmp(tc->name, equiv->name) == 0))
287 SWIG_TypeClientData(tc,clientdata);
295 /* Pack binary data into a string */
297 SWIG_PackData(char *c, void *ptr, int sz) {
298 static char hex[17] = "0123456789abcdef";
299 unsigned char *u = (unsigned char *) ptr;
300 const unsigned char *eu = u + sz;
301 register unsigned char uu;
302 for (; u != eu; ++u) {
304 *(c++) = hex[(uu & 0xf0) >> 4];
305 *(c++) = hex[uu & 0xf];
310 /* Unpack binary data from a string */
312 SWIG_UnpackData(char *c, void *ptr, int sz) {
313 register unsigned char uu = 0;
315 unsigned char *u = (unsigned char *) ptr;
316 const unsigned char *eu = u + sz;
317 for (; u != eu; ++u) {
319 if ((d >= '0') && (d <= '9'))
320 uu = ((d - '0') << 4);
321 else if ((d >= 'a') && (d <= 'f'))
322 uu = ((d - ('a'-10)) << 4);
324 if ((d >= '0') && (d <= '9'))
326 else if ((d >= 'a') && (d <= 'f'))
327 uu |= (d - ('a'-10));
339 /***********************************************************************
342 * This file contains the runtime support for Python modules
343 * and includes code for managing global variables and pointer
346 * Author : David Beazley (beazley@cs.uchicago.edu)
347 ************************************************************************/
353 #define SWIG_PY_INT 1
354 #define SWIG_PY_FLOAT 2
355 #define SWIG_PY_STRING 3
356 #define SWIG_PY_POINTER 4
357 #define SWIG_PY_BINARY 5
359 /* Flags for pointer conversion */
361 #define SWIG_POINTER_EXCEPTION 0x1
362 #define SWIG_POINTER_DISOWN 0x2
364 /* Exception handling in wrappers */
365 #define SWIG_fail goto fail
367 /* Constant information structure */
368 typedef struct swig_const_info {
374 swig_type_info **ptype;
377 /* Common SWIG API */
378 #define SWIG_ConvertPtr(obj, pp, type, flags) \
379 SWIG_Python_ConvertPtr(obj, pp, type, flags)
380 #define SWIG_NewPointerObj(p, type, flags) \
381 SWIG_Python_NewPointerObj(p, type, flags)
382 #define SWIG_MustGetPtr(p, type, argnum, flags) \
383 SWIG_Python_MustGetPtr(p, type, argnum, flags)
385 /* Python-specific SWIG API */
386 #define SWIG_newvarlink() \
387 SWIG_Python_newvarlink()
388 #define SWIG_addvarlink(p, name, get_attr, set_attr) \
389 SWIG_Python_addvarlink(p, name, get_attr, set_attr)
390 #define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) \
391 SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags)
392 #define SWIG_NewPackedObj(ptr, sz, type) \
393 SWIG_Python_NewPackedObj(ptr, sz, type)
394 #define SWIG_InstallConstants(d, constants) \
395 SWIG_Python_InstallConstants(d, constants)
397 typedef double (*py_objasdbl_conv)(PyObject *obj);
399 #ifdef SWIG_NOINCLUDE
401 SWIGIMPORT(int) SWIG_Python_ConvertPtr(PyObject *, void **, swig_type_info *, int);
402 SWIGIMPORT(PyObject *) SWIG_Python_NewPointerObj(void *, swig_type_info *,int own);
403 SWIGIMPORT(void *) SWIG_Python_MustGetPtr(PyObject *, swig_type_info *, int, int);
404 SWIGIMPORT(PyObject *) SWIG_Python_newvarlink(void);
405 SWIGIMPORT(void) SWIG_Python_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *));
406 SWIGIMPORT(int) SWIG_Python_ConvertPacked(PyObject *, void *, int sz, swig_type_info *, int);
407 SWIGIMPORT(PyObject *) SWIG_Python_NewPackedObj(void *, int sz, swig_type_info *);
408 SWIGIMPORT(void) SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]);
414 /* -----------------------------------------------------------------------------
415 * global variable support code.
416 * ----------------------------------------------------------------------------- */
418 typedef struct swig_globalvar {
419 char *name; /* Name of global variable */
420 PyObject *(*get_attr)(void); /* Return the current value */
421 int (*set_attr)(PyObject *); /* Set the value */
422 struct swig_globalvar *next;
425 typedef struct swig_varlinkobject {
427 swig_globalvar *vars;
428 } swig_varlinkobject;
431 swig_varlink_repr(swig_varlinkobject *v) {
433 return PyString_FromString("<Global variables>");
437 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int flags) {
440 fprintf(fp,"Global variables { ");
441 for (var = v->vars; var; var=var->next) {
442 fprintf(fp,"%s", var->name);
443 if (var->next) fprintf(fp,", ");
450 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
451 swig_globalvar *var = v->vars;
453 if (strcmp(var->name,n) == 0) {
454 return (*var->get_attr)();
458 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
463 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
464 swig_globalvar *var = v->vars;
466 if (strcmp(var->name,n) == 0) {
467 return (*var->set_attr)(p);
471 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
475 statichere PyTypeObject varlinktype = {
476 PyObject_HEAD_INIT(0)
477 0, /* Number of items in variable part (ob_size) */
478 (char *)"swigvarlink", /* Type name (tp_name) */
479 sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
480 0, /* Itemsize (tp_itemsize) */
481 0, /* Deallocator (tp_dealloc) */
482 (printfunc) swig_varlink_print, /* Print (tp_print) */
483 (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
484 (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
486 (reprfunc) swig_varlink_repr, /* tp_repr */
487 0, /* tp_as_number */
488 0, /* tp_as_sequence */
489 0, /* tp_as_mapping */
495 0, /* tp_as_buffer */
500 0, /* tp_richcompare */
501 0, /* tp_weaklistoffset */
502 #if PY_VERSION_HEX >= 0x02020000
510 0, /* tp_descr_get */
511 0, /* tp_descr_set */
512 0, /* tp_dictoffset */
521 0, /* tp_subclasses */
524 #if PY_VERSION_HEX >= 0x02030200
528 /* these must be last */
536 /* Create a variable linking object for use later */
537 SWIGRUNTIME(PyObject *)
538 SWIG_Python_newvarlink(void) {
539 swig_varlinkobject *result = 0;
540 result = PyMem_NEW(swig_varlinkobject,1);
541 varlinktype.ob_type = &PyType_Type; /* Patch varlinktype into a PyType */
542 result->ob_type = &varlinktype;
544 result->ob_refcnt = 0;
545 Py_XINCREF((PyObject *) result);
546 return ((PyObject*) result);
550 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
551 swig_varlinkobject *v;
553 v= (swig_varlinkobject *) p;
554 gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
555 gv->name = (char *) malloc(strlen(name)+1);
556 strcpy(gv->name,name);
557 gv->get_attr = get_attr;
558 gv->set_attr = set_attr;
563 /* Convert a pointer value */
565 SWIG_Python_ConvertPtr(PyObject *obj, void **ptr, swig_type_info *ty, int flags) {
568 static PyObject *SWIG_this = 0;
573 if (obj == Py_None) {
577 #ifdef SWIG_COBJECT_TYPES
578 if (!(PyCObject_Check(obj))) {
580 SWIG_this = PyString_FromString("this");
582 obj = PyObject_GetAttr(obj,SWIG_this);
584 if (!obj) goto type_error;
585 if (!PyCObject_Check(obj)) {
590 *ptr = PyCObject_AsVoidPtr(obj);
591 c = (char *) PyCObject_GetDesc(obj);
592 if (newref) Py_DECREF(obj);
595 if (!(PyString_Check(obj))) {
597 SWIG_this = PyString_FromString("this");
599 obj = PyObject_GetAttr(obj,SWIG_this);
601 if (!obj) goto type_error;
602 if (!PyString_Check(obj)) {
607 c = PyString_AS_STRING(obj);
608 /* Pointer values must start with leading underscore */
611 if (strcmp(c,"NULL") == 0) {
612 if (newref) { Py_DECREF(obj); }
615 if (newref) { Py_DECREF(obj); }
620 c = SWIG_UnpackData(c,ptr,sizeof(void *));
621 if (newref) { Py_DECREF(obj); }
624 #ifdef SWIG_COBJECT_TYPES
629 tc = SWIG_TypeCheck(c,ty);
630 if (!tc) goto type_error;
631 *ptr = SWIG_TypeCast(tc,(void*) *ptr);
634 if ((pyobj) && (flags & SWIG_POINTER_DISOWN)) {
635 PyObject_SetAttrString(pyobj,(char*)"thisown",Py_False);
641 if (flags & SWIG_POINTER_EXCEPTION) {
643 PyErr_Format(PyExc_TypeError,
644 "Type error. Got %s, expected %s",
647 PyErr_SetString(PyExc_TypeError,"Expected a pointer");
653 /* Convert a pointer value, signal an exception on a type mismatch */
655 SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int argnum, int flags) {
657 SWIG_Python_ConvertPtr(obj, &result, ty, flags | SWIG_POINTER_EXCEPTION);
661 /* Convert a packed value value */
663 SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, int sz, swig_type_info *ty, int flags) {
667 if ((!obj) || (!PyString_Check(obj))) goto type_error;
668 c = PyString_AS_STRING(obj);
669 /* Pointer values must start with leading underscore */
670 if (*c != '_') goto type_error;
672 c = SWIG_UnpackData(c,ptr,sz);
674 tc = SWIG_TypeCheck(c,ty);
675 if (!tc) goto type_error;
683 PyErr_Format(PyExc_TypeError,
684 "Type error. Got %s, expected %s",
687 PyErr_SetString(PyExc_TypeError,"Expected a pointer");
693 /* Create a new pointer object */
694 SWIGRUNTIME(PyObject *)
695 SWIG_Python_NewPointerObj(void *ptr, swig_type_info *type, int own) {
701 #ifdef SWIG_COBJECT_TYPES
702 robj = PyCObject_FromVoidPtrAndDesc((void *) ptr, (char *) type->name, NULL);
708 r = SWIG_PackData(r,&ptr,sizeof(void *));
709 strcpy(r,type->name);
710 robj = PyString_FromString(result);
713 if (!robj || (robj == Py_None)) return robj;
714 if (type->clientdata) {
716 PyObject *args = Py_BuildValue((char*)"(O)", robj);
718 inst = PyObject_CallObject((PyObject *) type->clientdata, args);
722 PyObject_SetAttrString(inst,(char*)"thisown",Py_True);
730 SWIGRUNTIME(PyObject *)
731 SWIG_Python_NewPackedObj(void *ptr, int sz, swig_type_info *type) {
734 if ((2*sz + 1 + strlen(type->name)) > 1000) return 0;
736 r = SWIG_PackData(r,ptr,sz);
737 strcpy(r,type->name);
738 return PyString_FromString(result);
741 /* Install Constants */
743 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
746 for (i = 0; constants[i].type; i++) {
747 switch(constants[i].type) {
749 obj = PyInt_FromLong(constants[i].lvalue);
752 obj = PyFloat_FromDouble(constants[i].dvalue);
755 if (constants[i].pvalue) {
756 obj = PyString_FromString((char *) constants[i].pvalue);
762 case SWIG_PY_POINTER:
763 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
766 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
773 PyDict_SetItemString(d,constants[i].name,obj);
781 /* Contract support */
783 #define SWIG_contract_assert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else
790 /* -------- TYPES TABLE (BEGIN) -------- */
792 #define SWIGTYPE_p_ushort swig_types[0]
793 #define SWIGTYPE_p_char swig_types[1]
794 #define SWIGTYPE_p_u_short swig_types[2]
795 static swig_type_info *swig_types[4];
797 /* -------- TYPES TABLE (END) -------- */
800 /*-----------------------------------------------
801 @(target):= _sdr1khw.so
802 ------------------------------------------------*/
803 #define SWIG_init init_sdr1khw
805 #define SWIG_name "_sdr1khw"
807 /* Auxiliar swig macros that appear in the header */
809 #define SWIG_OLDOBJ 1
810 #define SWIG_NEWOBJ SWIG_OLDOBJ + 1
811 #define SWIG_PYSTR SWIG_NEWOBJ + 1
814 #define SWIGSTATICINLINE(a) static inline a
815 #define SWIGSTATIC(a) static a
816 #define swig_new_array(size,Type) (new Type[(size)])
817 #define swig_delete(cptr) delete cptr
818 #define swig_delete_array(cptr) delete[] cptr
819 #define swig_const_cast(a,Type) const_cast<Type >(a)
820 #define swig_static_cast(a,Type) static_cast<Type >(a)
821 #define swig_reinterpret_cast(a,Type) reinterpret_cast<Type >(a)
822 #define swig_new_copy(ptr,Type) (new Type(*ptr))
823 #define swig_numeric_cast(a,Type) static_cast<Type >(a)
827 #define SWIGSTATICINLINE(a) static a
828 #define SWIGSTATIC(a) static a
829 #define swig_new_array(size,Type) ((Type*) malloc((size)*sizeof(Type)))
830 #define swig_delete(cptr) free((char*)cptr)
831 #define swig_delete_array(cptr) free((char*)cptr)
832 #define swig_const_cast(a,Type) (Type)(a)
833 #define swig_static_cast(a,Type) (Type)(a)
834 #define swig_reinterpret_cast(a,Type) (Type)(a)
835 #define swig_numeric_cast(a,Type) (Type)(a)
836 #define swig_new_copy(ptr,Type) ((Type*)memcpy(malloc(sizeof(Type)),ptr,sizeof(Type)))
838 #endif /* __cplusplus */
841 /*@/usr/local/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/
842 #define SWIG_From_signed_SS_char PyInt_FromLong
844 /*@/usr/local/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/
845 #define SWIG_From_unsigned_SS_char PyInt_FromLong
847 /*@/usr/local/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/
848 #define SWIG_From_short PyInt_FromLong
850 /*@/usr/local/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/
851 #define SWIG_From_unsigned_SS_short PyInt_FromLong
853 /*@/usr/local/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/
854 #define SWIG_From_int PyInt_FromLong
856 /*@/usr/local/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/
857 #define SWIG_From_long PyInt_FromLong
859 /*@/usr/local/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/
860 #define SWIG_From_float PyFloat_FromDouble
862 /*@/usr/local/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/
863 #define SWIG_From_double PyFloat_FromDouble
867 #include "hardware.h"
869 extern double DttSP_SampleRate;
871 SWIGSTATICINLINE(int)
872 SWIG_AsVal_double(PyObject *obj, double *val)
874 if (PyFloat_Check(obj)) {
875 if (val) *val = PyFloat_AS_DOUBLE(obj);
878 if (PyInt_Check(obj)) {
879 if (val) *val = PyInt_AS_LONG(obj);
882 if (PyLong_Check(obj)) {
883 double v = PyLong_AsDouble(obj);
884 if (!PyErr_Occurred()) {
888 if (!val) PyErr_Clear();
893 PyErr_SetString(PyExc_TypeError, "a double is expected");
899 SWIGSTATICINLINE(double)
900 SWIG_As_double(PyObject* obj)
903 if (!SWIG_AsVal_double(obj, &v)) {
905 this is needed to make valgrind/purify happier. the other
906 solution is throw an exception, but since this code should work
909 memset((void*)&v, 0, sizeof(double));
914 extern int ic11_memory;
919 SWIGSTATICINLINE(int)
920 SWIG_CheckLongInRange(long value, long min_value, long max_value,
923 if (value < min_value) {
925 PyErr_Format(PyExc_OverflowError,
926 "value %ld is less than '%s' minimum %ld",
927 value, errmsg, min_value);
930 } else if (value > max_value) {
932 PyErr_Format(PyExc_OverflowError,
933 "value %ld is greater than '%s' maximum %ld",
934 value, errmsg, max_value);
942 SWIGSTATICINLINE(int)
943 SWIG_AsVal_long(PyObject * obj, long* val)
945 if (PyInt_Check(obj)) {
946 if (val) *val = PyInt_AS_LONG(obj);
949 if (PyLong_Check(obj)) {
950 long v = PyLong_AsLong(obj);
951 if (!PyErr_Occurred()) {
955 if (!val) PyErr_Clear();
960 PyErr_SetString(PyExc_TypeError, "a long is expected");
966 #if INT_MAX != LONG_MAX
967 SWIGSTATICINLINE(int)
968 SWIG_AsVal_int(PyObject *obj, int *val)
970 const char* errmsg = val ? "int" : 0;
972 if (SWIG_AsVal_long(obj, &v)) {
973 if (SWIG_CheckLongInRange(v, INT_MIN,INT_MAX, errmsg)) {
974 if (val) *val = swig_numeric_cast(v, int);
983 PyErr_SetString(PyExc_TypeError, "an int is expected");
988 SWIGSTATICINLINE(int)
989 SWIG_AsVal_int(PyObject *obj, int *val)
991 return SWIG_AsVal_long(obj,(long*)val);
996 SWIGSTATICINLINE(int)
997 SWIG_As_int(PyObject* obj)
1000 if (!SWIG_AsVal_int(obj, &v)) {
1002 this is needed to make valgrind/purify happier. the other
1003 solution is throw an exception, but since this code should work
1006 memset((void*)&v, 0, sizeof(int));
1011 extern int ic7_memory;
1012 extern BOOL rfe_enabled;
1013 extern BOOL xvtr_enabled;
1014 extern BOOL pa_enabled;
1015 extern BandSetting band_relay;
1016 extern int external_output;
1017 extern int mute_relay;
1018 extern int transmit_relay;
1019 extern int gain_relay;
1020 extern int latch_delay;
1021 extern double dds_clock;
1022 extern int pll_mult;
1023 extern double dds_clock_correction;
1024 extern double sysClock;
1025 extern int ioud_clock;
1026 extern ushort dac_mult;
1027 extern double dds_freq;
1028 extern double if_freq;
1029 extern BOOL if_shift;
1030 extern BOOL spur_reduction;
1031 extern double dds_step_size;
1032 extern int sample_rate;
1033 extern int fft_length;
1034 extern double FFT_Bin_Size;
1035 extern int tune_fft;
1036 extern double tune_frac_rel;
1037 extern double vfo_offset;
1038 extern double min_freq;
1039 extern double max_freq;
1040 extern u_short baseAdr;
1041 extern BandPlan curBandPlan;
1042 extern double TWO_TO_THE_48_DIVIDED_BY_200;
1043 extern long last_tuning_word;
1045 SWIGSTATICINLINE(long)
1046 SWIG_As_long(PyObject* obj)
1049 if (!SWIG_AsVal_long(obj, &v)) {
1051 this is needed to make valgrind/purify happier. the other
1052 solution is throw an exception, but since this code should work
1055 memset((void*)&v, 0, sizeof(long));
1060 extern BOOL usb_enabled;
1061 extern BOOL openPort(char *);
1063 /* returns SWIG_OLDOBJ if the input is a raw char*, SWIG_PYSTR if is a PyString */
1065 SWIG_AsCharPtrAndSize(PyObject *obj, char** cptr, size_t* psize)
1067 static swig_type_info* pchar_info = 0;
1069 if (!pchar_info) pchar_info = SWIG_TypeQuery("char *");
1070 if (SWIG_ConvertPtr(obj, (void**)&vptr, pchar_info, 0) != -1) {
1071 if (cptr) *cptr = vptr;
1072 if (psize) *psize = vptr ? (strlen(vptr) + 1) : 0;
1075 if (PyString_Check(obj)) {
1077 *cptr = PyString_AS_STRING(obj);
1079 *psize = PyString_GET_SIZE(obj) + 1;
1086 PyErr_SetString(PyExc_TypeError, "a string is expected");
1092 SWIGSTATICINLINE(int)
1093 SWIG_AsCharPtr(PyObject *obj, char **val)
1096 if (SWIG_AsCharPtrAndSize(obj, &cptr, (size_t*)(0))) {
1097 if (val) *val = cptr;
1101 PyErr_SetString(PyExc_TypeError, "a char* is expected");
1106 extern void closePort(void);
1107 extern void USB_Sdr1kLatch(int,BYTE);
1109 SWIGSTATICINLINE(int)
1110 SWIG_AsVal_unsigned_SS_long(PyObject * obj, unsigned long *val)
1112 if (PyInt_Check(obj)) {
1113 long v = PyInt_AS_LONG(obj);
1119 if (PyLong_Check(obj)) {
1120 unsigned long v = PyLong_AsUnsignedLong(obj);
1121 if (!PyErr_Occurred()) {
1125 if (!val) PyErr_Clear();
1130 PyErr_SetString(PyExc_TypeError, "an unsigned long is expected");
1136 SWIGSTATICINLINE(int)
1137 SWIG_CheckUnsignedLongInRange(unsigned long value,
1138 unsigned long max_value,
1141 if (value > max_value) {
1143 PyErr_Format(PyExc_OverflowError,
1144 "value %ld is greater than '%s' minimum %ld",
1145 value, errmsg, max_value);
1153 SWIGSTATICINLINE(int)
1154 SWIG_AsVal_unsigned_SS_char(PyObject *obj, unsigned char *val)
1156 const char* errmsg = val ? "unsigned char" : 0;
1158 if (SWIG_AsVal_unsigned_SS_long(obj, &v)) {
1159 if (SWIG_CheckUnsignedLongInRange(v, UCHAR_MAX,errmsg)) {
1160 if (val) *val = swig_numeric_cast(v, unsigned char);
1169 PyErr_SetString(PyExc_TypeError, "an unsigned char is expected");
1175 SWIGSTATICINLINE(unsigned char)
1176 SWIG_As_unsigned_SS_char(PyObject* obj)
1179 if (!SWIG_AsVal_unsigned_SS_char(obj, &v)) {
1181 this is needed to make valgrind/purify happier. the other
1182 solution is throw an exception, but since this code should work
1185 memset((void*)&v, 0, sizeof(unsigned char));
1191 SWIGSTATICINLINE(int)
1192 SWIG_Check_int(PyObject* obj)
1194 return SWIG_AsVal_int(obj, (int*)0);
1198 SWIGSTATICINLINE(int)
1199 SWIG_Check_unsigned_SS_char(PyObject* obj)
1201 return SWIG_AsVal_unsigned_SS_char(obj, (unsigned char*)0);
1204 extern BYTE USB_Sdr1kGetStatusPort(void);
1205 extern int USB_Sdr1kGetADC(void);
1206 extern void USB_Sdr1kDDSReset(void);
1207 extern void USB_Sdr1kDDSWrite(BYTE,BYTE);
1208 extern void USB_Sdr1kSRLoad(BYTE,BYTE);
1209 extern void DttSP_ChangeOsc(double);
1211 SWIGSTATICINLINE(int)
1212 SWIG_Check_double(PyObject* obj)
1214 return SWIG_AsVal_double(obj, (double*)0);
1217 extern void Init(void);
1218 extern void PowerOn(void);
1219 extern void StandBy(void);
1220 extern void Impulse(void);
1221 extern BYTE StatusPort(void);
1222 extern void SetExt(ExtPin);
1223 extern void ResExt(ExtPin);
1224 extern BOOL PinValue(ExtPin);
1225 extern void SetBPF(double);
1226 extern void TestPort(void);
1227 extern void RCKStrobe(BOOL,RFE_RCK);
1228 extern void SRLoad(RFE_RCK,int);
1229 extern void ResetRFE(void);
1230 extern void PA_SetLPF(int);
1231 extern BYTE PA_GetADC(int);
1232 extern BOOL PA_ATUTune(ATUTuneMode);
1233 extern BOOL getEnableLPF0(void);
1234 extern void setEnableLPF0(BOOL);
1235 extern BOOL getExtended(void);
1236 extern void setExtended(BOOL);
1237 extern BOOL getX2Enabled(void);
1238 extern void setX2Enabled(BOOL);
1239 extern int getX2Delay(void);
1240 extern void setX2Delay(int);
1241 extern BOOL getRFE_Enabled(void);
1242 extern void setRFE_Enabled(BOOL);
1243 extern BOOL getPA_Enabled(void);
1244 extern void setPA_Enabled(BOOL);
1245 extern BOOL getXVTR_Enabled(void);
1246 extern BOOL setXVTR_Enabled(BOOL);
1247 extern BOOL getUSB_Enabled(void);
1248 extern void setUSB_Enabled(BOOL);
1249 extern XVTRTRMode getCurrentXVTRTRMode(void);
1250 extern void setCurrentXVTRTRMode(XVTRTRMode);
1251 extern int getLatchDelay(void);
1252 extern void setLatchDelay(int);
1253 extern double getMinFreq(void);
1254 extern double getMaxFreq(void);
1255 extern u_short getBaseAddr(void);
1256 extern u_short setBaseAddr(u_short);
1257 extern BandSetting getBandRelay(void);
1258 extern void setBandRelay(BandSetting);
1259 extern BOOL getTransmitRelay(void);
1260 extern void setTransmitRelay(BOOL);
1261 extern BOOL getMuteRelay(void);
1262 extern void setMuteRelay(BOOL);
1263 extern BOOL getGainRelay(void);
1264 extern void setGainRelay(BOOL);
1265 extern int getExternalOutput(void);
1266 extern void setExternalOutput(int);
1267 extern double getDDSClockCorrection(void);
1268 extern void setDDSClockCorrection(double);
1269 extern int getPLLMult(void);
1270 extern void setPLLMult(int);
1271 extern double getDDSClock(void);
1272 extern void setDDSClock(double);
1273 extern BOOL getIFShift(void);
1274 extern void setIFShift(BOOL);
1275 extern BOOL getSpurReduction(void);
1276 extern BOOL setSpurReduction(BOOL);
1277 extern double getIFFreq(void);
1278 extern void setIFFreq(double);
1279 extern double getDDSFreq(void);
1280 extern void setDDSFreq(double);
1281 extern int getSampleRate(void);
1282 extern void setSampleRate(int);
1283 extern int getFFTLength(void);
1284 extern void setFFTLength(int);
1285 extern int getTuneFFT(void);
1286 extern double getTuneFracRel(void);
1287 extern double getVFOOffset(void);
1288 extern void setVFOOffset(double);
1289 extern int getIOUDClock(void);
1290 extern void setIOUDClock(int);
1291 extern u_short getDACMult(void);
1292 extern void setDACMult(u_short);
1293 extern BOOL getAMP_Relay(void);
1294 extern BOOL setAMP_Relay(BOOL);
1295 extern BOOL getATTN_Relay(void);
1296 extern void setATTN_Relay(BOOL);
1297 extern BOOL getXVTR_TR_Relay(void);
1298 extern BOOL setXVTR_TR_Relay(BOOL);
1299 extern BOOL getXVTR_Relay(void);
1300 extern BOOL setXVTR_Relay(BOOL);
1301 extern BOOL getIMPULSE_Relay(void);
1302 extern BOOL setIMPULSE_Relay(BOOL);
1303 extern BOOL getPA_TransmitRelay(void);
1304 extern BOOL setPA_TransmitRelay(BOOL);
1305 extern BOOL getPA_BiasOn(void);
1306 extern BOOL setPA_BiasOn(BOOL);
1310 static int _wrap_DttSP_SampleRate_set(PyObject *_val) {
1312 double temp = (double) SWIG_As_double(_val);
1313 if (PyErr_Occurred()) {
1314 PyErr_SetString(PyExc_TypeError, "C/C++ variable 'DttSP_SampleRate (double)'");
1317 DttSP_SampleRate = temp;
1323 static PyObject *_wrap_DttSP_SampleRate_get() {
1326 pyobj = SWIG_From_double((double)DttSP_SampleRate);
1331 static int _wrap_ic11_memory_set(PyObject *_val) {
1333 int temp = (int) SWIG_As_int(_val);
1334 if (PyErr_Occurred()) {
1335 PyErr_SetString(PyExc_TypeError, "C/C++ variable 'ic11_memory (int)'");
1344 static PyObject *_wrap_ic11_memory_get() {
1347 pyobj = SWIG_From_int((int)ic11_memory);
1352 static int _wrap_ic7_memory_set(PyObject *_val) {
1354 int temp = (int) SWIG_As_int(_val);
1355 if (PyErr_Occurred()) {
1356 PyErr_SetString(PyExc_TypeError, "C/C++ variable 'ic7_memory (int)'");
1365 static PyObject *_wrap_ic7_memory_get() {
1368 pyobj = SWIG_From_int((int)ic7_memory);
1373 static int _wrap_rfe_enabled_set(PyObject *_val) {
1375 BOOL temp = (BOOL) SWIG_As_int(_val);
1376 if (PyErr_Occurred()) {
1377 PyErr_SetString(PyExc_TypeError, "C/C++ variable 'rfe_enabled (BOOL)'");
1386 static PyObject *_wrap_rfe_enabled_get() {
1389 pyobj = SWIG_From_int((int)rfe_enabled);
1394 static int _wrap_xvtr_enabled_set(PyObject *_val) {
1396 BOOL temp = (BOOL) SWIG_As_int(_val);
1397 if (PyErr_Occurred()) {
1398 PyErr_SetString(PyExc_TypeError, "C/C++ variable 'xvtr_enabled (BOOL)'");
1401 xvtr_enabled = temp;
1407 static PyObject *_wrap_xvtr_enabled_get() {
1410 pyobj = SWIG_From_int((int)xvtr_enabled);
1415 static int _wrap_pa_enabled_set(PyObject *_val) {
1417 BOOL temp = (BOOL) SWIG_As_int(_val);
1418 if (PyErr_Occurred()) {
1419 PyErr_SetString(PyExc_TypeError, "C/C++ variable 'pa_enabled (BOOL)'");
1428 static PyObject *_wrap_pa_enabled_get() {
1431 pyobj = SWIG_From_int((int)pa_enabled);
1436 static int _wrap_band_relay_set(PyObject *_val) {
1438 if (sizeof(int) != sizeof(band_relay)) {
1439 PyErr_SetString(PyExc_TypeError, "enum variable 'band_relay' can not be set");
1442 if (!SWIG_AsVal_int(_val, (int*)(void*)&(band_relay))) {
1450 static PyObject *_wrap_band_relay_get() {
1453 pyobj = SWIG_From_int((int)band_relay);
1458 static int _wrap_external_output_set(PyObject *_val) {
1460 int temp = (int) SWIG_As_int(_val);
1461 if (PyErr_Occurred()) {
1462 PyErr_SetString(PyExc_TypeError, "C/C++ variable 'external_output (int)'");
1465 external_output = temp;
1471 static PyObject *_wrap_external_output_get() {
1474 pyobj = SWIG_From_int((int)external_output);
1479 static int _wrap_mute_relay_set(PyObject *_val) {
1481 int temp = (int) SWIG_As_int(_val);
1482 if (PyErr_Occurred()) {
1483 PyErr_SetString(PyExc_TypeError, "C/C++ variable 'mute_relay (int)'");
1492 static PyObject *_wrap_mute_relay_get() {
1495 pyobj = SWIG_From_int((int)mute_relay);
1500 static int _wrap_transmit_relay_set(PyObject *_val) {
1502 int temp = (int) SWIG_As_int(_val);
1503 if (PyErr_Occurred()) {
1504 PyErr_SetString(PyExc_TypeError, "C/C++ variable 'transmit_relay (int)'");
1507 transmit_relay = temp;
1513 static PyObject *_wrap_transmit_relay_get() {
1516 pyobj = SWIG_From_int((int)transmit_relay);
1521 static int _wrap_gain_relay_set(PyObject *_val) {
1523 int temp = (int) SWIG_As_int(_val);
1524 if (PyErr_Occurred()) {
1525 PyErr_SetString(PyExc_TypeError, "C/C++ variable 'gain_relay (int)'");
1534 static PyObject *_wrap_gain_relay_get() {
1537 pyobj = SWIG_From_int((int)gain_relay);
1542 static int _wrap_latch_delay_set(PyObject *_val) {
1544 int temp = (int) SWIG_As_int(_val);
1545 if (PyErr_Occurred()) {
1546 PyErr_SetString(PyExc_TypeError, "C/C++ variable 'latch_delay (int)'");
1555 static PyObject *_wrap_latch_delay_get() {
1558 pyobj = SWIG_From_int((int)latch_delay);
1563 static int _wrap_dds_clock_set(PyObject *_val) {
1565 double temp = (double) SWIG_As_double(_val);
1566 if (PyErr_Occurred()) {
1567 PyErr_SetString(PyExc_TypeError, "C/C++ variable 'dds_clock (double)'");
1576 static PyObject *_wrap_dds_clock_get() {
1579 pyobj = SWIG_From_double((double)dds_clock);
1584 static int _wrap_pll_mult_set(PyObject *_val) {
1586 int temp = (int) SWIG_As_int(_val);
1587 if (PyErr_Occurred()) {
1588 PyErr_SetString(PyExc_TypeError, "C/C++ variable 'pll_mult (int)'");
1597 static PyObject *_wrap_pll_mult_get() {
1600 pyobj = SWIG_From_int((int)pll_mult);
1605 static int _wrap_dds_clock_correction_set(PyObject *_val) {
1607 double temp = (double) SWIG_As_double(_val);
1608 if (PyErr_Occurred()) {
1609 PyErr_SetString(PyExc_TypeError, "C/C++ variable 'dds_clock_correction (double)'");
1612 dds_clock_correction = temp;
1618 static PyObject *_wrap_dds_clock_correction_get() {
1621 pyobj = SWIG_From_double((double)dds_clock_correction);
1626 static int _wrap_sysClock_set(PyObject *_val) {
1628 double temp = (double) SWIG_As_double(_val);
1629 if (PyErr_Occurred()) {
1630 PyErr_SetString(PyExc_TypeError, "C/C++ variable 'sysClock (double)'");
1639 static PyObject *_wrap_sysClock_get() {
1642 pyobj = SWIG_From_double((double)sysClock);
1647 static int _wrap_ioud_clock_set(PyObject *_val) {
1649 int temp = (int) SWIG_As_int(_val);
1650 if (PyErr_Occurred()) {
1651 PyErr_SetString(PyExc_TypeError, "C/C++ variable 'ioud_clock (int)'");
1660 static PyObject *_wrap_ioud_clock_get() {
1663 pyobj = SWIG_From_int((int)ioud_clock);
1668 static int _wrap_dac_mult_set(PyObject *_val) {
1671 if ((SWIG_ConvertPtr(_val, (void **)(&temp), SWIGTYPE_p_ushort, SWIG_POINTER_EXCEPTION)) == -1) {
1672 PyErr_SetString(PyExc_TypeError, "C/C++ variable 'dac_mult (ushort)'");
1675 dac_mult = *((ushort *) temp);
1681 static PyObject *_wrap_dac_mult_get() {
1684 pyobj = SWIG_NewPointerObj((void *)(&dac_mult), SWIGTYPE_p_ushort, 0);
1689 static int _wrap_dds_freq_set(PyObject *_val) {
1691 double temp = (double) SWIG_As_double(_val);
1692 if (PyErr_Occurred()) {
1693 PyErr_SetString(PyExc_TypeError, "C/C++ variable 'dds_freq (double)'");
1702 static PyObject *_wrap_dds_freq_get() {
1705 pyobj = SWIG_From_double((double)dds_freq);
1710 static int _wrap_if_freq_set(PyObject *_val) {
1712 double temp = (double) SWIG_As_double(_val);
1713 if (PyErr_Occurred()) {
1714 PyErr_SetString(PyExc_TypeError, "C/C++ variable 'if_freq (double)'");
1723 static PyObject *_wrap_if_freq_get() {
1726 pyobj = SWIG_From_double((double)if_freq);
1731 static int _wrap_if_shift_set(PyObject *_val) {
1733 BOOL temp = (BOOL) SWIG_As_int(_val);
1734 if (PyErr_Occurred()) {
1735 PyErr_SetString(PyExc_TypeError, "C/C++ variable 'if_shift (BOOL)'");
1744 static PyObject *_wrap_if_shift_get() {
1747 pyobj = SWIG_From_int((int)if_shift);
1752 static int _wrap_spur_reduction_set(PyObject *_val) {
1754 BOOL temp = (BOOL) SWIG_As_int(_val);
1755 if (PyErr_Occurred()) {
1756 PyErr_SetString(PyExc_TypeError, "C/C++ variable 'spur_reduction (BOOL)'");
1759 spur_reduction = temp;
1765 static PyObject *_wrap_spur_reduction_get() {
1768 pyobj = SWIG_From_int((int)spur_reduction);
1773 static int _wrap_dds_step_size_set(PyObject *_val) {
1775 double temp = (double) SWIG_As_double(_val);
1776 if (PyErr_Occurred()) {
1777 PyErr_SetString(PyExc_TypeError, "C/C++ variable 'dds_step_size (double)'");
1780 dds_step_size = temp;
1786 static PyObject *_wrap_dds_step_size_get() {
1789 pyobj = SWIG_From_double((double)dds_step_size);
1794 static int _wrap_sample_rate_set(PyObject *_val) {
1796 int temp = (int) SWIG_As_int(_val);
1797 if (PyErr_Occurred()) {
1798 PyErr_SetString(PyExc_TypeError, "C/C++ variable 'sample_rate (int)'");
1807 static PyObject *_wrap_sample_rate_get() {
1810 pyobj = SWIG_From_int((int)sample_rate);
1815 static int _wrap_fft_length_set(PyObject *_val) {
1817 int temp = (int) SWIG_As_int(_val);
1818 if (PyErr_Occurred()) {
1819 PyErr_SetString(PyExc_TypeError, "C/C++ variable 'fft_length (int)'");
1828 static PyObject *_wrap_fft_length_get() {
1831 pyobj = SWIG_From_int((int)fft_length);
1836 static int _wrap_FFT_Bin_Size_set(PyObject *_val) {
1838 double temp = (double) SWIG_As_double(_val);
1839 if (PyErr_Occurred()) {
1840 PyErr_SetString(PyExc_TypeError, "C/C++ variable 'FFT_Bin_Size (double)'");
1843 FFT_Bin_Size = temp;
1849 static PyObject *_wrap_FFT_Bin_Size_get() {
1852 pyobj = SWIG_From_double((double)FFT_Bin_Size);
1857 static int _wrap_tune_fft_set(PyObject *_val) {
1859 int temp = (int) SWIG_As_int(_val);
1860 if (PyErr_Occurred()) {
1861 PyErr_SetString(PyExc_TypeError, "C/C++ variable 'tune_fft (int)'");
1870 static PyObject *_wrap_tune_fft_get() {
1873 pyobj = SWIG_From_int((int)tune_fft);
1878 static int _wrap_tune_frac_rel_set(PyObject *_val) {
1880 double temp = (double) SWIG_As_double(_val);
1881 if (PyErr_Occurred()) {
1882 PyErr_SetString(PyExc_TypeError, "C/C++ variable 'tune_frac_rel (double)'");
1885 tune_frac_rel = temp;
1891 static PyObject *_wrap_tune_frac_rel_get() {
1894 pyobj = SWIG_From_double((double)tune_frac_rel);
1899 static int _wrap_vfo_offset_set(PyObject *_val) {
1901 double temp = (double) SWIG_As_double(_val);
1902 if (PyErr_Occurred()) {
1903 PyErr_SetString(PyExc_TypeError, "C/C++ variable 'vfo_offset (double)'");
1912 static PyObject *_wrap_vfo_offset_get() {
1915 pyobj = SWIG_From_double((double)vfo_offset);
1920 static int _wrap_min_freq_set(PyObject *_val) {
1922 double temp = (double) SWIG_As_double(_val);
1923 if (PyErr_Occurred()) {
1924 PyErr_SetString(PyExc_TypeError, "C/C++ variable 'min_freq (double)'");
1933 static PyObject *_wrap_min_freq_get() {
1936 pyobj = SWIG_From_double((double)min_freq);
1941 static int _wrap_max_freq_set(PyObject *_val) {
1943 double temp = (double) SWIG_As_double(_val);
1944 if (PyErr_Occurred()) {
1945 PyErr_SetString(PyExc_TypeError, "C/C++ variable 'max_freq (double)'");
1954 static PyObject *_wrap_max_freq_get() {
1957 pyobj = SWIG_From_double((double)max_freq);
1962 static int _wrap_baseAdr_set(PyObject *_val) {
1965 if ((SWIG_ConvertPtr(_val, (void **)(&temp), SWIGTYPE_p_u_short, SWIG_POINTER_EXCEPTION)) == -1) {
1966 PyErr_SetString(PyExc_TypeError, "C/C++ variable 'baseAdr (u_short)'");
1969 baseAdr = *((u_short *) temp);
1975 static PyObject *_wrap_baseAdr_get() {
1978 pyobj = SWIG_NewPointerObj((void *)(&baseAdr), SWIGTYPE_p_u_short, 0);
1983 static int _wrap_curBandPlan_set(PyObject *_val) {
1985 if (sizeof(int) != sizeof(curBandPlan)) {
1986 PyErr_SetString(PyExc_TypeError, "enum variable 'curBandPlan' can not be set");
1989 if (!SWIG_AsVal_int(_val, (int*)(void*)&(curBandPlan))) {
1997 static PyObject *_wrap_curBandPlan_get() {
2000 pyobj = SWIG_From_int((int)curBandPlan);
2005 static int _wrap_TWO_TO_THE_48_DIVIDED_BY_200_set(PyObject *_val) {
2007 double temp = (double) SWIG_As_double(_val);
2008 if (PyErr_Occurred()) {
2009 PyErr_SetString(PyExc_TypeError, "C/C++ variable 'TWO_TO_THE_48_DIVIDED_BY_200 (double)'");
2012 TWO_TO_THE_48_DIVIDED_BY_200 = temp;
2018 static PyObject *_wrap_TWO_TO_THE_48_DIVIDED_BY_200_get() {
2021 pyobj = SWIG_From_double((double)TWO_TO_THE_48_DIVIDED_BY_200);
2026 static int _wrap_last_tuning_word_set(PyObject *_val) {
2028 long temp = (long) SWIG_As_long(_val);
2029 if (PyErr_Occurred()) {
2030 PyErr_SetString(PyExc_TypeError, "C/C++ variable 'last_tuning_word (long)'");
2033 last_tuning_word = temp;
2039 static PyObject *_wrap_last_tuning_word_get() {
2042 pyobj = SWIG_From_long((long)last_tuning_word);
2047 static int _wrap_usb_enabled_set(PyObject *_val) {
2049 BOOL temp = (BOOL) SWIG_As_int(_val);
2050 if (PyErr_Occurred()) {
2051 PyErr_SetString(PyExc_TypeError, "C/C++ variable 'usb_enabled (BOOL)'");
2060 static PyObject *_wrap_usb_enabled_get() {
2063 pyobj = SWIG_From_int((int)usb_enabled);
2068 static PyObject *_wrap_openPort(PyObject *self, PyObject *args) {
2069 PyObject *resultobj;
2072 PyObject * obj0 = 0 ;
2074 if(!PyArg_ParseTuple(args,(char *)"O:openPort",&obj0)) goto fail;
2075 if (!SWIG_AsCharPtr(obj0, (char**)&arg1)) SWIG_fail;
2076 result = (BOOL)openPort(arg1);
2078 resultobj = SWIG_From_int((int)result);
2085 static PyObject *_wrap_closePort(PyObject *self, PyObject *args) {
2086 PyObject *resultobj;
2088 if(!PyArg_ParseTuple(args,(char *)":closePort")) goto fail;
2091 Py_INCREF(Py_None); resultobj = Py_None;
2098 static PyObject *_wrap_USB_Sdr1kLatch(PyObject *self, PyObject *args) {
2099 PyObject *resultobj;
2102 PyObject * obj0 = 0 ;
2103 PyObject * obj1 = 0 ;
2105 if(!PyArg_ParseTuple(args,(char *)"OO:USB_Sdr1kLatch",&obj0,&obj1)) goto fail;
2106 arg1 = (int)SWIG_As_int(obj0);
2107 if (PyErr_Occurred()) SWIG_fail;
2108 arg2 = (BYTE)SWIG_As_unsigned_SS_char(obj1);
2109 if (PyErr_Occurred()) SWIG_fail;
2110 USB_Sdr1kLatch(arg1,arg2);
2112 Py_INCREF(Py_None); resultobj = Py_None;
2119 static PyObject *_wrap_USB_Sdr1kGetStatusPort(PyObject *self, PyObject *args) {
2120 PyObject *resultobj;
2123 if(!PyArg_ParseTuple(args,(char *)":USB_Sdr1kGetStatusPort")) goto fail;
2124 result = (BYTE)USB_Sdr1kGetStatusPort();
2126 resultobj = SWIG_From_unsigned_SS_char((unsigned char)result);
2133 static PyObject *_wrap_USB_Sdr1kGetADC(PyObject *self, PyObject *args) {
2134 PyObject *resultobj;
2137 if(!PyArg_ParseTuple(args,(char *)":USB_Sdr1kGetADC")) goto fail;
2138 result = (int)USB_Sdr1kGetADC();
2140 resultobj = SWIG_From_int((int)result);
2147 static PyObject *_wrap_USB_Sdr1kDDSReset(PyObject *self, PyObject *args) {
2148 PyObject *resultobj;
2150 if(!PyArg_ParseTuple(args,(char *)":USB_Sdr1kDDSReset")) goto fail;
2151 USB_Sdr1kDDSReset();
2153 Py_INCREF(Py_None); resultobj = Py_None;
2160 static PyObject *_wrap_USB_Sdr1kDDSWrite(PyObject *self, PyObject *args) {
2161 PyObject *resultobj;
2164 PyObject * obj0 = 0 ;
2165 PyObject * obj1 = 0 ;
2167 if(!PyArg_ParseTuple(args,(char *)"OO:USB_Sdr1kDDSWrite",&obj0,&obj1)) goto fail;
2168 arg1 = (BYTE)SWIG_As_unsigned_SS_char(obj0);
2169 if (PyErr_Occurred()) SWIG_fail;
2170 arg2 = (BYTE)SWIG_As_unsigned_SS_char(obj1);
2171 if (PyErr_Occurred()) SWIG_fail;
2172 USB_Sdr1kDDSWrite(arg1,arg2);
2174 Py_INCREF(Py_None); resultobj = Py_None;
2181 static PyObject *_wrap_USB_Sdr1kSRLoad(PyObject *self, PyObject *args) {
2182 PyObject *resultobj;
2185 PyObject * obj0 = 0 ;
2186 PyObject * obj1 = 0 ;
2188 if(!PyArg_ParseTuple(args,(char *)"OO:USB_Sdr1kSRLoad",&obj0,&obj1)) goto fail;
2189 arg1 = (BYTE)SWIG_As_unsigned_SS_char(obj0);
2190 if (PyErr_Occurred()) SWIG_fail;
2191 arg2 = (BYTE)SWIG_As_unsigned_SS_char(obj1);
2192 if (PyErr_Occurred()) SWIG_fail;
2193 USB_Sdr1kSRLoad(arg1,arg2);
2195 Py_INCREF(Py_None); resultobj = Py_None;
2202 static PyObject *_wrap_DttSP_ChangeOsc(PyObject *self, PyObject *args) {
2203 PyObject *resultobj;
2205 PyObject * obj0 = 0 ;
2207 if(!PyArg_ParseTuple(args,(char *)"O:DttSP_ChangeOsc",&obj0)) goto fail;
2208 arg1 = (double)SWIG_As_double(obj0);
2209 if (PyErr_Occurred()) SWIG_fail;
2210 DttSP_ChangeOsc(arg1);
2212 Py_INCREF(Py_None); resultobj = Py_None;
2219 static PyObject *_wrap_Init(PyObject *self, PyObject *args) {
2220 PyObject *resultobj;
2222 if(!PyArg_ParseTuple(args,(char *)":Init")) goto fail;
2225 Py_INCREF(Py_None); resultobj = Py_None;
2232 static PyObject *_wrap_PowerOn(PyObject *self, PyObject *args) {
2233 PyObject *resultobj;
2235 if(!PyArg_ParseTuple(args,(char *)":PowerOn")) goto fail;
2238 Py_INCREF(Py_None); resultobj = Py_None;
2245 static PyObject *_wrap_StandBy(PyObject *self, PyObject *args) {
2246 PyObject *resultobj;
2248 if(!PyArg_ParseTuple(args,(char *)":StandBy")) goto fail;
2251 Py_INCREF(Py_None); resultobj = Py_None;
2258 static PyObject *_wrap_Impulse(PyObject *self, PyObject *args) {
2259 PyObject *resultobj;
2261 if(!PyArg_ParseTuple(args,(char *)":Impulse")) goto fail;
2264 Py_INCREF(Py_None); resultobj = Py_None;
2271 static PyObject *_wrap_StatusPort(PyObject *self, PyObject *args) {
2272 PyObject *resultobj;
2275 if(!PyArg_ParseTuple(args,(char *)":StatusPort")) goto fail;
2276 result = (BYTE)StatusPort();
2278 resultobj = SWIG_From_unsigned_SS_char((unsigned char)result);
2285 static PyObject *_wrap_SetExt(PyObject *self, PyObject *args) {
2286 PyObject *resultobj;
2288 PyObject * obj0 = 0 ;
2290 if(!PyArg_ParseTuple(args,(char *)"O:SetExt",&obj0)) goto fail;
2291 arg1 = (int)SWIG_As_int(obj0);
2292 if (PyErr_Occurred()) SWIG_fail;
2293 SetExt((ExtPin )arg1);
2295 Py_INCREF(Py_None); resultobj = Py_None;
2302 static PyObject *_wrap_ResExt(PyObject *self, PyObject *args) {
2303 PyObject *resultobj;
2305 PyObject * obj0 = 0 ;
2307 if(!PyArg_ParseTuple(args,(char *)"O:ResExt",&obj0)) goto fail;
2308 arg1 = (int)SWIG_As_int(obj0);
2309 if (PyErr_Occurred()) SWIG_fail;
2310 ResExt((ExtPin )arg1);
2312 Py_INCREF(Py_None); resultobj = Py_None;
2319 static PyObject *_wrap_PinValue(PyObject *self, PyObject *args) {
2320 PyObject *resultobj;
2323 PyObject * obj0 = 0 ;
2325 if(!PyArg_ParseTuple(args,(char *)"O:PinValue",&obj0)) goto fail;
2326 arg1 = (int)SWIG_As_int(obj0);
2327 if (PyErr_Occurred()) SWIG_fail;
2328 result = (BOOL)PinValue((ExtPin )arg1);
2330 resultobj = SWIG_From_int((int)result);
2337 static PyObject *_wrap_SetBPF(PyObject *self, PyObject *args) {
2338 PyObject *resultobj;
2340 PyObject * obj0 = 0 ;
2342 if(!PyArg_ParseTuple(args,(char *)"O:SetBPF",&obj0)) goto fail;
2343 arg1 = (double)SWIG_As_double(obj0);
2344 if (PyErr_Occurred()) SWIG_fail;
2347 Py_INCREF(Py_None); resultobj = Py_None;
2354 static PyObject *_wrap_TestPort(PyObject *self, PyObject *args) {
2355 PyObject *resultobj;
2357 if(!PyArg_ParseTuple(args,(char *)":TestPort")) goto fail;
2360 Py_INCREF(Py_None); resultobj = Py_None;
2367 static PyObject *_wrap_RCKStrobe(PyObject *self, PyObject *args) {
2368 PyObject *resultobj;
2371 PyObject * obj0 = 0 ;
2372 PyObject * obj1 = 0 ;
2374 if(!PyArg_ParseTuple(args,(char *)"OO:RCKStrobe",&obj0,&obj1)) goto fail;
2375 arg1 = (BOOL)SWIG_As_int(obj0);
2376 if (PyErr_Occurred()) SWIG_fail;
2377 arg2 = (int)SWIG_As_int(obj1);
2378 if (PyErr_Occurred()) SWIG_fail;
2379 RCKStrobe(arg1,(RFE_RCK )arg2);
2381 Py_INCREF(Py_None); resultobj = Py_None;
2388 static PyObject *_wrap_SRLoad(PyObject *self, PyObject *args) {
2389 PyObject *resultobj;
2392 PyObject * obj0 = 0 ;
2393 PyObject * obj1 = 0 ;
2395 if(!PyArg_ParseTuple(args,(char *)"OO:SRLoad",&obj0,&obj1)) goto fail;
2396 arg1 = (int)SWIG_As_int(obj0);
2397 if (PyErr_Occurred()) SWIG_fail;
2398 arg2 = (int)SWIG_As_int(obj1);
2399 if (PyErr_Occurred()) SWIG_fail;
2400 SRLoad((RFE_RCK )arg1,arg2);
2402 Py_INCREF(Py_None); resultobj = Py_None;
2409 static PyObject *_wrap_ResetRFE(PyObject *self, PyObject *args) {
2410 PyObject *resultobj;
2412 if(!PyArg_ParseTuple(args,(char *)":ResetRFE")) goto fail;
2415 Py_INCREF(Py_None); resultobj = Py_None;
2422 static PyObject *_wrap_PA_SetLPF(PyObject *self, PyObject *args) {
2423 PyObject *resultobj;
2425 PyObject * obj0 = 0 ;
2427 if(!PyArg_ParseTuple(args,(char *)"O:PA_SetLPF",&obj0)) goto fail;
2428 arg1 = (int)SWIG_As_int(obj0);
2429 if (PyErr_Occurred()) SWIG_fail;
2432 Py_INCREF(Py_None); resultobj = Py_None;
2439 static PyObject *_wrap_PA_GetADC(PyObject *self, PyObject *args) {
2440 PyObject *resultobj;
2443 PyObject * obj0 = 0 ;
2445 if(!PyArg_ParseTuple(args,(char *)"O:PA_GetADC",&obj0)) goto fail;
2446 arg1 = (int)SWIG_As_int(obj0);
2447 if (PyErr_Occurred()) SWIG_fail;
2448 result = (BYTE)PA_GetADC(arg1);
2450 resultobj = SWIG_From_unsigned_SS_char((unsigned char)result);
2457 static PyObject *_wrap_PA_ATUTune(PyObject *self, PyObject *args) {
2458 PyObject *resultobj;
2461 PyObject * obj0 = 0 ;
2463 if(!PyArg_ParseTuple(args,(char *)"O:PA_ATUTune",&obj0)) goto fail;
2464 arg1 = (int)SWIG_As_int(obj0);
2465 if (PyErr_Occurred()) SWIG_fail;
2466 result = (BOOL)PA_ATUTune((ATUTuneMode )arg1);
2468 resultobj = SWIG_From_int((int)result);
2475 static PyObject *_wrap_getEnableLPF0(PyObject *self, PyObject *args) {
2476 PyObject *resultobj;
2479 if(!PyArg_ParseTuple(args,(char *)":getEnableLPF0")) goto fail;
2480 result = (BOOL)getEnableLPF0();
2482 resultobj = SWIG_From_int((int)result);
2489 static PyObject *_wrap_setEnableLPF0(PyObject *self, PyObject *args) {
2490 PyObject *resultobj;
2492 PyObject * obj0 = 0 ;
2494 if(!PyArg_ParseTuple(args,(char *)"O:setEnableLPF0",&obj0)) goto fail;
2495 arg1 = (BOOL)SWIG_As_int(obj0);
2496 if (PyErr_Occurred()) SWIG_fail;
2497 setEnableLPF0(arg1);
2499 Py_INCREF(Py_None); resultobj = Py_None;
2506 static PyObject *_wrap_getExtended(PyObject *self, PyObject *args) {
2507 PyObject *resultobj;
2510 if(!PyArg_ParseTuple(args,(char *)":getExtended")) goto fail;
2511 result = (BOOL)getExtended();
2513 resultobj = SWIG_From_int((int)result);
2520 static PyObject *_wrap_setExtended(PyObject *self, PyObject *args) {
2521 PyObject *resultobj;
2523 PyObject * obj0 = 0 ;
2525 if(!PyArg_ParseTuple(args,(char *)"O:setExtended",&obj0)) goto fail;
2526 arg1 = (BOOL)SWIG_As_int(obj0);
2527 if (PyErr_Occurred()) SWIG_fail;
2530 Py_INCREF(Py_None); resultobj = Py_None;
2537 static PyObject *_wrap_getX2Enabled(PyObject *self, PyObject *args) {
2538 PyObject *resultobj;
2541 if(!PyArg_ParseTuple(args,(char *)":getX2Enabled")) goto fail;
2542 result = (BOOL)getX2Enabled();
2544 resultobj = SWIG_From_int((int)result);
2551 static PyObject *_wrap_setX2Enabled(PyObject *self, PyObject *args) {
2552 PyObject *resultobj;
2554 PyObject * obj0 = 0 ;
2556 if(!PyArg_ParseTuple(args,(char *)"O:setX2Enabled",&obj0)) goto fail;
2557 arg1 = (BOOL)SWIG_As_int(obj0);
2558 if (PyErr_Occurred()) SWIG_fail;
2561 Py_INCREF(Py_None); resultobj = Py_None;
2568 static PyObject *_wrap_getX2Delay(PyObject *self, PyObject *args) {
2569 PyObject *resultobj;
2572 if(!PyArg_ParseTuple(args,(char *)":getX2Delay")) goto fail;
2573 result = (int)getX2Delay();
2575 resultobj = SWIG_From_int((int)result);
2582 static PyObject *_wrap_setX2Delay(PyObject *self, PyObject *args) {
2583 PyObject *resultobj;
2585 PyObject * obj0 = 0 ;
2587 if(!PyArg_ParseTuple(args,(char *)"O:setX2Delay",&obj0)) goto fail;
2588 arg1 = (int)SWIG_As_int(obj0);
2589 if (PyErr_Occurred()) SWIG_fail;
2592 Py_INCREF(Py_None); resultobj = Py_None;
2599 static PyObject *_wrap_getRFE_Enabled(PyObject *self, PyObject *args) {
2600 PyObject *resultobj;
2603 if(!PyArg_ParseTuple(args,(char *)":getRFE_Enabled")) goto fail;
2604 result = (BOOL)getRFE_Enabled();
2606 resultobj = SWIG_From_int((int)result);
2613 static PyObject *_wrap_setRFE_Enabled(PyObject *self, PyObject *args) {
2614 PyObject *resultobj;
2616 PyObject * obj0 = 0 ;
2618 if(!PyArg_ParseTuple(args,(char *)"O:setRFE_Enabled",&obj0)) goto fail;
2619 arg1 = (BOOL)SWIG_As_int(obj0);
2620 if (PyErr_Occurred()) SWIG_fail;
2621 setRFE_Enabled(arg1);
2623 Py_INCREF(Py_None); resultobj = Py_None;
2630 static PyObject *_wrap_getPA_Enabled(PyObject *self, PyObject *args) {
2631 PyObject *resultobj;
2634 if(!PyArg_ParseTuple(args,(char *)":getPA_Enabled")) goto fail;
2635 result = (BOOL)getPA_Enabled();
2637 resultobj = SWIG_From_int((int)result);
2644 static PyObject *_wrap_setPA_Enabled(PyObject *self, PyObject *args) {
2645 PyObject *resultobj;
2647 PyObject * obj0 = 0 ;
2649 if(!PyArg_ParseTuple(args,(char *)"O:setPA_Enabled",&obj0)) goto fail;
2650 arg1 = (BOOL)SWIG_As_int(obj0);
2651 if (PyErr_Occurred()) SWIG_fail;
2652 setPA_Enabled(arg1);
2654 Py_INCREF(Py_None); resultobj = Py_None;
2661 static PyObject *_wrap_getXVTR_Enabled(PyObject *self, PyObject *args) {
2662 PyObject *resultobj;
2665 if(!PyArg_ParseTuple(args,(char *)":getXVTR_Enabled")) goto fail;
2666 result = (BOOL)getXVTR_Enabled();
2668 resultobj = SWIG_From_int((int)result);
2675 static PyObject *_wrap_setXVTR_Enabled(PyObject *self, PyObject *args) {
2676 PyObject *resultobj;
2679 PyObject * obj0 = 0 ;
2681 if(!PyArg_ParseTuple(args,(char *)"O:setXVTR_Enabled",&obj0)) goto fail;
2682 arg1 = (BOOL)SWIG_As_int(obj0);
2683 if (PyErr_Occurred()) SWIG_fail;
2684 result = (BOOL)setXVTR_Enabled(arg1);
2686 resultobj = SWIG_From_int((int)result);
2693 static PyObject *_wrap_getUSB_Enabled(PyObject *self, PyObject *args) {
2694 PyObject *resultobj;
2697 if(!PyArg_ParseTuple(args,(char *)":getUSB_Enabled")) goto fail;
2698 result = (BOOL)getUSB_Enabled();
2700 resultobj = SWIG_From_int((int)result);
2707 static PyObject *_wrap_setUSB_Enabled(PyObject *self, PyObject *args) {
2708 PyObject *resultobj;
2710 PyObject * obj0 = 0 ;
2712 if(!PyArg_ParseTuple(args,(char *)"O:setUSB_Enabled",&obj0)) goto fail;
2713 arg1 = (BOOL)SWIG_As_int(obj0);
2714 if (PyErr_Occurred()) SWIG_fail;
2715 setUSB_Enabled(arg1);
2717 Py_INCREF(Py_None); resultobj = Py_None;
2724 static PyObject *_wrap_getCurrentXVTRTRMode(PyObject *self, PyObject *args) {
2725 PyObject *resultobj;
2728 if(!PyArg_ParseTuple(args,(char *)":getCurrentXVTRTRMode")) goto fail;
2729 result = (int)getCurrentXVTRTRMode();
2731 resultobj = SWIG_From_int((int)result);
2738 static PyObject *_wrap_setCurrentXVTRTRMode(PyObject *self, PyObject *args) {
2739 PyObject *resultobj;
2741 PyObject * obj0 = 0 ;
2743 if(!PyArg_ParseTuple(args,(char *)"O:setCurrentXVTRTRMode",&obj0)) goto fail;
2744 arg1 = (int)SWIG_As_int(obj0);
2745 if (PyErr_Occurred()) SWIG_fail;
2746 setCurrentXVTRTRMode((XVTRTRMode )arg1);
2748 Py_INCREF(Py_None); resultobj = Py_None;
2755 static PyObject *_wrap_getLatchDelay(PyObject *self, PyObject *args) {
2756 PyObject *resultobj;
2759 if(!PyArg_ParseTuple(args,(char *)":getLatchDelay")) goto fail;
2760 result = (int)getLatchDelay();
2762 resultobj = SWIG_From_int((int)result);
2769 static PyObject *_wrap_setLatchDelay(PyObject *self, PyObject *args) {
2770 PyObject *resultobj;
2772 PyObject * obj0 = 0 ;
2774 if(!PyArg_ParseTuple(args,(char *)"O:setLatchDelay",&obj0)) goto fail;
2775 arg1 = (int)SWIG_As_int(obj0);
2776 if (PyErr_Occurred()) SWIG_fail;
2777 setLatchDelay(arg1);
2779 Py_INCREF(Py_None); resultobj = Py_None;
2786 static PyObject *_wrap_getMinFreq(PyObject *self, PyObject *args) {
2787 PyObject *resultobj;
2790 if(!PyArg_ParseTuple(args,(char *)":getMinFreq")) goto fail;
2791 result = (double)getMinFreq();
2793 resultobj = SWIG_From_double((double)result);
2800 static PyObject *_wrap_getMaxFreq(PyObject *self, PyObject *args) {
2801 PyObject *resultobj;
2804 if(!PyArg_ParseTuple(args,(char *)":getMaxFreq")) goto fail;
2805 result = (double)getMaxFreq();
2807 resultobj = SWIG_From_double((double)result);
2814 static PyObject *_wrap_getBaseAddr(PyObject *self, PyObject *args) {
2815 PyObject *resultobj;
2818 if(!PyArg_ParseTuple(args,(char *)":getBaseAddr")) goto fail;
2819 result = getBaseAddr();
2822 u_short * resultptr;
2823 resultptr = (u_short *) malloc(sizeof(u_short));
2824 memmove(resultptr, &result, sizeof(u_short));
2825 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_u_short, 1);
2833 static PyObject *_wrap_setBaseAddr(PyObject *self, PyObject *args) {
2834 PyObject *resultobj;
2838 PyObject * obj0 = 0 ;
2840 if(!PyArg_ParseTuple(args,(char *)"O:setBaseAddr",&obj0)) goto fail;
2841 if ((SWIG_ConvertPtr(obj0,(void **)(&argp1),SWIGTYPE_p_u_short,
2842 SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail;
2844 result = setBaseAddr(arg1);
2847 u_short * resultptr;
2848 resultptr = (u_short *) malloc(sizeof(u_short));
2849 memmove(resultptr, &result, sizeof(u_short));
2850 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_u_short, 1);
2858 static PyObject *_wrap_getBandRelay(PyObject *self, PyObject *args) {
2859 PyObject *resultobj;
2862 if(!PyArg_ParseTuple(args,(char *)":getBandRelay")) goto fail;
2863 result = (int)getBandRelay();
2865 resultobj = SWIG_From_int((int)result);
2872 static PyObject *_wrap_setBandRelay(PyObject *self, PyObject *args) {
2873 PyObject *resultobj;
2875 PyObject * obj0 = 0 ;
2877 if(!PyArg_ParseTuple(args,(char *)"O:setBandRelay",&obj0)) goto fail;
2878 arg1 = (int)SWIG_As_int(obj0);
2879 if (PyErr_Occurred()) SWIG_fail;
2880 setBandRelay((BandSetting )arg1);
2882 Py_INCREF(Py_None); resultobj = Py_None;
2889 static PyObject *_wrap_getTransmitRelay(PyObject *self, PyObject *args) {
2890 PyObject *resultobj;
2893 if(!PyArg_ParseTuple(args,(char *)":getTransmitRelay")) goto fail;
2894 result = (BOOL)getTransmitRelay();
2896 resultobj = SWIG_From_int((int)result);
2903 static PyObject *_wrap_setTransmitRelay(PyObject *self, PyObject *args) {
2904 PyObject *resultobj;
2906 PyObject * obj0 = 0 ;
2908 if(!PyArg_ParseTuple(args,(char *)"O:setTransmitRelay",&obj0)) goto fail;
2909 arg1 = (BOOL)SWIG_As_int(obj0);
2910 if (PyErr_Occurred()) SWIG_fail;
2911 setTransmitRelay(arg1);
2913 Py_INCREF(Py_None); resultobj = Py_None;
2920 static PyObject *_wrap_getMuteRelay(PyObject *self, PyObject *args) {
2921 PyObject *resultobj;
2924 if(!PyArg_ParseTuple(args,(char *)":getMuteRelay")) goto fail;
2925 result = (BOOL)getMuteRelay();
2927 resultobj = SWIG_From_int((int)result);
2934 static PyObject *_wrap_setMuteRelay(PyObject *self, PyObject *args) {
2935 PyObject *resultobj;
2937 PyObject * obj0 = 0 ;
2939 if(!PyArg_ParseTuple(args,(char *)"O:setMuteRelay",&obj0)) goto fail;
2940 arg1 = (BOOL)SWIG_As_int(obj0);
2941 if (PyErr_Occurred()) SWIG_fail;
2944 Py_INCREF(Py_None); resultobj = Py_None;
2951 static PyObject *_wrap_getGainRelay(PyObject *self, PyObject *args) {
2952 PyObject *resultobj;
2955 if(!PyArg_ParseTuple(args,(char *)":getGainRelay")) goto fail;
2956 result = (BOOL)getGainRelay();
2958 resultobj = SWIG_From_int((int)result);
2965 static PyObject *_wrap_setGainRelay(PyObject *self, PyObject *args) {
2966 PyObject *resultobj;
2968 PyObject * obj0 = 0 ;
2970 if(!PyArg_ParseTuple(args,(char *)"O:setGainRelay",&obj0)) goto fail;
2971 arg1 = (BOOL)SWIG_As_int(obj0);
2972 if (PyErr_Occurred()) SWIG_fail;
2975 Py_INCREF(Py_None); resultobj = Py_None;
2982 static PyObject *_wrap_getExternalOutput(PyObject *self, PyObject *args) {
2983 PyObject *resultobj;
2986 if(!PyArg_ParseTuple(args,(char *)":getExternalOutput")) goto fail;
2987 result = (int)getExternalOutput();
2989 resultobj = SWIG_From_int((int)result);
2996 static PyObject *_wrap_setExternalOutput(PyObject *self, PyObject *args) {
2997 PyObject *resultobj;
2999 PyObject * obj0 = 0 ;
3001 if(!PyArg_ParseTuple(args,(char *)"O:setExternalOutput",&obj0)) goto fail;
3002 arg1 = (int)SWIG_As_int(obj0);
3003 if (PyErr_Occurred()) SWIG_fail;
3004 setExternalOutput(arg1);
3006 Py_INCREF(Py_None); resultobj = Py_None;
3013 static PyObject *_wrap_getDDSClockCorrection(PyObject *self, PyObject *args) {
3014 PyObject *resultobj;
3017 if(!PyArg_ParseTuple(args,(char *)":getDDSClockCorrection")) goto fail;
3018 result = (double)getDDSClockCorrection();
3020 resultobj = SWIG_From_double((double)result);
3027 static PyObject *_wrap_setDDSClockCorrection(PyObject *self, PyObject *args) {
3028 PyObject *resultobj;
3030 PyObject * obj0 = 0 ;
3032 if(!PyArg_ParseTuple(args,(char *)"O:setDDSClockCorrection",&obj0)) goto fail;
3033 arg1 = (double)SWIG_As_double(obj0);
3034 if (PyErr_Occurred()) SWIG_fail;
3035 setDDSClockCorrection(arg1);
3037 Py_INCREF(Py_None); resultobj = Py_None;
3044 static PyObject *_wrap_getPLLMult(PyObject *self, PyObject *args) {
3045 PyObject *resultobj;
3048 if(!PyArg_ParseTuple(args,(char *)":getPLLMult")) goto fail;
3049 result = (int)getPLLMult();
3051 resultobj = SWIG_From_int((int)result);
3058 static PyObject *_wrap_setPLLMult(PyObject *self, PyObject *args) {
3059 PyObject *resultobj;
3061 PyObject * obj0 = 0 ;
3063 if(!PyArg_ParseTuple(args,(char *)"O:setPLLMult",&obj0)) goto fail;
3064 arg1 = (int)SWIG_As_int(obj0);
3065 if (PyErr_Occurred()) SWIG_fail;
3068 Py_INCREF(Py_None); resultobj = Py_None;
3075 static PyObject *_wrap_getDDSClock(PyObject *self, PyObject *args) {
3076 PyObject *resultobj;
3079 if(!PyArg_ParseTuple(args,(char *)":getDDSClock")) goto fail;
3080 result = (double)getDDSClock();
3082 resultobj = SWIG_From_double((double)result);
3089 static PyObject *_wrap_setDDSClock(PyObject *self, PyObject *args) {
3090 PyObject *resultobj;
3092 PyObject * obj0 = 0 ;
3094 if(!PyArg_ParseTuple(args,(char *)"O:setDDSClock",&obj0)) goto fail;
3095 arg1 = (double)SWIG_As_double(obj0);
3096 if (PyErr_Occurred()) SWIG_fail;
3099 Py_INCREF(Py_None); resultobj = Py_None;
3106 static PyObject *_wrap_getIFShift(PyObject *self, PyObject *args) {
3107 PyObject *resultobj;
3110 if(!PyArg_ParseTuple(args,(char *)":getIFShift")) goto fail;
3111 result = (BOOL)getIFShift();
3113 resultobj = SWIG_From_int((int)result);
3120 static PyObject *_wrap_setIFShift(PyObject *self, PyObject *args) {
3121 PyObject *resultobj;
3123 PyObject * obj0 = 0 ;
3125 if(!PyArg_ParseTuple(args,(char *)"O:setIFShift",&obj0)) goto fail;
3126 arg1 = (BOOL)SWIG_As_int(obj0);
3127 if (PyErr_Occurred()) SWIG_fail;
3130 Py_INCREF(Py_None); resultobj = Py_None;
3137 static PyObject *_wrap_getSpurReduction(PyObject *self, PyObject *args) {
3138 PyObject *resultobj;
3141 if(!PyArg_ParseTuple(args,(char *)":getSpurReduction")) goto fail;
3142 result = (BOOL)getSpurReduction();
3144 resultobj = SWIG_From_int((int)result);
3151 static PyObject *_wrap_setSpurReduction(PyObject *self, PyObject *args) {
3152 PyObject *resultobj;
3155 PyObject * obj0 = 0 ;
3157 if(!PyArg_ParseTuple(args,(char *)"O:setSpurReduction",&obj0)) goto fail;
3158 arg1 = (BOOL)SWIG_As_int(obj0);
3159 if (PyErr_Occurred()) SWIG_fail;
3160 result = (BOOL)setSpurReduction(arg1);
3162 resultobj = SWIG_From_int((int)result);
3169 static PyObject *_wrap_getIFFreq(PyObject *self, PyObject *args) {
3170 PyObject *resultobj;
3173 if(!PyArg_ParseTuple(args,(char *)":getIFFreq")) goto fail;
3174 result = (double)getIFFreq();
3176 resultobj = SWIG_From_double((double)result);
3183 static PyObject *_wrap_setIFFreq(PyObject *self, PyObject *args) {
3184 PyObject *resultobj;
3186 PyObject * obj0 = 0 ;
3188 if(!PyArg_ParseTuple(args,(char *)"O:setIFFreq",&obj0)) goto fail;
3189 arg1 = (double)SWIG_As_double(obj0);
3190 if (PyErr_Occurred()) SWIG_fail;
3193 Py_INCREF(Py_None); resultobj = Py_None;
3200 static PyObject *_wrap_getDDSFreq(PyObject *self, PyObject *args) {
3201 PyObject *resultobj;
3204 if(!PyArg_ParseTuple(args,(char *)":getDDSFreq")) goto fail;
3205 result = (double)getDDSFreq();
3207 resultobj = SWIG_From_double((double)result);
3214 static PyObject *_wrap_setDDSFreq(PyObject *self, PyObject *args) {
3215 PyObject *resultobj;
3217 PyObject * obj0 = 0 ;
3219 if(!PyArg_ParseTuple(args,(char *)"O:setDDSFreq",&obj0)) goto fail;
3220 arg1 = (double)SWIG_As_double(obj0);
3221 if (PyErr_Occurred()) SWIG_fail;
3224 Py_INCREF(Py_None); resultobj = Py_None;
3231 static PyObject *_wrap_getSampleRate(PyObject *self, PyObject *args) {
3232 PyObject *resultobj;
3235 if(!PyArg_ParseTuple(args,(char *)":getSampleRate")) goto fail;
3236 result = (int)getSampleRate();
3238 resultobj = SWIG_From_int((int)result);
3245 static PyObject *_wrap_setSampleRate(PyObject *self, PyObject *args) {
3246 PyObject *resultobj;
3248 PyObject * obj0 = 0 ;
3250 if(!PyArg_ParseTuple(args,(char *)"O:setSampleRate",&obj0)) goto fail;
3251 arg1 = (int)SWIG_As_int(obj0);
3252 if (PyErr_Occurred()) SWIG_fail;
3253 setSampleRate(arg1);
3255 Py_INCREF(Py_None); resultobj = Py_None;
3262 static PyObject *_wrap_getFFTLength(PyObject *self, PyObject *args) {
3263 PyObject *resultobj;
3266 if(!PyArg_ParseTuple(args,(char *)":getFFTLength")) goto fail;
3267 result = (int)getFFTLength();
3269 resultobj = SWIG_From_int((int)result);
3276 static PyObject *_wrap_setFFTLength(PyObject *self, PyObject *args) {
3277 PyObject *resultobj;
3279 PyObject * obj0 = 0 ;
3281 if(!PyArg_ParseTuple(args,(char *)"O:setFFTLength",&obj0)) goto fail;
3282 arg1 = (int)SWIG_As_int(obj0);
3283 if (PyErr_Occurred()) SWIG_fail;
3286 Py_INCREF(Py_None); resultobj = Py_None;
3293 static PyObject *_wrap_getTuneFFT(PyObject *self, PyObject *args) {
3294 PyObject *resultobj;
3297 if(!PyArg_ParseTuple(args,(char *)":getTuneFFT")) goto fail;
3298 result = (int)getTuneFFT();
3300 resultobj = SWIG_From_int((int)result);
3307 static PyObject *_wrap_getTuneFracRel(PyObject *self, PyObject *args) {
3308 PyObject *resultobj;
3311 if(!PyArg_ParseTuple(args,(char *)":getTuneFracRel")) goto fail;
3312 result = (double)getTuneFracRel();
3314 resultobj = SWIG_From_double((double)result);
3321 static PyObject *_wrap_getVFOOffset(PyObject *self, PyObject *args) {
3322 PyObject *resultobj;
3325 if(!PyArg_ParseTuple(args,(char *)":getVFOOffset")) goto fail;
3326 result = (double)getVFOOffset();
3328 resultobj = SWIG_From_double((double)result);
3335 static PyObject *_wrap_setVFOOffset(PyObject *self, PyObject *args) {
3336 PyObject *resultobj;
3338 PyObject * obj0 = 0 ;
3340 if(!PyArg_ParseTuple(args,(char *)"O:setVFOOffset",&obj0)) goto fail;
3341 arg1 = (double)SWIG_As_double(obj0);
3342 if (PyErr_Occurred()) SWIG_fail;
3345 Py_INCREF(Py_None); resultobj = Py_None;
3352 static PyObject *_wrap_getIOUDClock(PyObject *self, PyObject *args) {
3353 PyObject *resultobj;
3356 if(!PyArg_ParseTuple(args,(char *)":getIOUDClock")) goto fail;
3357 result = (int)getIOUDClock();
3359 resultobj = SWIG_From_int((int)result);
3366 static PyObject *_wrap_setIOUDClock(PyObject *self, PyObject *args) {
3367 PyObject *resultobj;
3369 PyObject * obj0 = 0 ;
3371 if(!PyArg_ParseTuple(args,(char *)"O:setIOUDClock",&obj0)) goto fail;
3372 arg1 = (int)SWIG_As_int(obj0);
3373 if (PyErr_Occurred()) SWIG_fail;
3376 Py_INCREF(Py_None); resultobj = Py_None;
3383 static PyObject *_wrap_getDACMult(PyObject *self, PyObject *args) {
3384 PyObject *resultobj;
3387 if(!PyArg_ParseTuple(args,(char *)":getDACMult")) goto fail;
3388 result = getDACMult();
3391 u_short * resultptr;
3392 resultptr = (u_short *) malloc(sizeof(u_short));
3393 memmove(resultptr, &result, sizeof(u_short));
3394 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_u_short, 1);
3402 static PyObject *_wrap_setDACMult(PyObject *self, PyObject *args) {
3403 PyObject *resultobj;
3406 PyObject * obj0 = 0 ;
3408 if(!PyArg_ParseTuple(args,(char *)"O:setDACMult",&obj0)) goto fail;
3409 if ((SWIG_ConvertPtr(obj0,(void **)(&argp1),SWIGTYPE_p_u_short,
3410 SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail;
3414 Py_INCREF(Py_None); resultobj = Py_None;
3421 static PyObject *_wrap_getAMP_Relay(PyObject *self, PyObject *args) {
3422 PyObject *resultobj;
3425 if(!PyArg_ParseTuple(args,(char *)":getAMP_Relay")) goto fail;
3426 result = (BOOL)getAMP_Relay();
3428 resultobj = SWIG_From_int((int)result);
3435 static PyObject *_wrap_setAMP_Relay(PyObject *self, PyObject *args) {
3436 PyObject *resultobj;
3439 PyObject * obj0 = 0 ;
3441 if(!PyArg_ParseTuple(args,(char *)"O:setAMP_Relay",&obj0)) goto fail;
3442 arg1 = (BOOL)SWIG_As_int(obj0);
3443 if (PyErr_Occurred()) SWIG_fail;
3444 result = (BOOL)setAMP_Relay(arg1);
3446 resultobj = SWIG_From_int((int)result);
3453 static PyObject *_wrap_getATTN_Relay(PyObject *self, PyObject *args) {
3454 PyObject *resultobj;
3457 if(!PyArg_ParseTuple(args,(char *)":getATTN_Relay")) goto fail;
3458 result = (BOOL)getATTN_Relay();
3460 resultobj = SWIG_From_int((int)result);
3467 static PyObject *_wrap_setATTN_Relay(PyObject *self, PyObject *args) {
3468 PyObject *resultobj;
3470 PyObject * obj0 = 0 ;
3472 if(!PyArg_ParseTuple(args,(char *)"O:setATTN_Relay",&obj0)) goto fail;
3473 arg1 = (BOOL)SWIG_As_int(obj0);
3474 if (PyErr_Occurred()) SWIG_fail;
3475 setATTN_Relay(arg1);
3477 Py_INCREF(Py_None); resultobj = Py_None;
3484 static PyObject *_wrap_getXVTR_TR_Relay(PyObject *self, PyObject *args) {
3485 PyObject *resultobj;
3488 if(!PyArg_ParseTuple(args,(char *)":getXVTR_TR_Relay")) goto fail;
3489 result = (BOOL)getXVTR_TR_Relay();
3491 resultobj = SWIG_From_int((int)result);
3498 static PyObject *_wrap_setXVTR_TR_Relay(PyObject *self, PyObject *args) {
3499 PyObject *resultobj;
3502 PyObject * obj0 = 0 ;
3504 if(!PyArg_ParseTuple(args,(char *)"O:setXVTR_TR_Relay",&obj0)) goto fail;
3505 arg1 = (BOOL)SWIG_As_int(obj0);
3506 if (PyErr_Occurred()) SWIG_fail;
3507 result = (BOOL)setXVTR_TR_Relay(arg1);
3509 resultobj = SWIG_From_int((int)result);
3516 static PyObject *_wrap_getXVTR_Relay(PyObject *self, PyObject *args) {
3517 PyObject *resultobj;
3520 if(!PyArg_ParseTuple(args,(char *)":getXVTR_Relay")) goto fail;
3521 result = (BOOL)getXVTR_Relay();
3523 resultobj = SWIG_From_int((int)result);
3530 static PyObject *_wrap_setXVTR_Relay(PyObject *self, PyObject *args) {
3531 PyObject *resultobj;
3534 PyObject * obj0 = 0 ;
3536 if(!PyArg_ParseTuple(args,(char *)"O:setXVTR_Relay",&obj0)) goto fail;
3537 arg1 = (BOOL)SWIG_As_int(obj0);
3538 if (PyErr_Occurred()) SWIG_fail;
3539 result = (BOOL)setXVTR_Relay(arg1);
3541 resultobj = SWIG_From_int((int)result);
3548 static PyObject *_wrap_getIMPULSE_Relay(PyObject *self, PyObject *args) {
3549 PyObject *resultobj;
3552 if(!PyArg_ParseTuple(args,(char *)":getIMPULSE_Relay")) goto fail;
3553 result = (BOOL)getIMPULSE_Relay();
3555 resultobj = SWIG_From_int((int)result);
3562 static PyObject *_wrap_setIMPULSE_Relay(PyObject *self, PyObject *args) {
3563 PyObject *resultobj;
3566 PyObject * obj0 = 0 ;
3568 if(!PyArg_ParseTuple(args,(char *)"O:setIMPULSE_Relay",&obj0)) goto fail;
3569 arg1 = (BOOL)SWIG_As_int(obj0);
3570 if (PyErr_Occurred()) SWIG_fail;
3571 result = (BOOL)setIMPULSE_Relay(arg1);
3573 resultobj = SWIG_From_int((int)result);
3580 static PyObject *_wrap_getPA_TransmitRelay(PyObject *self, PyObject *args) {
3581 PyObject *resultobj;
3584 if(!PyArg_ParseTuple(args,(char *)":getPA_TransmitRelay")) goto fail;
3585 result = (BOOL)getPA_TransmitRelay();
3587 resultobj = SWIG_From_int((int)result);
3594 static PyObject *_wrap_setPA_TransmitRelay(PyObject *self, PyObject *args) {
3595 PyObject *resultobj;
3598 PyObject * obj0 = 0 ;
3600 if(!PyArg_ParseTuple(args,(char *)"O:setPA_TransmitRelay",&obj0)) goto fail;
3601 arg1 = (BOOL)SWIG_As_int(obj0);
3602 if (PyErr_Occurred()) SWIG_fail;
3603 result = (BOOL)setPA_TransmitRelay(arg1);
3605 resultobj = SWIG_From_int((int)result);
3612 static PyObject *_wrap_getPA_BiasOn(PyObject *self, PyObject *args) {
3613 PyObject *resultobj;
3616 if(!PyArg_ParseTuple(args,(char *)":getPA_BiasOn")) goto fail;
3617 result = (BOOL)getPA_BiasOn();
3619 resultobj = SWIG_From_int((int)result);
3626 static PyObject *_wrap_setPA_BiasOn(PyObject *self, PyObject *args) {
3627 PyObject *resultobj;
3630 PyObject * obj0 = 0 ;
3632 if(!PyArg_ParseTuple(args,(char *)"O:setPA_BiasOn",&obj0)) goto fail;
3633 arg1 = (BOOL)SWIG_As_int(obj0);
3634 if (PyErr_Occurred()) SWIG_fail;
3635 result = (BOOL)setPA_BiasOn(arg1);
3637 resultobj = SWIG_From_int((int)result);
3644 static PyMethodDef SwigMethods[] = {
3645 { (char *)"openPort", _wrap_openPort, METH_VARARGS, NULL },
3646 { (char *)"closePort", _wrap_closePort, METH_VARARGS, NULL },
3647 { (char *)"USB_Sdr1kLatch", _wrap_USB_Sdr1kLatch, METH_VARARGS, NULL },
3648 { (char *)"USB_Sdr1kGetStatusPort", _wrap_USB_Sdr1kGetStatusPort, METH_VARARGS, NULL },
3649 { (char *)"USB_Sdr1kGetADC", _wrap_USB_Sdr1kGetADC, METH_VARARGS, NULL },
3650 { (char *)"USB_Sdr1kDDSReset", _wrap_USB_Sdr1kDDSReset, METH_VARARGS, NULL },
3651 { (char *)"USB_Sdr1kDDSWrite", _wrap_USB_Sdr1kDDSWrite, METH_VARARGS, NULL },
3652 { (char *)"USB_Sdr1kSRLoad", _wrap_USB_Sdr1kSRLoad, METH_VARARGS, NULL },
3653 { (char *)"DttSP_ChangeOsc", _wrap_DttSP_ChangeOsc, METH_VARARGS, NULL },
3654 { (char *)"Init", _wrap_Init, METH_VARARGS, NULL },
3655 { (char *)"PowerOn", _wrap_PowerOn, METH_VARARGS, NULL },
3656 { (char *)"StandBy", _wrap_StandBy, METH_VARARGS, NULL },
3657 { (char *)"Impulse", _wrap_Impulse, METH_VARARGS, NULL },
3658 { (char *)"StatusPort", _wrap_StatusPort, METH_VARARGS, NULL },
3659 { (char *)"SetExt", _wrap_SetExt, METH_VARARGS, NULL },
3660 { (char *)"ResExt", _wrap_ResExt, METH_VARARGS, NULL },
3661 { (char *)"PinValue", _wrap_PinValue, METH_VARARGS, NULL },
3662 { (char *)"SetBPF", _wrap_SetBPF, METH_VARARGS, NULL },
3663 { (char *)"TestPort", _wrap_TestPort, METH_VARARGS, NULL },
3664 { (char *)"RCKStrobe", _wrap_RCKStrobe, METH_VARARGS, NULL },
3665 { (char *)"SRLoad", _wrap_SRLoad, METH_VARARGS, NULL },
3666 { (char *)"ResetRFE", _wrap_ResetRFE, METH_VARARGS, NULL },
3667 { (char *)"PA_SetLPF", _wrap_PA_SetLPF, METH_VARARGS, NULL },
3668 { (char *)"PA_GetADC", _wrap_PA_GetADC, METH_VARARGS, NULL },
3669 { (char *)"PA_ATUTune", _wrap_PA_ATUTune, METH_VARARGS, NULL },
3670 { (char *)"getEnableLPF0", _wrap_getEnableLPF0, METH_VARARGS, NULL },
3671 { (char *)"setEnableLPF0", _wrap_setEnableLPF0, METH_VARARGS, NULL },
3672 { (char *)"getExtended", _wrap_getExtended, METH_VARARGS, NULL },
3673 { (char *)"setExtended", _wrap_setExtended, METH_VARARGS, NULL },
3674 { (char *)"getX2Enabled", _wrap_getX2Enabled, METH_VARARGS, NULL },
3675 { (char *)"setX2Enabled", _wrap_setX2Enabled, METH_VARARGS, NULL },
3676 { (char *)"getX2Delay", _wrap_getX2Delay, METH_VARARGS, NULL },
3677 { (char *)"setX2Delay", _wrap_setX2Delay, METH_VARARGS, NULL },
3678 { (char *)"getRFE_Enabled", _wrap_getRFE_Enabled, METH_VARARGS, NULL },
3679 { (char *)"setRFE_Enabled", _wrap_setRFE_Enabled, METH_VARARGS, NULL },
3680 { (char *)"getPA_Enabled", _wrap_getPA_Enabled, METH_VARARGS, NULL },
3681 { (char *)"setPA_Enabled", _wrap_setPA_Enabled, METH_VARARGS, NULL },
3682 { (char *)"getXVTR_Enabled", _wrap_getXVTR_Enabled, METH_VARARGS, NULL },
3683 { (char *)"setXVTR_Enabled", _wrap_setXVTR_Enabled, METH_VARARGS, NULL },
3684 { (char *)"getUSB_Enabled", _wrap_getUSB_Enabled, METH_VARARGS, NULL },
3685 { (char *)"setUSB_Enabled", _wrap_setUSB_Enabled, METH_VARARGS, NULL },
3686 { (char *)"getCurrentXVTRTRMode", _wrap_getCurrentXVTRTRMode, METH_VARARGS, NULL },
3687 { (char *)"setCurrentXVTRTRMode", _wrap_setCurrentXVTRTRMode, METH_VARARGS, NULL },
3688 { (char *)"getLatchDelay", _wrap_getLatchDelay, METH_VARARGS, NULL },
3689 { (char *)"setLatchDelay", _wrap_setLatchDelay, METH_VARARGS, NULL },
3690 { (char *)"getMinFreq", _wrap_getMinFreq, METH_VARARGS, NULL },
3691 { (char *)"getMaxFreq", _wrap_getMaxFreq, METH_VARARGS, NULL },
3692 { (char *)"getBaseAddr", _wrap_getBaseAddr, METH_VARARGS, NULL },
3693 { (char *)"setBaseAddr", _wrap_setBaseAddr, METH_VARARGS, NULL },
3694 { (char *)"getBandRelay", _wrap_getBandRelay, METH_VARARGS, NULL },
3695 { (char *)"setBandRelay", _wrap_setBandRelay, METH_VARARGS, NULL },
3696 { (char *)"getTransmitRelay", _wrap_getTransmitRelay, METH_VARARGS, NULL },
3697 { (char *)"setTransmitRelay", _wrap_setTransmitRelay, METH_VARARGS, NULL },
3698 { (char *)"getMuteRelay", _wrap_getMuteRelay, METH_VARARGS, NULL },
3699 { (char *)"setMuteRelay", _wrap_setMuteRelay, METH_VARARGS, NULL },
3700 { (char *)"getGainRelay", _wrap_getGainRelay, METH_VARARGS, NULL },
3701 { (char *)"setGainRelay", _wrap_setGainRelay, METH_VARARGS, NULL },
3702 { (char *)"getExternalOutput", _wrap_getExternalOutput, METH_VARARGS, NULL },
3703 { (char *)"setExternalOutput", _wrap_setExternalOutput, METH_VARARGS, NULL },
3704 { (char *)"getDDSClockCorrection", _wrap_getDDSClockCorrection, METH_VARARGS, NULL },
3705 { (char *)"setDDSClockCorrection", _wrap_setDDSClockCorrection, METH_VARARGS, NULL },
3706 { (char *)"getPLLMult", _wrap_getPLLMult, METH_VARARGS, NULL },
3707 { (char *)"setPLLMult", _wrap_setPLLMult, METH_VARARGS, NULL },
3708 { (char *)"getDDSClock", _wrap_getDDSClock, METH_VARARGS, NULL },
3709 { (char *)"setDDSClock", _wrap_setDDSClock, METH_VARARGS, NULL },
3710 { (char *)"getIFShift", _wrap_getIFShift, METH_VARARGS, NULL },
3711 { (char *)"setIFShift", _wrap_setIFShift, METH_VARARGS, NULL },
3712 { (char *)"getSpurReduction", _wrap_getSpurReduction, METH_VARARGS, NULL },
3713 { (char *)"setSpurReduction", _wrap_setSpurReduction, METH_VARARGS, NULL },
3714 { (char *)"getIFFreq", _wrap_getIFFreq, METH_VARARGS, NULL },
3715 { (char *)"setIFFreq", _wrap_setIFFreq, METH_VARARGS, NULL },
3716 { (char *)"getDDSFreq", _wrap_getDDSFreq, METH_VARARGS, NULL },
3717 { (char *)"setDDSFreq", _wrap_setDDSFreq, METH_VARARGS, NULL },
3718 { (char *)"getSampleRate", _wrap_getSampleRate, METH_VARARGS, NULL },
3719 { (char *)"setSampleRate", _wrap_setSampleRate, METH_VARARGS, NULL },
3720 { (char *)"getFFTLength", _wrap_getFFTLength, METH_VARARGS, NULL },
3721 { (char *)"setFFTLength", _wrap_setFFTLength, METH_VARARGS, NULL },
3722 { (char *)"getTuneFFT", _wrap_getTuneFFT, METH_VARARGS, NULL },
3723 { (char *)"getTuneFracRel", _wrap_getTuneFracRel, METH_VARARGS, NULL },
3724 { (char *)"getVFOOffset", _wrap_getVFOOffset, METH_VARARGS, NULL },
3725 { (char *)"setVFOOffset", _wrap_setVFOOffset, METH_VARARGS, NULL },
3726 { (char *)"getIOUDClock", _wrap_getIOUDClock, METH_VARARGS, NULL },
3727 { (char *)"setIOUDClock", _wrap_setIOUDClock, METH_VARARGS, NULL },
3728 { (char *)"getDACMult", _wrap_getDACMult, METH_VARARGS, NULL },
3729 { (char *)"setDACMult", _wrap_setDACMult, METH_VARARGS, NULL },
3730 { (char *)"getAMP_Relay", _wrap_getAMP_Relay, METH_VARARGS, NULL },
3731 { (char *)"setAMP_Relay", _wrap_setAMP_Relay, METH_VARARGS, NULL },
3732 { (char *)"getATTN_Relay", _wrap_getATTN_Relay, METH_VARARGS, NULL },
3733 { (char *)"setATTN_Relay", _wrap_setATTN_Relay, METH_VARARGS, NULL },
3734 { (char *)"getXVTR_TR_Relay", _wrap_getXVTR_TR_Relay, METH_VARARGS, NULL },
3735 { (char *)"setXVTR_TR_Relay", _wrap_setXVTR_TR_Relay, METH_VARARGS, NULL },
3736 { (char *)"getXVTR_Relay", _wrap_getXVTR_Relay, METH_VARARGS, NULL },
3737 { (char *)"setXVTR_Relay", _wrap_setXVTR_Relay, METH_VARARGS, NULL },
3738 { (char *)"getIMPULSE_Relay", _wrap_getIMPULSE_Relay, METH_VARARGS, NULL },
3739 { (char *)"setIMPULSE_Relay", _wrap_setIMPULSE_Relay, METH_VARARGS, NULL },
3740 { (char *)"getPA_TransmitRelay", _wrap_getPA_TransmitRelay, METH_VARARGS, NULL },
3741 { (char *)"setPA_TransmitRelay", _wrap_setPA_TransmitRelay, METH_VARARGS, NULL },
3742 { (char *)"getPA_BiasOn", _wrap_getPA_BiasOn, METH_VARARGS, NULL },
3743 { (char *)"setPA_BiasOn", _wrap_setPA_BiasOn, METH_VARARGS, NULL },
3744 { NULL, NULL, 0, NULL }
3748 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
3750 static swig_type_info _swigt__p_ushort[] = {{"_p_ushort", 0, "ushort *", 0, 0, 0, 0},{"_p_ushort", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
3751 static swig_type_info _swigt__p_char[] = {{"_p_char", 0, "char *", 0, 0, 0, 0},{"_p_char", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
3752 static swig_type_info _swigt__p_u_short[] = {{"_p_u_short", 0, "u_short *", 0, 0, 0, 0},{"_p_u_short", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
3754 static swig_type_info *swig_types_initial[] = {
3762 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
3764 static swig_const_info swig_const_table[] = {
3765 {0, 0, 0, 0.0, 0, 0}};
3774 SWIGEXPORT(void) SWIG_init(void) {
3775 static PyObject *SWIG_globals = 0;
3776 static int typeinit = 0;
3779 if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
3780 m = Py_InitModule((char *) SWIG_name, SwigMethods);
3781 d = PyModule_GetDict(m);
3784 for (i = 0; swig_types_initial[i]; i++) {
3785 swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]);
3789 SWIG_InstallConstants(d,swig_const_table);
3791 PyDict_SetItemString(d,"FALSE", SWIG_From_int((int)0));
3792 PyDict_SetItemString(d,"TRUE", SWIG_From_int((int)1));
3793 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals);
3794 SWIG_addvarlink(SWIG_globals,(char*)"DttSP_SampleRate",_wrap_DttSP_SampleRate_get, _wrap_DttSP_SampleRate_set);
3795 PyDict_SetItemString(d,"IARU1", SWIG_From_int((int)IARU1));
3796 PyDict_SetItemString(d,"IARU2", SWIG_From_int((int)IARU2));
3797 PyDict_SetItemString(d,"IARU3", SWIG_From_int((int)IARU3));
3798 PyDict_SetItemString(d,"BYPASS", SWIG_From_int((int)BYPASS));
3799 PyDict_SetItemString(d,"MEMORY", SWIG_From_int((int)MEMORY));
3800 PyDict_SetItemString(d,"FULL", SWIG_From_int((int)FULL));
3801 PyDict_SetItemString(d,"LAST", SWIG_From_int((int)LAST));
3802 PyDict_SetItemString(d,"POSITIVE", SWIG_From_int((int)POSITIVE));
3803 PyDict_SetItemString(d,"NEGATIVE", SWIG_From_int((int)NEGATIVE));
3804 PyDict_SetItemString(d,"NONE", SWIG_From_int((int)NONE));
3805 PyDict_SetItemString(d,"bsnone", SWIG_From_int((int)bsnone));
3806 PyDict_SetItemString(d,"bs0", SWIG_From_int((int)bs0));
3807 PyDict_SetItemString(d,"bs1", SWIG_From_int((int)bs1));
3808 PyDict_SetItemString(d,"bs2", SWIG_From_int((int)bs2));
3809 PyDict_SetItemString(d,"bs3", SWIG_From_int((int)bs3));
3810 PyDict_SetItemString(d,"bs4", SWIG_From_int((int)bs4));
3811 PyDict_SetItemString(d,"bs5", SWIG_From_int((int)bs5));
3812 PyDict_SetItemString(d,"EXT", SWIG_From_int((int)EXT));
3813 PyDict_SetItemString(d,"BPF", SWIG_From_int((int)BPF));
3814 PyDict_SetItemString(d,"DAT", SWIG_From_int((int)DAT));
3815 PyDict_SetItemString(d,"ADR", SWIG_From_int((int)ADR));
3816 PyDict_SetItemString(d,"PIN_12", SWIG_From_int((int)PIN_12));
3817 PyDict_SetItemString(d,"Dash", SWIG_From_int((int)Dash));
3818 PyDict_SetItemString(d,"Dot", SWIG_From_int((int)Dot));
3819 PyDict_SetItemString(d,"PA_DATA", SWIG_From_int((int)PA_DATA));
3820 PyDict_SetItemString(d,"PIN_11", SWIG_From_int((int)PIN_11));
3821 PyDict_SetItemString(d,"P1", SWIG_From_int((int)P1));
3822 PyDict_SetItemString(d,"P2", SWIG_From_int((int)P2));
3823 PyDict_SetItemString(d,"P3", SWIG_From_int((int)P3));
3824 PyDict_SetItemString(d,"P4", SWIG_From_int((int)P4));
3825 PyDict_SetItemString(d,"P5", SWIG_From_int((int)P5));
3826 PyDict_SetItemString(d,"P6", SWIG_From_int((int)P6));
3827 PyDict_SetItemString(d,"P7", SWIG_From_int((int)P7));
3828 PyDict_SetItemString(d,"SER", SWIG_From_int((int)0x01));
3829 PyDict_SetItemString(d,"SCK", SWIG_From_int((int)0x02));
3830 PyDict_SetItemString(d,"SCLR_NOT", SWIG_From_int((int)0x04));
3831 PyDict_SetItemString(d,"DCDR_NE", SWIG_From_int((int)0x20));
3832 PyDict_SetItemString(d,"IC11", SWIG_From_int((int)IC11));
3833 PyDict_SetItemString(d,"IC7", SWIG_From_int((int)IC7));
3834 PyDict_SetItemString(d,"IC9", SWIG_From_int((int)IC9));
3835 PyDict_SetItemString(d,"IC10", SWIG_From_int((int)IC10));
3836 PyDict_SetItemString(d,"LPF0", SWIG_From_int((int)0x01));
3837 PyDict_SetItemString(d,"LPF1", SWIG_From_int((int)0x02));
3838 PyDict_SetItemString(d,"LPF2", SWIG_From_int((int)0x04));
3839 PyDict_SetItemString(d,"LPF3", SWIG_From_int((int)0x08));
3840 PyDict_SetItemString(d,"LPF4", SWIG_From_int((int)0x10));
3841 PyDict_SetItemString(d,"LPF5", SWIG_From_int((int)0x20));
3842 PyDict_SetItemString(d,"LPF6", SWIG_From_int((int)0x40));
3843 PyDict_SetItemString(d,"LPF7", SWIG_From_int((int)0x80));
3844 PyDict_SetItemString(d,"LPF8", SWIG_From_int((int)0x01));
3845 PyDict_SetItemString(d,"LPF9", SWIG_From_int((int)0x02));
3846 PyDict_SetItemString(d,"BPF0", SWIG_From_int((int)0x80));
3847 PyDict_SetItemString(d,"BPF1", SWIG_From_int((int)0x40));
3848 PyDict_SetItemString(d,"BPF2", SWIG_From_int((int)0x10));
3849 PyDict_SetItemString(d,"BPF3", SWIG_From_int((int)0x20));
3850 PyDict_SetItemString(d,"BPF4", SWIG_From_int((int)0x08));
3851 PyDict_SetItemString(d,"BPF5", SWIG_From_int((int)0x04));
3852 SWIG_addvarlink(SWIG_globals,(char*)"ic11_memory",_wrap_ic11_memory_get, _wrap_ic11_memory_set);
3853 PyDict_SetItemString(d,"PAF0", SWIG_From_int((int)0x01));
3854 PyDict_SetItemString(d,"PAF1", SWIG_From_int((int)0x02));
3855 PyDict_SetItemString(d,"PAF2", SWIG_From_int((int)0x04));
3856 PyDict_SetItemString(d,"ADC_CLK", SWIG_From_int((int)0x08));
3857 PyDict_SetItemString(d,"ADC_DI", SWIG_From_int((int)0x10));
3858 PyDict_SetItemString(d,"ADC_CS_NOT", SWIG_From_int((int)0x20));
3859 PyDict_SetItemString(d,"PATR", SWIG_From_int((int)0x40));
3860 PyDict_SetItemString(d,"ATUCTL", SWIG_From_int((int)0x80));
3861 SWIG_addvarlink(SWIG_globals,(char*)"ic7_memory",_wrap_ic7_memory_get, _wrap_ic7_memory_set);
3862 PyDict_SetItemString(d,"AMP_RLYS", SWIG_From_int((int)0x03));
3863 PyDict_SetItemString(d,"XVTR_TR_RLY", SWIG_From_int((int)0x04));
3864 PyDict_SetItemString(d,"XVTR_RLY", SWIG_From_int((int)0x08));
3865 PyDict_SetItemString(d,"ATTN_RLY", SWIG_From_int((int)0x10));
3866 PyDict_SetItemString(d,"IMPULSE_RLY", SWIG_From_int((int)0x20));
3867 PyDict_SetItemString(d,"PA_BIAS_NOT", SWIG_From_int((int)0x40));
3868 PyDict_SetItemString(d,"IMPULSE", SWIG_From_int((int)0x80));
3869 SWIG_addvarlink(SWIG_globals,(char*)"rfe_enabled",_wrap_rfe_enabled_get, _wrap_rfe_enabled_set);
3870 SWIG_addvarlink(SWIG_globals,(char*)"xvtr_enabled",_wrap_xvtr_enabled_get, _wrap_xvtr_enabled_set);
3871 SWIG_addvarlink(SWIG_globals,(char*)"pa_enabled",_wrap_pa_enabled_get, _wrap_pa_enabled_set);
3872 PyDict_SetItemString(d,"PA_LPF_OFF", SWIG_From_int((int)0));
3873 PyDict_SetItemString(d,"PA_LPF_12_10", SWIG_From_int((int)0x01));
3874 PyDict_SetItemString(d,"PA_LPF_17_15", SWIG_From_int((int)0x02));
3875 PyDict_SetItemString(d,"PA_LPF_30_20", SWIG_From_int((int)0x01+0x02));
3876 PyDict_SetItemString(d,"PA_LPF_60_40", SWIG_From_int((int)0x04));
3877 PyDict_SetItemString(d,"PA_LPF_80", SWIG_From_int((int)0x04+0x01));
3878 PyDict_SetItemString(d,"PA_LPF_160", SWIG_From_int((int)0x04+0x02));
3879 PyDict_SetItemString(d,"PA_FORWARD_PWR", SWIG_From_int((int)0));
3880 PyDict_SetItemString(d,"PA_REVERSE_PWR", SWIG_From_int((int)1));
3881 PyDict_SetItemString(d,"TR", SWIG_From_int((int)0x40));
3882 PyDict_SetItemString(d,"MUTE", SWIG_From_int((int)0x80));
3883 PyDict_SetItemString(d,"GAIN", SWIG_From_int((int)0x80));
3884 PyDict_SetItemString(d,"WRB", SWIG_From_int((int)0x40));
3885 PyDict_SetItemString(d,"RESET", SWIG_From_int((int)0x80));
3886 SWIG_addvarlink(SWIG_globals,(char*)"band_relay",_wrap_band_relay_get, _wrap_band_relay_set);
3887 SWIG_addvarlink(SWIG_globals,(char*)"external_output",_wrap_external_output_get, _wrap_external_output_set);
3888 SWIG_addvarlink(SWIG_globals,(char*)"mute_relay",_wrap_mute_relay_get, _wrap_mute_relay_set);
3889 SWIG_addvarlink(SWIG_globals,(char*)"transmit_relay",_wrap_transmit_relay_get, _wrap_transmit_relay_set);
3890 SWIG_addvarlink(SWIG_globals,(char*)"gain_relay",_wrap_gain_relay_get, _wrap_gain_relay_set);
3891 SWIG_addvarlink(SWIG_globals,(char*)"latch_delay",_wrap_latch_delay_get, _wrap_latch_delay_set);
3892 PyDict_SetItemString(d,"COMP_PD", SWIG_From_int((int)0x10));
3893 PyDict_SetItemString(d,"DIG_PD", SWIG_From_int((int)0x01));
3894 PyDict_SetItemString(d,"BYPASS_PLL", SWIG_From_int((int)0x20));
3895 PyDict_SetItemString(d,"INT_IOUD", SWIG_From_int((int)0x01));
3896 PyDict_SetItemString(d,"OSK_EN", SWIG_From_int((int)0x20));
3897 PyDict_SetItemString(d,"OSK_INT", SWIG_From_int((int)0x10));
3898 PyDict_SetItemString(d,"BYPASS_SINC", SWIG_From_int((int)0x40));
3899 PyDict_SetItemString(d,"PLL_RANGE", SWIG_From_int((int)0x40));
3900 SWIG_addvarlink(SWIG_globals,(char*)"dds_clock",_wrap_dds_clock_get, _wrap_dds_clock_set);
3901 SWIG_addvarlink(SWIG_globals,(char*)"pll_mult",_wrap_pll_mult_get, _wrap_pll_mult_set);
3902 SWIG_addvarlink(SWIG_globals,(char*)"dds_clock_correction",_wrap_dds_clock_correction_get, _wrap_dds_clock_correction_set);
3903 SWIG_addvarlink(SWIG_globals,(char*)"sysClock",_wrap_sysClock_get, _wrap_sysClock_set);
3904 SWIG_addvarlink(SWIG_globals,(char*)"ioud_clock",_wrap_ioud_clock_get, _wrap_ioud_clock_set);
3905 SWIG_addvarlink(SWIG_globals,(char*)"dac_mult",_wrap_dac_mult_get, _wrap_dac_mult_set);
3906 SWIG_addvarlink(SWIG_globals,(char*)"dds_freq",_wrap_dds_freq_get, _wrap_dds_freq_set);
3907 SWIG_addvarlink(SWIG_globals,(char*)"if_freq",_wrap_if_freq_get, _wrap_if_freq_set);
3908 SWIG_addvarlink(SWIG_globals,(char*)"if_shift",_wrap_if_shift_get, _wrap_if_shift_set);
3909 SWIG_addvarlink(SWIG_globals,(char*)"spur_reduction",_wrap_spur_reduction_get, _wrap_spur_reduction_set);
3910 SWIG_addvarlink(SWIG_globals,(char*)"dds_step_size",_wrap_dds_step_size_get, _wrap_dds_step_size_set);
3911 SWIG_addvarlink(SWIG_globals,(char*)"sample_rate",_wrap_sample_rate_get, _wrap_sample_rate_set);
3912 SWIG_addvarlink(SWIG_globals,(char*)"fft_length",_wrap_fft_length_get, _wrap_fft_length_set);
3913 SWIG_addvarlink(SWIG_globals,(char*)"FFT_Bin_Size",_wrap_FFT_Bin_Size_get, _wrap_FFT_Bin_Size_set);
3914 SWIG_addvarlink(SWIG_globals,(char*)"tune_fft",_wrap_tune_fft_get, _wrap_tune_fft_set);
3915 SWIG_addvarlink(SWIG_globals,(char*)"tune_frac_rel",_wrap_tune_frac_rel_get, _wrap_tune_frac_rel_set);
3916 SWIG_addvarlink(SWIG_globals,(char*)"vfo_offset",_wrap_vfo_offset_get, _wrap_vfo_offset_set);
3917 SWIG_addvarlink(SWIG_globals,(char*)"min_freq",_wrap_min_freq_get, _wrap_min_freq_set);
3918 SWIG_addvarlink(SWIG_globals,(char*)"max_freq",_wrap_max_freq_get, _wrap_max_freq_set);
3919 SWIG_addvarlink(SWIG_globals,(char*)"baseAdr",_wrap_baseAdr_get, _wrap_baseAdr_set);
3920 SWIG_addvarlink(SWIG_globals,(char*)"curBandPlan",_wrap_curBandPlan_get, _wrap_curBandPlan_set);
3921 SWIG_addvarlink(SWIG_globals,(char*)"TWO_TO_THE_48_DIVIDED_BY_200",_wrap_TWO_TO_THE_48_DIVIDED_BY_200_get, _wrap_TWO_TO_THE_48_DIVIDED_BY_200_set);
3922 SWIG_addvarlink(SWIG_globals,(char*)"last_tuning_word",_wrap_last_tuning_word_get, _wrap_last_tuning_word_set);
3923 SWIG_addvarlink(SWIG_globals,(char*)"usb_enabled",_wrap_usb_enabled_get, _wrap_usb_enabled_set);
3924 PyDict_SetItemString(d,"SDR1K_LATCH_EXT", SWIG_From_int((int)0x01));
3925 PyDict_SetItemString(d,"SDR1K_LATCH_BPF", SWIG_From_int((int)0x02));