/alps/pcitool

To get this branch, use:
bzr branch http://suren.me/webbzr/alps/pcitool

« back to all changes in this revision

Viewing changes to pywrap/pcipywrap.i

  • Committer: Suren A. Chilingaryan
  • Date: 2016-03-02 22:36:19 UTC
  • mfrom: (346.1.35 pcitool)
  • Revision ID: csa@suren.me-20160302223619-r1zd62x6kwbyd321
Further improvements of Python scripting and web-interface API for register manipulations by Vasiliy Chernov

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
#include "pcipywrap.h"
5
5
%}
6
6
 
7
 
extern void __redirect_logs_to_exeption();
 
7
extern void redirect_logs_to_exeption();
8
8
 
9
9
typedef struct {
10
10
        %extend {
11
 
                Pcipywrap(const char* fpga_device = "/dev/fpga0", const char* model = NULL);
12
 
                Pcipywrap(PyObject* ctx){return create_Pcipywrap(ctx);}
13
 
                ~Pcipywrap();
 
11
                pcipywrap(const char* fpga_device = "/dev/fpga0", const char* model = NULL);
 
12
                pcipywrap(PyObject* ctx){return create_pcipywrap(ctx);}
 
13
                ~pcipywrap();
14
14
        
15
15
                PyObject* read_register(const char *regname = NULL, const char *bank = NULL);
16
16
                PyObject* write_register(PyObject* val, const char *regname, const char *bank = NULL);
30
30
                PyObject* try_lock(const char *lock_id);
31
31
                PyObject* unlock(const char *lock_id);
32
32
        }
33
 
} Pcipywrap;
 
33
} pcipywrap;