|
Linux Kernel
3.7.1
|
#include <gpio_mouse.h>
Data Fields | |
| int | scan_ms |
| int | polarity |
| union { | |
| struct { | |
| int up | |
| int down | |
| int left | |
| int right | |
| int bleft | |
| int bmiddle | |
| int bright | |
| } | |
| int pins [GPIO_MOUSE_PIN_MAX] | |
| }; | |
struct gpio_mouse_platform_data : integer in ms specifying the scan periode. : Pin polarity, active high or low. : GPIO line for up value. : GPIO line for down value. : GPIO line for left value. : GPIO line for right value. : GPIO line for left button. : GPIO line for middle button. : GPIO line for right button.
This struct must be added to the platform_device in the board code. It is used by the gpio_mouse driver to setup GPIO lines and to calculate mouse movement.
Definition at line 42 of file gpio_mouse.h.
| union { ... } |
| int bleft |
Definition at line 53 of file gpio_mouse.h.
| int bmiddle |
Definition at line 54 of file gpio_mouse.h.
| int bright |
Definition at line 55 of file gpio_mouse.h.
| int down |
Definition at line 49 of file gpio_mouse.h.
| int left |
Definition at line 50 of file gpio_mouse.h.
| int pins[GPIO_MOUSE_PIN_MAX] |
Definition at line 57 of file gpio_mouse.h.
| int polarity |
Definition at line 44 of file gpio_mouse.h.
| int right |
Definition at line 51 of file gpio_mouse.h.
| int scan_ms |
Definition at line 43 of file gpio_mouse.h.
| int up |
Definition at line 48 of file gpio_mouse.h.
1.8.2