Fix PrinterHost demo so that it will only enumerate printers with Bidirectional protocol encapsulation. Change enumeration code to automatically select the correct alternate setting for the printer interface to select the bidirectional protocol.
This commit is contained in:
parent
9d2613d908
commit
d3fb6273aa
4 changed files with 44 additions and 30 deletions
|
@ -55,11 +55,15 @@
|
|||
NoInterfaceFound = 4,
|
||||
NoEndpointFound = 5,
|
||||
};
|
||||
|
||||
/* External Variables: */
|
||||
uint8_t PrinterInterfaceNumber;
|
||||
uint8_t PrinterAltSetting;
|
||||
|
||||
/* Function Prototypes: */
|
||||
uint8_t ProcessConfigurationDescriptor(void);
|
||||
|
||||
uint8_t NextPrinterInterface(void* CurrentDescriptor);
|
||||
uint8_t NextBidirectionalPrinterInterface(void* CurrentDescriptor);
|
||||
uint8_t NextInterfaceBulkDataEndpoint(void* CurrentDescriptor);
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue