Komunikace parakerniho portu pres /dev/lp?

Michal Dobes dobes na tesnet.cz
Pondělí Leden 20 10:01:36 CET 2003


Ales Martinek wrote:
> Potreboval bych poradit jak napsat program pomoci ktereho bych mohl
> komunikovta s praralerni portem pres /dev/lp? jako pres instrukce in a out.

Je vic moznosti nez jen in/out instrukce. Treba:
fh = open ("/dev/port", O_RDWR)
while(neco) {
	lseek (fh, 0x378, SEEK_SET)
	write (fh, &data, 1)
}

	Majkl


Další informace o konferenci Linux