/* * The following constants describe the various signals of the printer port * hardware. Note that the hardware inverts some signals and that some * signals are active low. An example is LP_STROBE, which must be programmed * with 1 for being active and 0 for being inactive, because the strobe signal * gets inverted, but it is also active low.
*/
/* * defines for 8255 control port * base + 2 * accessed with LP_C(minor)
*/ #define LP_PINTEN 0x10 /* high to read data in or-ed with data out */ #define LP_PSELECP 0x08 /* inverted output, active low */ #define LP_PINITP 0x04 /* unchanged output, active low */ #define LP_PAUTOLF 0x02 /* inverted output, active low */ #define LP_PSTROBE 0x01 /* short high output on raising edge */
/* * the value written to ports to test existence. PC-style ports will * return the value written. AT-style ports will return 0. so why not * make them the same ?
*/ #define LP_DUMMY 0x00
/* * This is the port delay time, in microseconds. * It is used only in the lp_init() and lp_reset() routine.
*/ #define LP_DELAY 50
#endif
¤ Dauer der Verarbeitung: 0.27 Sekunden
(vorverarbeitet)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung ist noch experimentell.