| 1 | /* $Id: drv_generic_serial.h,v 1.10 2005/05/08 04:32:44 reinelt Exp $ |
|---|
| 2 | * |
|---|
| 3 | * generic driver helper for serial and usbserial displays |
|---|
| 4 | * |
|---|
| 5 | * Copyright (C) 1999, 2000 Michael Reinelt <reinelt@eunet.at> |
|---|
| 6 | * Copyright (C) 2004 The LCD4Linux Team <lcd4linux-devel@users.sourceforge.net> |
|---|
| 7 | * |
|---|
| 8 | * This file is part of LCD4Linux. |
|---|
| 9 | * |
|---|
| 10 | * LCD4Linux is free software; you can redistribute it and/or modify |
|---|
| 11 | * it under the terms of the GNU General Public License as published by |
|---|
| 12 | * the Free Software Foundation; either version 2, or (at your option) |
|---|
| 13 | * any later version. |
|---|
| 14 | * |
|---|
| 15 | * LCD4Linux 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 |
|---|
| 18 | * GNU General Public License for more details. |
|---|
| 19 | * |
|---|
| 20 | * You should have received a copy of the GNU General Public License |
|---|
| 21 | * along with this program; if not, write to the Free Software |
|---|
| 22 | * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
|---|
| 23 | * |
|---|
| 24 | * |
|---|
| 25 | * $Log: drv_generic_serial.h,v $ |
|---|
| 26 | * Revision 1.10 2005/05/08 04:32:44 reinelt |
|---|
| 27 | * CodingStyle added and applied |
|---|
| 28 | * |
|---|
| 29 | * Revision 1.9 2005/01/18 06:30:23 reinelt |
|---|
| 30 | * added (C) to all copyright statements |
|---|
| 31 | * |
|---|
| 32 | * Revision 1.8 2004/06/26 12:04:59 reinelt |
|---|
| 33 | * |
|---|
| 34 | * uh-oh... the last CVS log message messed up things a lot... |
|---|
| 35 | * |
|---|
| 36 | * Revision 1.7 2004/06/26 09:27:21 reinelt |
|---|
| 37 | * |
|---|
| 38 | * added '-W' to CFLAGS |
|---|
| 39 | * changed all C++ comments to C ones |
|---|
| 40 | * cleaned up a lot of signed/unsigned mistakes |
|---|
| 41 | * |
|---|
| 42 | * Revision 1.6 2004/06/20 10:09:55 reinelt |
|---|
| 43 | * |
|---|
| 44 | * 'const'ified the whole source |
|---|
| 45 | * |
|---|
| 46 | * Revision 1.5 2004/06/01 06:45:30 reinelt |
|---|
| 47 | * |
|---|
| 48 | * some Fixme's processed |
|---|
| 49 | * documented some code |
|---|
| 50 | * |
|---|
| 51 | * Revision 1.4 2004/05/28 13:51:42 reinelt |
|---|
| 52 | * |
|---|
| 53 | * ported driver for Beckmann+Egle Mini-Terminals |
|---|
| 54 | * added 'flags' parameter to serial_init() |
|---|
| 55 | * |
|---|
| 56 | * Revision 1.3 2004/02/14 11:56:17 reinelt |
|---|
| 57 | * M50530 driver ported |
|---|
| 58 | * changed lots of 'char' to 'unsigned char' |
|---|
| 59 | * |
|---|
| 60 | * Revision 1.2 2004/02/01 08:05:12 reinelt |
|---|
| 61 | * Crystalfontz 633 extensions (CRC checking and stuff) |
|---|
| 62 | * Models table for HD44780 |
|---|
| 63 | * Noritake VFD BVrightness patch from Bill Paxton |
|---|
| 64 | * |
|---|
| 65 | * Revision 1.1 2004/01/20 14:26:09 reinelt |
|---|
| 66 | * moved drv_generic to drv_generic_serial |
|---|
| 67 | * |
|---|
| 68 | * Revision 1.2 2004/01/20 05:36:59 reinelt |
|---|
| 69 | * moved text-display-specific stuff to drv_generic_text |
|---|
| 70 | * moved all the bar stuff from drv_generic_bar to generic_text |
|---|
| 71 | * |
|---|
| 72 | * Revision 1.1 2004/01/20 04:51:39 reinelt |
|---|
| 73 | * moved generic stuff from drv_MatrixOrbital to drv_generic |
|---|
| 74 | * implemented new-stylish bars which are nearly finished |
|---|
| 75 | * |
|---|
| 76 | */ |
|---|
| 77 | |
|---|
| 78 | |
|---|
| 79 | #ifndef _DRV_GENERIC_SERIALH_ |
|---|
| 80 | #define _DRV_GENERIC_SERIAL_H_ |
|---|
| 81 | |
|---|
| 82 | int drv_generic_serial_open(const char *section, const char *driver, const unsigned int flags); |
|---|
| 83 | int drv_generic_serial_poll(char *string, const int len); |
|---|
| 84 | int drv_generic_serial_read(char *string, const int len); |
|---|
| 85 | void drv_generic_serial_write(const char *string, const int len); |
|---|
| 86 | int drv_generic_serial_close(void); |
|---|
| 87 | |
|---|
| 88 | #endif |
|---|