Main index | Section 4 | 日本語 | Options |
Minor numbering: unit numbers correspond directly to ppbus numbers.
#include <dev/ppbus/ppi.h>
#include <dev/ppbus/ppbconf.h>
PPIGDATA, PPISDATA | |
Get and set the contents of the data register. | |
PPIGSTATUS, PPISSTATUS | |
Get and set the contents of the status register. | |
PPIGCTRL, PPISCTRL | |
Get and set the contents of the control register. The following defines correspond to bits in this register. Setting a bit in the control register drives the corresponding output low. | |
STROBE
AUTOFEED nINIT SELECTIN PCD | |
PPIGEPP, PPISEPP | |
Get and set the contents of the EPP control register. | |
PPIGECR, PPISECR | |
Get and set the contents of the ECP control register. | |
PPIGFIFO, PPISFIFO | |
Read and write the ECP FIFO (8-bit operations only). | |
int fd; uint8_t val;
val = 0x5a; ioctl(fd, PPISDATA, &val); ioctl(fd, PPIGCTRL, &val); val |= STROBE; ioctl(fd, PPISCTRL, &val); val &= ~STROBE; ioctl(fd, PPISCTRL, &val);
The ioctl() interface is slow, and there is no way (yet) to chain multiple operations together.
The headers required for user applications are not installed as part of the standard system.
PPI (4) | January 2, 1998 |
Main index | Section 4 | 日本語 | Options |
Please direct any comments about this manual page service to Ben Bullock. Privacy policy.
“ | As soon as we started programming, we found to our surprise that it wasn't as easy to get programs right as we had thought. Debugging had to be discovered. I can remember the exact instant when I realized that a large part of my life from then on was going to be spent in finding mistakes in my own programs. | ” |
— Maurice Wilkes |