Printer.h File Reference

Host mode driver for the library USB Printer Class driver. More...

#include "../../USB.h"
#include "../Common/Printer.h"
#include <string.h>

Data Structures

struct  USB_ClassInfo_PRNT_Host_t
 Printer Class Host Mode Configuration and State Structure. More...

Enumerations

enum  PRNTHost_EnumerationFailure_ErrorCodes_t {
  PRNT_ENUMERROR_NoError = 0,
  PRNT_ENUMERROR_InvalidConfigDescriptor = 1,
  PRNT_ENUMERROR_NoPrinterInterfaceFound = 2,
  PRNT_ENUMERROR_EndpointsNotFound = 3
}

Functions

uint8_t PRNT_Host_ConfigurePipes (USB_ClassInfo_PRNT_Host_t *const PRNTInterfaceInfo, uint16_t ConfigDescriptorSize, void *DeviceConfigDescriptor) ATTR_NON_NULL_PTR_ARG(1) ATTR_NON_NULL_PTR_ARG(3)
uint8_t PRNT_Host_SetBidirectionalMode (USB_ClassInfo_PRNT_Host_t *const PRNTInterfaceInfo) ATTR_NON_NULL_PTR_ARG(1)
uint8_t PRNT_Host_GetPortStatus (USB_ClassInfo_PRNT_Host_t *const PRNTInterfaceInfo, uint8_t *const PortStatus) ATTR_NON_NULL_PTR_ARG(1) ATTR_NON_NULL_PTR_ARG(2)
uint8_t PRNT_Host_SoftReset (USB_ClassInfo_PRNT_Host_t *const PRNTInterfaceInfo) ATTR_NON_NULL_PTR_ARG(1)
uint8_t PRNT_Host_SendData (USB_ClassInfo_PRNT_Host_t *const PRNTInterfaceInfo, void *PrinterCommands, uint16_t CommandSize) ATTR_NON_NULL_PTR_ARG(1) ATTR_NON_NULL_PTR_ARG(2)
uint8_t PRNT_Host_GetDeviceID (USB_ClassInfo_PRNT_Host_t *const PRNTInterfaceInfo, char *DeviceIDString, uint16_t BufferSize) ATTR_NON_NULL_PTR_ARG(1)
static void PRNT_Host_USBTask (USB_ClassInfo_PRNT_Host_t *const PRNTInterfaceInfo)

Detailed Description

Host mode driver for the library USB Printer Class driver.

Note:
This file should not be included directly. It is automatically included as needed by the class driver dispatch header located in LUFA/Drivers/USB/Class/Printer.h.
Generated by  doxygen 1.6.3