![]() |
LPCOpen Platform
LPCOpen Platform for NXP LPC Microcontrollers
|
Printer Class Host Mode Configuration and State Structure. More...
#include "PrinterClassHost.h"
Data Fields | |
struct { | |
uint8_t DataINPipeNumber | |
bool DataINPipeDoubleBank | |
uint8_t DataOUTPipeNumber | |
bool DataOUTPipeDoubleBank | |
uint8_t PortNumber | |
} | Config |
struct { | |
bool IsActive | |
uint8_t InterfaceNumber | |
uint8_t AlternateSetting | |
uint16_t DataINPipeSize | |
uint16_t DataOUTPipeSize | |
} | State |
Printer Class Host Mode Configuration and State Structure.
Class state structure. An instance of this structure should be made within the user application, and passed to each of the Printer class driver functions as the PRNTInterfaceInfo
parameter. This stores each Printer interface's configuration and state information.
Definition at line 71 of file PrinterClassHost.h.
uint8_t AlternateSetting |
Alternate setting within the Printer Interface in the attached device.
Definition at line 92 of file PrinterClassHost.h.
struct { ... } Config |
Config data for the USB class interface within the device. All elements in this section must be set or the interface will fail to enumerate and operate correctly.
bool DataINPipeDoubleBank |
Indicates if the Printer interface's IN data pipe should use double banking.
Definition at line 76 of file PrinterClassHost.h.
uint8_t DataINPipeNumber |
Pipe number of the Printer interface's IN data pipe.
Definition at line 75 of file PrinterClassHost.h.
uint16_t DataINPipeSize |
Size in bytes of the Printer interface's IN data pipe.
Definition at line 94 of file PrinterClassHost.h.
bool DataOUTPipeDoubleBank |
Indicates if the Printer interface's OUT data pipe should use double banking.
Definition at line 79 of file PrinterClassHost.h.
uint8_t DataOUTPipeNumber |
Pipe number of the Printer interface's OUT data pipe.
Definition at line 78 of file PrinterClassHost.h.
uint16_t DataOUTPipeSize |
Size in bytes of the Printer interface's OUT data pipe.
Definition at line 95 of file PrinterClassHost.h.
uint8_t InterfaceNumber |
Interface index of the Printer interface within the attached device.
Definition at line 91 of file PrinterClassHost.h.
bool IsActive |
Indicates if the current interface instance is connected to an attached device, valid after PRNT_Host_ConfigurePipes() is called and the Host state machine is in the Configured state.
Definition at line 87 of file PrinterClassHost.h.
uint8_t PortNumber |
Port number that this interface is running.
Definition at line 80 of file PrinterClassHost.h.
struct { ... } State |
State data for the USB class interface within the device. All elements in this section may be set to initial values, but may also be ignored to default to sane values when the interface is enumerated.