summaryrefslogtreecommitdiffstats
path: root/pywrap/pcipywrap.i
blob: 88a746f6aa8f8a38e2a798ae46f4ffda5c76b09e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
%module pcipywrap

%{
#include "pcipywrap.h"
%}

extern void __redirect_logs_to_exeption();

typedef struct {
	%extend {
		Pcipywrap(const char* fpga_device = NULL, const char* model = NULL);
		Pcipywrap(PyObject* ctx){return create_Pcipywrap(ctx);}
		~Pcipywrap();
	
		PyObject* read_register(const char *regname = NULL, const char *bank = NULL);
		PyObject* write_register(PyObject* val, const char *regname, const char *bank = NULL);
	
		PyObject* get_property(const char *prop);
		PyObject* set_property(PyObject* val, const char *prop);
	
		PyObject* get_registers_list(const char *bank = NULL);
		PyObject* get_register_info(const char* reg,const char *bank = NULL);
		PyObject* get_property_list(const char* branch = NULL);
	}
} Pcipywrap;