forked from roboticslab-uc3m/jr3pci-linux
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jr3pci-ioctl.h
71 lines (61 loc) · 3.69 KB
/
jr3pci-ioctl.h
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
#include <linux/ioctl.h>
#include <linux/types.h>
#ifndef __JR3IOCTL__
#define __JR3IOCTL__
typedef struct force_array {
int f[3];
int m[3];
int v[2];
} force_array;
typedef struct six_axis_array {
int f[3];
int m[3];
} six_axis_array;
#define JR3_IOC_MAGIC 'k'
#define JR3_TYPE JR3_IOC_MAGIC
#define IOCTL0_JR3_RESET _IO ( JR3_TYPE, 0 )
#define IOCTL0_JR3_FILTER0 _IOR( JR3_TYPE, 1, struct six_axis_array )
#define IOCTL0_JR3_FILTER1 _IOR( JR3_TYPE, 2, struct six_axis_array )
#define IOCTL0_JR3_FILTER2 _IOR( JR3_TYPE, 3, struct six_axis_array )
#define IOCTL0_JR3_FILTER3 _IOR( JR3_TYPE, 4, struct six_axis_array )
#define IOCTL0_JR3_FILTER4 _IOR( JR3_TYPE, 5, struct six_axis_array )
#define IOCTL0_JR3_FILTER5 _IOR( JR3_TYPE, 6, struct six_axis_array )
#define IOCTL0_JR3_FILTER6 _IOR( JR3_TYPE, 7, struct six_axis_array )
#define IOCTL0_JR3_ZEROOFFS _IO ( JR3_TYPE, 8 )
#define IOCTL0_JR3_GET_FULL_SCALES _IOR( JR3_TYPE, 9, struct force_array )
#define IOCTL0_JR3_SET_FULL_SCALES _IOW( JR3_TYPE, 10, struct force_array )
#define IOCTL1_JR3_RESET _IO ( JR3_TYPE, 11 )
#define IOCTL1_JR3_FILTER0 _IOR( JR3_TYPE, 12, struct six_axis_array )
#define IOCTL1_JR3_FILTER1 _IOR( JR3_TYPE, 13, struct six_axis_array )
#define IOCTL1_JR3_FILTER2 _IOR( JR3_TYPE, 14, struct six_axis_array )
#define IOCTL1_JR3_FILTER3 _IOR( JR3_TYPE, 15, struct six_axis_array )
#define IOCTL1_JR3_FILTER4 _IOR( JR3_TYPE, 16, struct six_axis_array )
#define IOCTL1_JR3_FILTER5 _IOR( JR3_TYPE, 17, struct six_axis_array )
#define IOCTL1_JR3_FILTER6 _IOR( JR3_TYPE, 18, struct six_axis_array )
#define IOCTL1_JR3_ZEROOFFS _IO ( JR3_TYPE, 19 )
#define IOCTL1_JR3_GET_FULL_SCALES _IOR( JR3_TYPE, 20, struct force_array )
#define IOCTL1_JR3_SET_FULL_SCALES _IOW( JR3_TYPE, 21, struct force_array )
#define IOCTL2_JR3_RESET _IO ( JR3_TYPE, 22 )
#define IOCTL2_JR3_FILTER0 _IOR( JR3_TYPE, 23, struct six_axis_array )
#define IOCTL2_JR3_FILTER1 _IOR( JR3_TYPE, 24, struct six_axis_array )
#define IOCTL2_JR3_FILTER2 _IOR( JR3_TYPE, 25, struct six_axis_array )
#define IOCTL2_JR3_FILTER3 _IOR( JR3_TYPE, 26, struct six_axis_array )
#define IOCTL2_JR3_FILTER4 _IOR( JR3_TYPE, 27, struct six_axis_array )
#define IOCTL2_JR3_FILTER5 _IOR( JR3_TYPE, 28, struct six_axis_array )
#define IOCTL2_JR3_FILTER6 _IOR( JR3_TYPE, 29, struct six_axis_array )
#define IOCTL2_JR3_ZEROOFFS _IO ( JR3_TYPE, 30 )
#define IOCTL2_JR3_GET_FULL_SCALES _IOR( JR3_TYPE, 31, struct force_array )
#define IOCTL2_JR3_SET_FULL_SCALES _IOW( JR3_TYPE, 32, struct force_array )
#define IOCTL3_JR3_RESET _IO ( JR3_TYPE, 33 )
#define IOCTL3_JR3_FILTER0 _IOR( JR3_TYPE, 34, struct six_axis_array )
#define IOCTL3_JR3_FILTER1 _IOR( JR3_TYPE, 35, struct six_axis_array )
#define IOCTL3_JR3_FILTER2 _IOR( JR3_TYPE, 36, struct six_axis_array )
#define IOCTL3_JR3_FILTER3 _IOR( JR3_TYPE, 37, struct six_axis_array )
#define IOCTL3_JR3_FILTER4 _IOR( JR3_TYPE, 38, struct six_axis_array )
#define IOCTL3_JR3_FILTER5 _IOR( JR3_TYPE, 39, struct six_axis_array )
#define IOCTL3_JR3_FILTER6 _IOR( JR3_TYPE, 40, struct six_axis_array )
#define IOCTL3_JR3_ZEROOFFS _IO ( JR3_TYPE, 41 )
#define IOCTL3_JR3_GET_FULL_SCALES _IOR( JR3_TYPE, 42, struct force_array )
#define IOCTL3_JR3_SET_FULL_SCALES _IOW( JR3_TYPE, 43, struct force_array )
#define IOCTL_JR3_MAXNR 44
#endif