1 # This file was automatically generated by SWIG (http://www.swig.org).
4 # Do not make changes to this file unless you know what you are doing--modify
5 # the SWIG interface file instead.
6 # This file is compatible with both classic and new-style classes.
8 from sys import version_info
9 if version_info >= (2,6,0):
10 def swig_import_helper():
11 from os.path import dirname
15 fp, pathname, description = imp.find_module('_fpga', [dirname(__file__)])
21 _mod = imp.load_module('_fpga', fp, pathname, description)
25 _fpga = swig_import_helper()
26 del swig_import_helper
31 _swig_property = property
33 pass # Python < 2.2 doesn't have 'property'.
34 def _swig_setattr_nondynamic(self,class_type,name,value,static=1):
35 if (name == "thisown"): return self.this.own(value)
37 if type(value).__name__ == 'SwigPyObject':
38 self.__dict__[name] = value
40 method = class_type.__swig_setmethods__.get(name,None)
41 if method: return method(self,value)
42 if (not static) or hasattr(self,name):
43 self.__dict__[name] = value
45 raise AttributeError("You cannot add attributes to %s" % self)
47 def _swig_setattr(self,class_type,name,value):
48 return _swig_setattr_nondynamic(self,class_type,name,value,0)
50 def _swig_getattr(self,class_type,name):
51 if (name == "thisown"): return self.this.own()
52 method = class_type.__swig_getmethods__.get(name,None)
53 if method: return method(self)
54 raise AttributeError(name)
57 try: strthis = "proxy of " + self.this.__repr__()
59 return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
64 except AttributeError:
70 __swig_setmethods__ = {}
71 __setattr__ = lambda self, name, value: _swig_setattr(self, Fpga, name, value)
72 __swig_getmethods__ = {}
73 __getattr__ = lambda self, name: _swig_getattr(self, Fpga, name)
76 this = _fpga.new_Fpga()
77 try: self.this.append(this)
78 except: self.this = this
79 __swig_destroy__ = _fpga.delete_Fpga
80 __del__ = lambda self : None;
81 def get_error_msg(self, *args): return _fpga.Fpga_get_error_msg(self, *args)
82 def fpga_upgrade(self, *args): return _fpga.Fpga_fpga_upgrade(self, *args)
83 Fpga_swigregister = _fpga.Fpga_swigregister
84 Fpga_swigregister(Fpga)