aboutsummaryrefslogtreecommitdiffstats
path: root/drv_generic_gpio.h
blob: 8b0d359c9e0e43ffcedffb34683b7280683e6550 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/* $Id$
 * $URL$
 *
 * generic driver helper for GPIO's
 *
 * Copyright (C) 2005 Michael Reinelt <michael@reinelt.co.at>
 * Copyright (C) 2005 The LCD4Linux Team <lcd4linux-devel@users.sourceforge.net>
 *
 * This file is part of LCD4Linux.
 *
 * LCD4Linux is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2, or (at your option)
 * any later version.
 *
 * LCD4Linux is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 *
 */


#ifndef _DRV_GENERIC_GPO_H_
#define _DRV_GENERIC_GPO_H_

#include "widget.h"

extern int GPIS;		/* number of GPO's */
extern int GPOS;		/* number of GPO's */

/* these function must be implemented by the real driver */
extern int (*drv_generic_gpio_real_set) (const int num, const int val);
extern int (*drv_generic_gpio_real_get) (const int num);

/* generic functions and widget callbacks */
int drv_generic_gpio_init(const char *section, const char *driver);
int drv_generic_gpio_clear(void);
int drv_generic_gpio_get(const int num);
int drv_generic_gpio_draw(WIDGET * W);
int drv_generic_gpio_quit(void);

#endif
rgb.c rgb.h \ \ widget.c widget.h \ widget_text.c widget_text.h \ widget_bar.c widget_bar.h \ widget_icon.c widget_icon.h \ widget_image.c widget_image.h \ widget_keypad.c widget_keypad.h \ widget_timer.c widget_timer.h \ widget_gpo.c widget_gpo.h \ \ plugin.c plugin.h \ plugin_cfg.c \ plugin_math.c \ plugin_string.c \ plugin_test.c \ plugin_time.c EXTRA_lcd4linux_SOURCES= \ drv_generic_text.c \ drv_generic_text.h \ drv_generic_graphic.c \ drv_generic_graphic.h \ drv_generic_gpio.c \ drv_generic_gpio.h \ drv_generic_serial.c \ drv_generic_serial.h \ drv_generic_parport.c \ drv_generic_parport.h \ drv_generic_i2c.c \ drv_generic_i2c.h \ drv_generic_keypad.c \ drv_generic_keypad.h \ drv_BeckmannEgle.c \ drv_BWCT.c \ drv_Crystalfontz.c \ drv_Curses.c \ drv_Cwlinux.c \ drv_G15.c \ drv_HD44780.c \ drv_Image.c \ drv_LCD2USB.c \ drv_LCDLinux.c \ drv_LCDTerm.c \ drv_LPH7508.c \ drv_LUIse.c \ drv_M50530.c \ drv_MatrixOrbital.c \ drv_MilfordInstruments.c \ drv_Noritake.c \ drv_NULL.c \ drv_RouterBoard.c \ drv_Sample.c \ drv_serdisplib.c \ drv_SimpleLCD.c \ drv_T6963.c \ drv_Trefon.c \ drv_USBLCD.c \ drv_WincorNixdorf.c \ drv_X11.c \ \ font_6x8.h \ \ lcd4linux_i2c.h \ \ plugin_apm.c \ plugin_cpuinfo.c \ plugin_diskstats.c \ plugin_dvb.c \ plugin_exec.c \ plugin_file.c \ plugin_i2c_sensors.c \ plugin_imon.c \ plugin_isdn.c \ plugin_loadavg.c \ plugin_meminfo.c \ plugin_mysql.c \ plugin_netdev.c \ plugin_pop3.c \ plugin_ppp.c \ plugin_proc_stat.c \ plugin_python.c \ plugin_sample.c \ plugin_seti.c \ plugin_statfs.c \ plugin_uname.c \ plugin_uptime.c \ plugin_wireless.c \ plugin_xmms.c EXTRA_DIST = \ lcd4linux.conf.sample \ lcd4kde.conf \ lcd4linux.kdelnk \ lcd4linux.xpm \ lcd4linux.lsm \ curses.m4 \ AUTHORS \ CREDITS \ FAQ \ NEWS \ TODO \ README \ README.Drivers \ README.Plugins \ README.KDE \ plugin_sample.c