LUFA Library
USB_ClassInfo_PRNT_Host_t Struct Reference

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

#include <PrinterClassHost.h>

Data Fields

struct {
   USB_Pipe_Table_t   DataINPipe
   USB_Pipe_Table_t   DataOUTPipe
struct {
   uint8_t   AlternateSetting
   uint8_t   InterfaceNumber
   bool   IsActive

Detailed Description

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.

Field Documentation

◆ AlternateSetting

uint8_t USB_ClassInfo_PRNT_Host_t::AlternateSetting

Alternate setting within the Printer Interface in the attached device.

◆ Config

struct { ... } USB_ClassInfo_PRNT_Host_t::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.

◆ DataINPipe

USB_Pipe_Table_t USB_ClassInfo_PRNT_Host_t::DataINPipe

Data IN Pipe configuration table.

◆ DataOUTPipe

USB_Pipe_Table_t USB_ClassInfo_PRNT_Host_t::DataOUTPipe

Data OUT Pipe configuration table.

◆ InterfaceNumber

uint8_t USB_ClassInfo_PRNT_Host_t::InterfaceNumber

Interface index of the Printer interface within the attached device.

◆ IsActive

bool USB_ClassInfo_PRNT_Host_t::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.

◆ State

struct { ... } USB_ClassInfo_PRNT_Host_t::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.

The documentation for this struct was generated from the following file: