34 #define __INCLUDE_FROM_USB_DRIVER
35 #include "../../Core/USBMode.h"
37 #if defined(USB_CAN_BE_HOST)
39 #define __INCLUDE_FROM_PRINTER_DRIVER
40 #define __INCLUDE_FROM_PRINTER_HOST_C
44 uint16_t ConfigDescriptorSize,
45 void* ConfigDescriptorData)
52 memset(&PRNTInterfaceInfo->
State, 0x00,
sizeof(PRNTInterfaceInfo->
State));
57 while (!(DataINEndpoint) || !(DataOUTEndpoint))
59 if (!(PrinterInterface) ||
71 DataINEndpoint =
NULL;
72 DataOUTEndpoint =
NULL;
80 DataINEndpoint = EndpointData;
82 DataOUTEndpoint = EndpointData;
96 EndpointAddress = DataINEndpoint->EndpointAddress;
106 EndpointAddress = DataOUTEndpoint->EndpointAddress;
159 uint8_t EndpointType = (Endpoint->Attributes &
EP_TYPE_MASK);
177 #if !defined(NO_CLASS_DRIVER_AUTOFLUSH)
200 uint8_t*
const PortStatus)
208 .wLength =
sizeof(uint8_t),
372 int16_t ReceivedByte = -1;
395 char*
const DeviceIDString,
396 const uint16_t BufferSize)
399 uint16_t DeviceIDStringLength = 0;
407 .wLength =
sizeof(DeviceIDStringLength),
415 if (!(DeviceIDStringLength))
417 DeviceIDString[0] = 0x00;
421 DeviceIDStringLength =
be16_to_cpu(DeviceIDStringLength);
423 if (DeviceIDStringLength > BufferSize)
424 DeviceIDStringLength = BufferSize;
431 memmove(&DeviceIDString[0], &DeviceIDString[2], DeviceIDStringLength - 2);
433 DeviceIDString[DeviceIDStringLength - 2] = 0x00;