USB嵌入式主机上的打印机类
Typicalembeddedapplicationsareratherrestrictedin
howtheycanpresentdatatoauser.Limitedamounts
ofdatacanbedisplayedonanLCDoragraphicaldis-
play,butlargeamountsofdataaremoreproblematical.
Often,dataistransferredviaanelectricalinterfaceor
viaelectronicstoragemedia,suchasathumbdrive,for
furtherexamination,butitcanbehandytoobtainan
immediatesnapshotofthedata.TheUSBPrinter
Class,usedononeofMicrochip’smicrocontrollerswith
theUSBOTGperipheral,allowsanembeddedapplica-
tiontoutilizeaUSBprintertoprovidehardcopyoutput
forquickreviewandpossiblearchival.AN1233USBPrinterClassonanEmbeddedHostAuthor:KimOttenUSBPRINTERCLASSMicrochipTechnologyInc.The“USBDeviceClassDefinitionforPrintingDevices”specification,availablefromtheUSBImplementersForum,definestheconfiguration,interfaceandINTRODUCTIONendpointdescriptors,aswellasthecommunicationsTypicalembeddedapplicationsareratherrestrictedinprotocolusedtocommun