/* $Id: drv_USBLCD.c,v 1.4 2004/05/26 11:37:36 reinelt Exp $ * * new style driver for USBLCD displays * * Copyright 1999-2004 Michael Reinelt * Copyright 2004 The LCD4Linux Team * * based on the old-style USBLCD driver which is * Copyright 2002 Robin Adams, Adams IT Services * * 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_USBLCD.c,v $ * Revision 1.4 2004/05/26 11:37:36 reinelt * * Curses driver ported. * * Revision 1.3 2004/05/23 08:58:30 reinelt * * icon bug with USBLCD fixed * * Revision 1.2 2004/03/19 09:17:46 reinelt * * removed the extra 'goto' function, row and col are additional parameters * of the write() function now. * * Revision 1.1 2004/02/15 08:22:47 reinelt * ported USBLCD driver to NextGeneration * added drv_M50530.c (I forgot yesterday, sorry) * removed old drivers M50530.c and USBLCD.c * */ /* * * exported fuctions: * * struct DRIVER drv_USBLCD * */ #include "config.h" #include #include #include #include #include #include #include #include #include #include "debug.h" #include "cfg.h" #include "udelay.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 IOC_GET_HARD_VERSION 1 #define IOC_GET_DRV_VERSION 2 static char Name[]="USBLCD"; static char *Port=NULL; static int usblcd_file; static unsigned char *Buffer; static unsigned char *BufPtr; // **************************************** // *** hardware dependant functions *** // **************************************** static void drv_UL_send () { #if 0 struct timeval now, end; gettimeofday (&now, NULL); #endif write(usblcd_file,Buffer,BufPtr-Buffer); #if 0 gettimeofday (&end, NULL); debug ("send %d bytes in %d msec (%d usec/byte)", BufPtr-Buffer, (1000000*(end.tv_sec-now.tv_sec)+end.tv_usec-now.tv_usec)/1000, (1000000*(end.tv_sec-now.tv_sec)+end.tv_usec-now.tv_usec)/(BufPtr-Buffer)); #endif BufPtr=Buffer; } static void drv_UL_command (unsigned char cmd) { *BufPtr++='\0'; *BufPtr++=cmd; } static void drv_UL_write (int row, int col, unsigned char *data, int len) { int pos = (row%2)*64 + (row/2)*20 + col; drv_UL_command (0x80|pos); while (len--) { if(*data == 0) *BufPtr++ = 0; *BufPtr++ = *data++; } drv_UL_send(); } static void drv
# Nahuel 1 @ 71.8W
# freq pol sr fec

S 11673000 V 04000000 AUTO
S 11680000 V 03335000 AUTO
S 11654000 V 04170000 AUTO
S 11874000 V 04000000 AUTO
S 12136000 V 02960000 AUTO
S 11873000 H 08000000 AUTO
S 12116000 H 14396000 AUTO
S 11997000 V 08500000 AUTO