Esempio n. 1
0
        //#define EVIOCGREP		_IOR('E', 0x03, unsigned int[2])	/* get repeat settings */
        //#define EVIOCSREP		_IOW('E', 0x03, unsigned int[2])	/* set repeat settings */

        //#define EVIOCGKEYCODE		_IOR('E', 0x04, unsigned int[2])        /* get keycode */
        //#define EVIOCGKEYCODE_V2	_IOR('E', 0x04, struct input_keymap_entry)
        //#define EVIOCSKEYCODE		_IOW('E', 0x04, unsigned int[2])        /* set keycode */
        //#define EVIOCSKEYCODE_V2	_IOW('E', 0x04, struct input_keymap_entry)

        public static uint EVIOCGNAME(uint len)
        {
            return(IoCtl.IOC(IoCtl.IOC_READ, 'E', 0x06, len));           /* get device name */
        }
Esempio n. 2
0
        //#define EVIOCGPHYS(len)		_IOC(_IOC_READ, 'E', 0x07, len)		/* get physical location */
        //#define EVIOCGUNIQ(len)		_IOC(_IOC_READ, 'E', 0x08, len)		/* get unique identifier */
        //#define EVIOCGPROP(len)		_IOC(_IOC_READ, 'E', 0x09, len)		/* get device properties */

        //#define EVIOCGKEY(len)		_IOC(_IOC_READ, 'E', 0x18, len)		/* get global key state */
        //#define EVIOCGLED(len)		_IOC(_IOC_READ, 'E', 0x19, len)		/* get all LEDs */
        //#define EVIOCGSND(len)		_IOC(_IOC_READ, 'E', 0x1a, len)		/* get all sounds status */
        //#define EVIOCGSW(len)		_IOC(_IOC_READ, 'E', 0x1b, len)		/* get all switch states */

        public static uint EVIOCGBIT(uint ev, uint len)
        {
            return(IoCtl.IOC(IoCtl.IOC_READ, 'E', 0x20 + ev, len));      /* get event bits */
        }
Esempio n. 3
0
 public static uint SPI_IOC_MESSAGE(uint N)
 {
     return(IoCtl.IOW(SPI_IOC_MAGIC, 0, SPI_MSGSIZE(N)));
 }