summaryrefslogtreecommitdiffstats
path: root/pcilib/pcipywrap.i
diff options
context:
space:
mode:
authorVasilii Chernov <vchernov@inr.ru>2016-02-05 12:33:48 +0100
committerVasilii Chernov <vchernov@inr.ru>2016-02-05 12:33:48 +0100
commit5349163e93a107fdfea2ad58760f6149a8d749b0 (patch)
tree84afe1008bac52a00785ba71f415ae51b1b9c768 /pcilib/pcipywrap.i
parent99c165c078222c789d5fc90a79c756c8fffdafea (diff)
downloadpcitool-5349163e93a107fdfea2ad58760f6149a8d749b0.tar.gz
pcitool-5349163e93a107fdfea2ad58760f6149a8d749b0.tar.bz2
pcitool-5349163e93a107fdfea2ad58760f6149a8d749b0.tar.xz
pcitool-5349163e93a107fdfea2ad58760f6149a8d749b0.zip
Add support for python script properties. Correct pcilib python wrapping. Update examples. Update cmakelists for work in shadow build mode.
Diffstat (limited to 'pcilib/pcipywrap.i')
-rw-r--r--pcilib/pcipywrap.i9
1 files changed, 4 insertions, 5 deletions
diff --git a/pcilib/pcipywrap.i b/pcilib/pcipywrap.i
index fc7f4ef..ed5ca62 100644
--- a/pcilib/pcipywrap.i
+++ b/pcilib/pcipywrap.i
@@ -1,6 +1,5 @@
%module pcipywrap
-/*extern void* __ctx;*/
-extern void __initCtx(void* ctx);
-extern void __createCtxInstance(const char *fpga_device, const char *model);
-extern int read_register(const char *bank, const char *regname, void *value);
-extern int ReadRegister(const char *reg);
+
+extern PyObject* read_register(const char *regname, const char *bank = NULL);
+extern PyObject* __createPcilibInstance(const char *fpga_device, const char *model = NULL);
+extern void __setPcilib(PyObject* addr);