/* $Id$ * $URL$ * * driver for Milford Instruments 'BPK' piggy-back serial interface board * for standard Hitachi 44780 compatible lcd modules. * * Copyright (C) 2003, 2004 Andy Baxter * Copyright (C) 2004 The LCD4Linux Team * * based on the MatrixOrbital driver which is * Copyright (C) 1999, 2000 Michael Reinelt * * 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_MilfordInstruments * */ #include "config.h" #include #include #include #include #include "debug.h" #include "cfg.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_text.h" #include "drv_generic_serial.h" static char Name[] = "MilfordInstruments"; typedef struct { int type; char *name; int rows; int cols; } MODEL; static MODEL Models[] = { {216, "MI216", 2, 16}, {220, "MI220", 2, 20}, {240, "MI240", 2, 40}, {420, "MI420", 4, 20}, {-1, "unknown", -1, -1}, }; static int Model; /****************************************/ /*** hardware dependant functions ***/ /****************************************/ static void drv_MI_clear(void) { drv_generic_serial_write("\376\001", 2); /* clear screen */ } static void drv_MI_write(const int row, const int col, const char *data, const int len) { char cmd[2] = "\376x"; int ddbase = 128; if (row & 1) { /* i.e. if row is 1 or 3 */ ddbase += 64; } if (row & 2) { /* i.e. if row is 0 or 2. */ ddbase += 20; } cmd[1] = (char) (ddbase + col); drv_generic_serial_write(cmd, 2); drv_generic_serial_write(data, len); } static void drv_MI_defchar(const int ascii, const unsigned char *matrix) { int i; char cmd[10] = "\376x"; if (ascii < 8) { cmd[1] = (char) (64 + ascii * 8); for (i = 0; i < 8; i++) { cmd[i + 2] = matrix[i] & 0x1f; }; drv_generic_serial_write(cmd, 10); } } static int drv_MI_start(const char *section, const int quiet) { int i; char *model; model = cfg_get(section, "Model", NULL); if (model == NULL && *model == '\0') { error("%s: no '%s.Model' entry from %s", Name, section, cfg_source()); return -1; } for (i = 0; Models[i].type != 0xff; i++) { if (strcasecmp(Models[i].name, model) == 0) break; } if (Models[i].type == 0xff) { error("%s: %s.Model '%s' is unknown from %s", Name, section, mode
# Sweden - Södertälje/Ragnhildsborg
# T freq bw fec_hi fec_lo mod transmission-mode guard-interval hierarchy
T 506000000 8MHz 2/3 NONE QAM64 8k 1/8 NONE
T 522000000 8MHz 2/3 NONE QAM64 8k 1/8 NONE
T 538000000 8MHz 2/3 NONE QAM64 8k 1/8 NONE
T 546000000 8MHz 2/3 NONE QAM64 8k 1/8 NONE
T 666000000 8MHz 2/3 NONE QAM64 8k 1/8 NONE
T 682000000 8MHz 2/3 NONE QAM64 8k 1/8 NONE