Xenomai  3.0.8
gpio.h
1 
18 #ifndef _RTDM_UAPI_GPIO_H
19 #define _RTDM_UAPI_GPIO_H
20 
21 #define GPIO_RTIOC_DIR_OUT _IOW(RTDM_CLASS_GPIO, 0, int)
22 #define GPIO_RTIOC_DIR_IN _IO(RTDM_CLASS_GPIO, 1)
23 #define GPIO_RTIOC_IRQEN _IOW(RTDM_CLASS_GPIO, 2, int) /* GPIO trigger */
24 #define GPIO_RTIOC_IRQDIS _IO(RTDM_CLASS_GPIO, 3)
25 #define GPIO_RTIOC_REQS _IO(RTDM_CLASS_GPIO, 4)
26 #define GPIO_RTIOC_RELS _IO(RTDM_CLASS_GPIO, 5)
27 
28 #define GPIO_TRIGGER_NONE 0x0 /* unspecified */
29 #define GPIO_TRIGGER_EDGE_RISING 0x1
30 #define GPIO_TRIGGER_EDGE_FALLING 0x2
31 #define GPIO_TRIGGER_LEVEL_HIGH 0x4
32 #define GPIO_TRIGGER_LEVEL_LOW 0x8
33 #define GPIO_TRIGGER_MASK 0xf
34 
35 #endif /* !_RTDM_UAPI_GPIO_H */