Lines Matching refs:printer

12 This driver may be used if you are writing printer firmware using Linux as
13 the embedded OS. This driver has nothing to do with using a printer with
18 USB device controller driver is loaded then load the printer gadget driver.
19 This will present a printer interface to the USB Host that your USB Device
22 This driver is structured for printer firmware that runs in user mode. The
23 user mode printer firmware will read and write data from the kernel mode
24 printer gadget driver using a device file. The printer returns a printer status
25 byte when the USB HOST sends a device request to get the printer status. The
35 To load the USB device controller driver and the printer gadget driver. The
42 The follow command line parameter can be used when loading the printer gadget
66 iPNPstring - The PNP ID string used for this printer. You will want to set
68 your printer product.
90 To read printer data from the host to stdout:
95 To write printer data from a file (data_file) to the host:
100 To get the current printer status for the gadget driver:
110 To set printer to Selected/On-line:
115 To set printer to Not Selected/Off-line:
130 To set error status to printer OK:
173 fputs("-get_status Get the current printer status.\n", stderr);
182 fputs("-read_data Read printer data from driver.\n", stderr);
183 fputs("-write_data Write printer sata to driver.\n", stderr);
184 fputs("-NB_read_data (Non-Blocking) Read printer data from driver.\n",
197 /* Open device file for printer gadget. */
217 /* Read data from printer gadget driver. */
247 /* Open device file for printer gadget. */
272 /* Write data to printer gadget driver. */
308 /* Open device file for printer gadget. */
317 /* Read data from printer gadget driver. */
341 /* Open device file for printer gadget. */
352 fprintf(stderr, "ERROR: Failed to set printer status\n");
371 fprintf(stderr, "ERROR: Failed to get printer status\n");
375 /* Open device file for printer gadget. */
392 fprintf(stderr, "ERROR: Failed to set printer status\n");
410 fprintf(stderr, "ERROR: Failed to get printer status\n");