From: Abhishek K. <neu...@ho...> - 2003-11-24 14:55:28
|
hello >>(1)How does the driver figures out the VENDOR ID and the PRODUCT >>ID for the USBLCd.cm and README.Drivers ? >>My Grand Pacific Corporation LCD has some vendor ID and product >> Id but I dont know how to make the driver know that ? > > >Normally lcd4linux does not care for such things. Most USB displays emulate >a serial interface via USB, and lcd4linux talks to it via /dev/usb/tts/* > >USBLCD on the other hand has its own kernel driver, which provides the >/dev/usb/lcd, that's it. I can see no vendor/device id's here. > (1)Fine... but the moment you plug in the USBLCD to the usb port,how does the kernerl recognises that UBLCD's brand lcd has entered (I guess that's usb's functionality to provide plug and play facility). plus how does it assigns /dev/usb/lcd to the USBLCD.The hardware (USBLCD inthis case) must be having some identification right ? >>(2)Second thing ,I want to send a bitstream of "10101010101..." pout >> through the USB port to my LCD. >>Do I need to write a seaparate code to send the data out to >>LCd or I can do that using my Skeleton.c(for grand pacific.. ) ? > >Well, that depends. >Maybe it would be best if you could send me a datasheet of your display. > I'll have a look over it and tell you which method would be best, and >which existing driver you could use as a basis. > (2)I am sending you the data sheet of the LCD.Actually we are using an LCD with a "ezusb" chip (cypress) which is the usb peripheral controller device on the device side. >>Can I use put() and icon() functions or flush() ? >>I am unabel to understand how "what these functions are sending >>out to the USBLCD.c > >Normally all the put() and bar() functions fill up a framebuffer only. the >flush() function writes this framebuffer (or only changes) to the display. >The icon() call is somewhat different: It does animations, too, by >re-defining a custom character. > >> >>(3)What about open function ? >>in README.Drivers we are not asked to 3write open() function ?? > >An open() is usually performed within the LCD->init() function, and the >corresponding close() in the LCD->quit() > > (3)Can I directly write something out of USB to the device say USBLD usnig the driver or do I need to write a different code for it ? regards abhi _________________________________________________________________ BharatMatrimony.com. http://www.bharatmatrimony.com/cgi-bin/bmclicks1.cgi?74 India's premium matrimonial website. |