From 5349163e93a107fdfea2ad58760f6149a8d749b0 Mon Sep 17 00:00:00 2001 From: Vasilii Chernov Date: Fri, 5 Feb 2016 12:33:48 +0100 Subject: Add support for python script properties. Correct pcilib python wrapping. Update examples. Update cmakelists for work in shadow build mode. --- pcilib/pcipywrap.i | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'pcilib/pcipywrap.i') 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); -- cgit v1.2.3