Skip to main content

Module printer

Module printer 

Source
Expand description

Printer function.

The Linux kernel configuration option CONFIG_USB_CONFIGFS_F_PRINTER must be enabled.

A device file at /dev/g_printerN will be created for each instance of the function, where N instance number. See examples/printer.rs for an example.

Structs§

Printer
USB printer function.
PrinterBuilder
Builder for USB printer function.
StatusFlags
Printer status flags

Constants§

GADGET_GET_PRINTER_STATUS
Get printer status ioctrl ID
GADGET_SET_PRINTER_STATUS
Set printer status ioctrl ID