Last change
on this file since 18350 was 52, checked in by rissim, 15 years ago |
trigger software (VME) v1
|
File size:
917 bytes
|
Line | |
---|
1 | /*################################################
|
---|
2 | #
|
---|
3 | # WrapVME.c
|
---|
4 | # Wraps the function calls to the VME crate
|
---|
5 | #
|
---|
6 | ###############################################*/
|
---|
7 |
|
---|
8 |
|
---|
9 | //#include "vme_rcc_common.h"
|
---|
10 | #include "v560.h"
|
---|
11 | #include "Python.h"
|
---|
12 | #include<stdio.h>
|
---|
13 |
|
---|
14 |
|
---|
15 | PyObject *wrap_V560_Open(PyObject *self, PyObject *args)
|
---|
16 | {
|
---|
17 |
|
---|
18 |
|
---|
19 | VME_ErrorCode_t error_code;
|
---|
20 | if (!PyArg_ParseTuple(args,"V560_Open"))
|
---|
21 | return NULL;
|
---|
22 | error_code = V560_Open();
|
---|
23 | return Py_BuildValue("i",error_code);
|
---|
24 | }
|
---|
25 |
|
---|
26 | /*static PyMethodDef exampleMethods[] = {
|
---|
27 | { "fact", wrap_fact, METH_VARARGS, "fact(int)" },
|
---|
28 | { "gcd", wrap_gcd, METH_VARARGS, "gcd(int, int)" },
|
---|
29 | { NULL, NULL, NULL, NULL }*/
|
---|
30 |
|
---|
31 |
|
---|
32 |
|
---|
33 | static PyMethodDef VMEMethods[] = {
|
---|
34 | { "V560_Open", wrap_V560_Open, METH_VARARGS, "V560()" },
|
---|
35 | { NULL, NULL }
|
---|
36 | };
|
---|
37 | // Module initialization
|
---|
38 | void initVME() {
|
---|
39 | PyObject *m;
|
---|
40 | m = Py_InitModule("VME", VMEMethods);
|
---|
41 | }
|
---|
42 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.