2003-06-03 23:57:32 +00:00
|
|
|
/***********************************************************
|
|
|
|
* Interface file for wrapping Comedilib
|
|
|
|
* author: Bryan Cole email: bryan.cole@teraview.co.uk
|
|
|
|
*
|
|
|
|
* This file was created with Python wrappers in mind but wil
|
|
|
|
* probably work for other swig-supported script languages
|
|
|
|
*
|
|
|
|
* to regenerate the wrappers run:
|
|
|
|
* swig -python comedi.i
|
|
|
|
*
|
|
|
|
***********************************************************/
|
|
|
|
%module comedi
|
|
|
|
%{
|
2003-06-04 02:42:08 +00:00
|
|
|
#include "../include/comedi.h"
|
|
|
|
#include "../include/comedilib.h"
|
2003-06-03 23:57:32 +00:00
|
|
|
%}
|
|
|
|
%include "carrays.i"
|
|
|
|
|
|
|
|
%inline %{
|
|
|
|
static unsigned int cr_pack(unsigned int chan, unsigned int rng, unsigned int aref){
|
|
|
|
return CR_PACK(chan,rng,aref);
|
|
|
|
}
|
|
|
|
static unsigned int cr_pack_flags(unsigned int chan, unsigned int rng, unsigned int aref, unsigned int flags){
|
|
|
|
return CR_PACK_FLAGS(chan,rng,aref, flags);
|
|
|
|
}
|
|
|
|
static unsigned int cr_chan(unsigned int a){
|
|
|
|
return CR_CHAN(a);
|
|
|
|
}
|
|
|
|
static unsigned int cr_range(unsigned int a){
|
|
|
|
return CR_RANGE(a);
|
|
|
|
}
|
|
|
|
static unsigned int cr_aref(unsigned int a){
|
|
|
|
return CR_AREF(a);
|
|
|
|
}
|
|
|
|
%}
|
|
|
|
|
|
|
|
%array_class(unsigned int, chanlist);
|
|
|
|
|
2003-06-04 02:42:08 +00:00
|
|
|
%include "../include/comedi.h"
|
|
|
|
%include "../include/comedilib.h"
|