/* $Id$ * $URL$ * * 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. * */ /* * * exported fuctions: * * struct DRIVER drv_serdisplib * */ #include "config.h" #include "debug.h" // verbose_level #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 "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; int NUMCOLS = 1; /****************************************/ /*** hardware dependant functions ***/ /****************************************/ static void drv_SD_blit(const int row, const int col, const int height, const int width) { int r, c; RGBA p; for (r = row; r < row + height; r++) { for (c = col; c < col + width; c++) { p = drv_generic_graphic_rgb(r, c); // printf("blit (%d,%d) A%d.R%d.G%d.B%d\n", c, r, p.A, p.R, p.G, p.B); serdisp_setcolour(dd, c, r, serdisp_pack2ARGB(0xff, p.R, p.G, p.B)); } } 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 dr
# Ireland, Dungarvan
# Generated from http://www.rtenl.ie/wp-content/uploads/2011/12/SAORVIEW-Frequencies-Rev-1.0.pdf
# T freq bw fec_hi fec_lo mod transmission-mode guard-interval hierarchy
T 746000000 8MHz 3/4 NONE QAM16 2k 1/32 NONE # CH55: Saorview
verse); AddFunction("LCD::rotate", 1, plugin_rotate); return 0; } /* close driver & display */ int drv_SD_quit(const int quiet) { info("%s: shutting down.", Name); drv_generic_graphic_clear(); if (!quiet) { drv_generic_graphic_greet("goodbye!", NULL); } drv_generic_graphic_quit(); serdisp_quit(dd); return (0); } DRIVER drv_serdisplib = { .name = Name, .list = drv_SD_list, .init = drv_SD_init, .quit = drv_SD_quit, };