Main Page | Class Hierarchy | Compound List | File List | Compound Members | File Members

keys.h

00001 /***
00002  * This file is part of OpenHome, an open source home automation system.
00003  * Copyright (C) 2003 Jan Klötzke
00004  *
00005  * This program is free software; you can redistribute it and/or modify
00006  * it under the terms of the GNU General Public License as published by
00007  * the Free Software Foundation; either version 2 of the License, or
00008  * (at your option) any later version.
00009  *
00010  * This program is distributed in the hope that it will be useful,
00011  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013  * GNU General Public License for more details.
00014  *
00015  * You should have received a copy of the GNU General Public License
00016  * along with this program; if not, write to the Free Software
00017  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00018  */
00019 
00020 #ifndef __KEYS_H
00021 #define __KEYS_H
00022 
00023 #include <inttypes.h>
00024 
00025 #define KEY_NONE        0
00026 #define KEY_FUNC_1      1
00027 #define KEY_FUNC_2      2
00028 #define KEY_FUNC_3      8
00029 #define KEY_FUNC_4      7
00030 #define KEY_FUNC_5      6
00031 #define KEY_FUNC_6      5
00032 #define KEY_MENU_UP     4
00033 #define KEY_MENU_DOWN   3
00034 
00035 #define LED_FUNC_1      0x08
00036 #define LED_FUNC_2      0x04
00037 #define LED_FUNC_3      0x10
00038 #define LED_FUNC_4      0x20
00039 #define LED_FUNC_5      0x40
00040 #define LED_FUNC_6      0x80
00041 #define LED_MENU_UP     0x01
00042 #define LED_MENU_DOWN   0x02
00043 #define LED_ALL_ON      0xff
00044 #define LED_ALL_OFF     0x00
00045 
00046 #define REP_FUNC_1      0x01
00047 #define REP_FUNC_2      0x02
00048 #define REP_FUNC_3      0x80
00049 #define REP_FUNC_4      0x40
00050 #define REP_FUNC_5      0x20
00051 #define REP_FUNC_6      0x10
00052 #define REP_MENU_UP     0x08
00053 #define REP_MENU_DOWN   0x04
00054 
00055 #ifdef __cplusplus
00056 extern "C" {
00057 #endif
00058 
00059 void keys_sense_keys(void);
00060 uint8_t keys_key_pressed(void);
00061 uint8_t keys_get_key(void);
00062 
00063 void keys_set_leds(uint8_t mask);
00064 void keys_set_repeat_mask(uint8_t mask);
00065 
00066 #ifdef __cplusplus
00067 }
00068 #endif
00069 
00070 #endif

Generated on Thu Oct 16 13:13:41 2003 for OpenHomeMainPanel by doxygen 1.3.3