/* $Id: drv_serdisplib.c,v 1.5 2005/05/28 09:06:14 reinelt Exp $ * * driver for serdisplib displays * * Copyright (C) 2005 Michael Reinelt * 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_serdisplib.c,v $ * Revision 1.5 2005/05/28 09:06:14 reinelt * serdisplib cosmetics * * Revision 1.4 2005/05/12 14:55:47 reinelt * plugins for serdisplib driver * * Revision 1.3 2005/05/12 05:52:43 reinelt * serdisplib GET_VERSION_MAJOR macro * * Revision 1.2 2005/05/11 04:27:49 reinelt * small serdisplib bugs fixed * * Revision 1.1 2005/05/10 13:20:14 reinelt * added serdisplib driver * */ /* * * exported fuctions: * * struct DRIVER drv_serdisplib * */ #include "config.h" #include #include #include #include #include /* Fixme: This should be removed as soon as serdisp.h * contains this macros */ #ifndef SERDISP_VERSION_GET_MAJOR #define SERDISP_VERSION_GET_MAJOR(_c) ((int)( (_c) >> 8 )) #define SERDISP_VERSION_GET_MINOR(_c) ((int)( (_c) & 0xFF )) #endif #include "debug.h" #include "cfg.h" #include "qprintf.h" #include "plugin.h" #include "widget.h" #include "widget_text.h" #include "widget_icon.h" #include "widget_bar.h" #include "drv.h" #include "drv_generic_graphic.h" #ifdef WITH_DMALLOC #include #endif static char Name[] = "serdisplib"; static serdisp_CONN_t *sdcd; static serdisp_t *dd; /****************************************/ /*** hardware dependant functions ***/ /****************************************/ static void drv_SD_blit(const int row, const int col, const int height, const int width) { int r, c; long color; for (r = row; r < row + height; r++) { for (c = col; c < col + width; c++) { color = drv_generic_graphic_FB[r * LCOLS + c] ? SD_COL_BLACK : SD_COL_WHITE; serdisp_setcolour(dd, c, r, color); } } serdisp_update(dd); } static int drv_SD_contrast(int contrast) { if (contrast < 0) contrast = 0; if (contrast > MAX_CONTRASTSTEP) contrast = MAX_CONTRASTSTEP; serdisp_feature(dd, FEATURE_CONTRAST, contrast); return contrast; } static int drv_SD_backlight(int backlight) { if (backlight < FEATURE_NO) backlight = FEATURE_NO; if (backlight > FEATURE_YES) backlight = FEATURE_YES; serdisp_feature(dd, FEATURE_BACKLIGHT, backlight); return backlight; } static int drv_SD_reverse(int reverse) { if (reverse < FEATURE_NO) reverse = FEATURE_NO; if (reverse > FEATURE_YES) reverse = FEATURE_YES; serdisp_feature(dd, FEATURE_REVERSE, reverse); return reverse; } static int drv_SD_rotate(int rotate) { if (rotate < 0) rotate = 0; if (rotate > 3) rotate = 3; serdisp_feature(dd, FEATURE_ROTATE, rotate); return rotate; } static int drv_SD_start(const char *section) { long version; char *port, *model, *options, *s; int contrast, backlight, reverse, rotate; version = se
# DVB-T Hnusta (Hnusta, Slovak Republic)
# Created from http://www.dvbt.towercom.sk/odbornici.php

# 2.st multiplex (commercial) - on channel 27
[CHANNEL]
	DELIVERY_SYSTEM = DVBT
	FREQUENCY = 522000000
	BANDWIDTH_HZ = 8000000
	CODE_RATE_HP = 2/3
	CODE_RATE_LP = NONE
	MODULATION = QAM/64
	TRANSMISSION_MODE = 8K
	GUARD_INTERVAL = 1/4
	HIERARCHY = NONE
	INVERSION = AUTO


# 3.st multiplex (public) - on channel 54
[CHANNEL]
	DELIVERY_SYSTEM = DVBT
	FREQUENCY = 738000000
	BANDWIDTH_HZ = 8000000
	CODE_RATE_HP = 2/3
	CODE_RATE_LP = NONE
	MODULATION = QAM/64
	TRANSMISSION_MODE = 8K
	GUARD_INTERVAL = 1/4
	HIERARCHY = NONE
	INVERSION = AUTO