pikeyd165 – Blame information for rev 1
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | office | 1 | /**** config.h *****************************/ |
2 | /* M. Moller 2013-01-16 */ |
||
3 | /* Universal RPi GPIO keyboard daemon */ |
||
4 | /*******************************************/ |
||
5 | |||
6 | /* |
||
7 | Copyright (C) 2013 Michael Moller. |
||
8 | This file is part of the Universal Raspberry Pi GPIO keyboard daemon. |
||
9 | |||
10 | This is free software; you can redistribute it and/or |
||
11 | modify it under the terms of the GNU Lesser General Public |
||
12 | License as published by the Free Software Foundation; either |
||
13 | version 2.1 of the License, or (at your option) any later version. |
||
14 | |||
15 | The software is distributed in the hope that it will be useful, |
||
16 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
||
17 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
||
18 | Lesser General Public License for more details. |
||
19 | |||
20 | You should have received a copy of the GNU Lesser General Public |
||
21 | License along with the GNU C Library; if not, write to the Free |
||
22 | Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA |
||
23 | 02111-1307 USA. |
||
24 | */ |
||
25 | |||
26 | #ifndef _CONFIG_H_ |
||
27 | #define _CONFIG_H_ |
||
28 | |||
29 | typedef struct{ |
||
30 | char name[32]; |
||
31 | int code; |
||
32 | }key_names_s; |
||
33 | |||
34 | typedef struct { |
||
35 | int key; |
||
36 | long unsigned int bits; |
||
37 | long unsigned int pressed; |
||
38 | }key_special_s; |
||
39 | |||
40 | |||
41 | int init_config(void); |
||
42 | void test_config(void); |
||
43 | int get_event_key(int gpio, int idx); |
||
44 | int get_next_key(int gpio); |
||
45 | int got_more_keys(int gpio); |
||
46 | void restart_keys(void); |
||
47 | int gpios_used(void); |
||
48 | int gpio_pin(int n); |
||
49 | |||
50 | #endif |
||
51 |