[Linux-parport] EPP writing address
Alessio PICCIOLI
alessio.piccioli at pi.infn.it
Wed Jan 28 09:55:04 GMT 2004
In EPP mode with ppdev module how can i dinstinguish using write command
between writing data and writing address ?
fd = fopen ( "/dev/parport0" , 0_RDWR ) ;
ioctl ( fd, PPCLAIM ) ;
int mode ;
mode = IEEE1284_MODE_EPP ;
ioctl ( fd , &mode ) ;
/* WRITING DATA */
write ( fd , const void *ptr , 1 ) ;
/* WRITING ADDRESS */
??????
EPP protocol says that when i am writing data line nDSTR must be low, when i
am writng addresses line nASTR must be low.
Alessio
More information about the Linux-parport
mailing list