/* $Id$ * $URL$ * * new style driver for BWCT USB LCD displays * * Copyright (C) 2003 Michael Reinelt * Copyright (C) 2004 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_BWCT * */ #include "config.h" #include #include #include #include #include #include #include #include #include #include #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_text.h" #define LCD_USB_VENDOR 0x03da #define LCD_USB_DEVICE 0x0002 #define LCD_RESET 1 #define LCD_CMD 2 #define LCD_DATA 3 #define LCD_CONTRAST 4 static char Name[] = "BWCT"; static usb_dev_handle *lcd; static int interface; extern int got_signal; /****************************************/ /*** hardware dependant functions ***/ /****************************************/ static int drv_BW_open(void) { struct usb_bus *busses, *bus; struct usb_device *dev; lcd = NULL; info("%s: scanning USB for BWCT LCD...", Name); usb_set_debug(0); usb_init(); usb_find_busses(); usb_find_devices(); busses = usb_get_busses(); for (bus = busses; bus; bus = bus->next) { for (dev = bus->devices; dev; dev = dev->next) { int c; if (dev->descriptor.idVendor != LCD_USB_VENDOR) continue; /* Loop through all of the configurations */ for (c = 0; c < dev->descriptor.bNumConfigurations; c++) { int i; for (i = 0; i < dev->config[c].bNumInterfaces; i++) { int a; for (a = 0; a < dev->config[c].interface[i].num_altsetting; a++) { if ((dev->descriptor.idProduct == LCD_USB_DEVICE) || ((dev->config[c].interface[i].altsetting[a].bInterfaceClass == 0xff) && (dev->config[c].interface[i].altsetting[a].bInterfaceSubClass == 0x01))) { info("%s: found BWCT USB LCD on bus %s device %s", Name, bus->dirname, dev->filename); interface = i; lcd = usb_open(dev); if (usb_claim_interface(lcd, interface) < 0) { error("%s: usb_claim_interface() failed!", Name);
# 2012-07-23 Antti Palosaari <crope@iki.fi>
# generated from http://www.digita.fi/kuluttajat/tv/nakyvyysalueet/kanavanumerot_ja_taajuudet
T 522000000 8MHz 2/3 NONE QAM64 8k 1/8 NONE
T 602000000 8MHz 2/3 NONE QAM64 8k 1/8 NONE
tting down.", Name); drv_generic_text_quit(); /* clear display */ drv_BW_clear(); /* say goodbye... */ if (!quiet) { drv_generic_text_greet("goodbye!", NULL); } debug("closing USB connection"); drv_BW_close(); return (0); } DRIVER drv_BWCT = { .name = Name, .list = drv_BW_list, .init = drv_BW_init, .quit = drv_BW_quit, };