/* $Id: drv_LUIse.c,v 1.4 2006/02/08 04:55:05 reinelt Exp $ * * LUIse lcd4linux driver * * Copyright (C) 2005 Theo Schneider * Copyright (C) 2005 The LCD4Linux Team * * 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. * * * $Log: drv_LUIse.c,v $ * Revision 1.4 2006/02/08 04:55:05 reinelt * moved widget registration to drv_generic_graphic * * Revision 1.3 2006/01/30 06:25:53 reinelt * added CVS Revision * * Revision 1.2 2006/01/06 16:56:49 tooly-bln * *** empty log message *** * * Revision 1.1 2006/01/03 13:20:06 reinelt * LUIse driver added * */ /* * * exported fuctions: * * struct DRIVER drv_LUIse * */ #include "config.h" #include #include #include #include #include #include #include "debug.h" #include "cfg.h" #include "qprintf.h" #include "udelay.h" #include "plugin.h" #include "drv.h" #include "drv_generic_graphic.h" static char Name[] = "LUIse"; /* default Wert */ static int devNum = 0; /****************************************/ /*** hardware dependant functions ***/ /****************************************/ static void drv_LUIse_clear(void) { unsigned char buf[9600]; int x; // clear text LUI_Text(devNum, 0, 0, 320, 240, 0, 0, 1, 1, ""); // clear picture for (x = 0; x < 9600; x++) buf[x] = 0x00; LUI_Bitmap(devNum, 0, 0, 0, 0, 0, DCOLS, DROWS, DCOLS, DROWS, buf); LUI_Bitmap(devNum, 1, 0, 0, 0, 0, DCOLS, DROWS, DCOLS, DROWS, buf); } static void drv_LUIse_blit(const int row, const int col, const int height, const int width) { int r, c; for (r = row; r < row + height; r++) { for (c = col; c < col + width; c++) { if (drv_generic_graphic_FB[r * LCOLS + c]) { LUI_SetPixel(devNum, 0, c, r, 1); } else { LUI_SetPixel(devNum, 0, c, r, 0); } } } } static int drv_LUIse_contrast(int contrast) { /* adjust limits according to the display */ if (contrast < 0) contrast = 0; if (contrast > 255) contrast = 255; LUI_SetContrast(devNum, contrast); return contrast; } static int drv_LUIse_backlight(int backlight) { if (backlight < 0) backlight = 0; if (backlight > 1) backlight = 1; LUI_CCFL(devNum, backlight); return backlight; } /* start graphic display */ static int drv_LUIse_start(const char *section) { char *s; int gfxmode, gfxinvert, ScreenRotation, IOrefresh; int contrast, backlight; /* read devNum from config */ s = cfg_get(section, "DeviceNum", 0); if (s == NULL || *s == '\0') { error("%s: no '%s.DeviceNum' entry from %s", Name, section, cfg_source()); return -1; } if (sscanf(s, "%d", &devNum) < 0 || devNum > 4) { error("s: bad DeviceNum '%s' from %s", Name, s, cfg_source()); return -1; } info("%s: using
#DVB Santo Stefano al mare (IM)
#Aggiornato al 10/08/2008
#Fonte: DGTVI.it
#s-stefano@email.it
# T freq bw fec_hi fec_lo mod transmission-mode guard-interval hierarchy
#MUX-A RAI
T 586000000 8MHz 2/3 NONE QAM64 8k 1/32 NONE
#MUX-B RAI
T 666000000 8MHz 2/3 NONE QAM64 8k 1/32 NONE
#MUX MEDIASET 1
T 570000000 8MHz 2/3 NONE QAM64 8k 1/32 NONE
#MUX MEDIASET 2
T 482000000 8MHz 2/3 NONE QAM64 8k 1/32 NONE
#MUX MBONE
T 522000000 8MHz 2/3 NONE QAM64 8k 1/32 NONE
#MUX DFREE
T 650000000 8MHz 2/3 NONE QAM64 8k 1/32 NONE
#MUX TIMB 1
T 594000000 8MHz 2/3 NONE QAM64 8k 1/32 NONE