summaryrefslogtreecommitdiffstats
path: root/pcilib/pcipywrap.i
diff options
context:
space:
mode:
authorVasilii Chernov <vchernov@inr.ru>2016-02-03 16:48:45 +0100
committerVasilii Chernov <vchernov@inr.ru>2016-02-03 16:48:45 +0100
commit99c165c078222c789d5fc90a79c756c8fffdafea (patch)
tree191428962f77d83577b82a8a1b213fa4bae5f17f /pcilib/pcipywrap.i
parent817906fdd1c4509cb4b79160bb0d9ff72db7a604 (diff)
downloadpcitool-99c165c078222c789d5fc90a79c756c8fffdafea.tar.gz
pcitool-99c165c078222c789d5fc90a79c756c8fffdafea.tar.bz2
pcitool-99c165c078222c789d5fc90a79c756c8fffdafea.tar.xz
pcitool-99c165c078222c789d5fc90a79c756c8fffdafea.zip
Add python wrap for pcilib
Diffstat (limited to 'pcilib/pcipywrap.i')
-rw-r--r--pcilib/pcipywrap.i6
1 files changed, 6 insertions, 0 deletions
diff --git a/pcilib/pcipywrap.i b/pcilib/pcipywrap.i
new file mode 100644
index 0000000..fc7f4ef
--- /dev/null
+++ b/pcilib/pcipywrap.i
@@ -0,0 +1,6 @@
+%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);