/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-02-23 06:20:33 UTC
  • mfrom: (346.1.18 pcitool)
  • Revision ID: csa@suren.me-20160223062033-mz8qkpm1a2oioveb
Merge Python scripting support from Vasiliy Chernov

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
%module pcipywrap
 
2
 
 
3
%{
 
4
#include "pcipywrap.h"
 
5
%}
 
6
 
 
7
extern void __redirect_logs_to_exeption();
 
8
 
 
9
typedef struct {
 
10
        %extend {
 
11
                Pcipywrap(const char* fpga_device = NULL, const char* model = NULL);
 
12
                Pcipywrap(PyObject* ctx){return create_Pcipywrap(ctx);}
 
13
                ~Pcipywrap();
 
14
        
 
15
                PyObject* read_register(const char *regname = NULL, const char *bank = NULL);
 
16
                PyObject* write_register(PyObject* val, const char *regname, const char *bank = NULL);
 
17
        
 
18
                PyObject* get_property(const char *prop);
 
19
                PyObject* set_property(PyObject* val, const char *prop);
 
20
        
 
21
                PyObject* get_registers_list(const char *bank = NULL);
 
22
                PyObject* get_register_info(const char* reg,const char *bank = NULL);
 
23
                PyObject* get_property_list(const char* branch = NULL);
 
24
        }
 
25
} Pcipywrap;