Lucent Technologies USS-720 manual IOCTL1284 Setmode

Page 60

USS-720

Preliminary User Guide, Rev. 2

USB Device Driver

February 1999

 

 

Table of Contents

 

Contents

Page

1. Introduction

7-1

2. Initialization

7-3

3. I/O File Functions

7-3

3.1. CreateFile

7-4

3.2. ReadFile

7-5

3.3. WriteFile

7-6

3.4. DeviceIoControl

7-7

3.5. CloseHandle

7-8

4. I/O Control Codes

7-9

4.1. IOCTL_1284_ ECP_FWDTOREV

7-10

4.2. IOCTL_1284_ECP_REVTOFWD

7-11

4.3. IOCTL_1284_ ECP_SET_CHANNEL

7-12

4.4. IOCTL_1284_ SET_MODE

7-13

4.5. IOCTL_1284_ TERMINATE

7-14

4.6. IOCTL_ABORT_PIPE

7-15

4.7. IOCTL_CANCEL_PIPE_REQUEST

7-16

4.8. IOCTL_GET_1284_REGISTER

7-17

4.9. IOCTL_GET_ALTSETTING

7-18

4.10. IOCTL_GET_CAPABILITIES

7-19

4.11. IOCTL_GET_CONFIGURATION_DESCRIPTOR

7-20

4.12. IOCTL_GET_DEVICE_DESCRIPTOR

7-21

4.13. IOCTL_GET_DEVICE_INSTANCES

7-22

4.14. IOCTL_GET_INTERFACE

7-23

4.15. IOCTL_GET_PORT_STATUS

7-24

4.16. IOCTL_ISSUE_USS720_COMMAND

7-25

4.17. IOCTL_READ_INTERRUPT_PIPE

7-26

4.18. IOCTL_RESET_PIPE

7-27

4.19. IOCTL_SET_1284_REGISTER

7-28

4.20. IOCTL_SET_ALTSETTING

7-29

4.21. IOCTL_SOFT_RESET

7-30

5. I/O Control Data Structures

7-31

5.1. DEVICE_INSTANCE_HEADER

7-31

5.2. DEVICE_INSTANCE

7-31

5.3. REGISTER_1284

7-32

5.4. ADVREGISTER_1284

7-33

7-2

Lucent Technologies Inc.

Image 60
Contents Introduction Information Manual, Rev SeptemberTable of Contents Information Manual, Rev Evaluation Kit for USS-720 September USB-to-IEEE BridgeUSS-720 USB Device Driver Preliminary User Guide IOCTL1284 TerminateIOCTLSET1284REGISTER USS-720 USB Port Monitor Application Note Evaluation Kit Contents Hardware Requirements \SAMPLESOSR2.1 Cable Installation Instructions Getting Started InstructionsSoftware Updates Windows 98 Cable Installation InstructionsUSB Driver and Port Monitor Plug and PlayPort Creation Eeprom Lucent Technologies Inc Lucent Technologies Microelectronics Group In-System Design, IncUSB Applications Support September Evaluation Kit Software USS-720 Driver Software Object Code License AgreementFebruary IntroductionUSS-720 Software Use Agreement February Licensed SoftwareFurnishing of Licensed Software OwnershipUSS-720 February Software Use AgreementWarranty and Indemnity Agreement PrevailsNothing Construed 04 ConfidentialityPublicity NonassignabilityAddresses IntegrationApplicable Law DisputesUSS720.SYS USS720.INFDocumentation USS-720 Software Use Agreement February Software Components Application Note, Rev FebruaryCustomer-Defined Data Plug and Play Operation PnPPrinter Enumeration Power Management Installation ProcessOperating Systems Supported USB Hardware Types SupportedPrinter Types Supported Print Types SupportedFeatures Preliminary Data Sheet, Rev SeptemberDescription Table of Contents Preliminary Data Sheet, Rev USS-720 Pin InformationUSB-to-IEEE Parallel Port nAutoFd Signal Active-Low Parallel Port nSelectIn Signal Active-LowParallel Port nInit Signal Active-Low Parallel Port nAck Signal Active-LowOverview USB PortDevice Descriptor, Configurations, and Inter- faces Descriptor LocationsUSB-to- Ieee 1284 Bridge September Onboard Device DescriptorDevice Descriptor Offset Field Size Value Description USB-to- Ieee Configuration DescriptorInterface Descriptors Bulk Out Endpoint Descriptor, I0A0E1September USB-to-IEEE1284 Bridge Bulk Out Endpoint Descriptor, I0A1E1Bulk In Endpoint Descriptor, I0A1E2 Bulk Out Endpoint Descriptor, I0A2E1 Bulk In Endpoint Descriptor, I0A2E2Interrupt Endpoint Descriptor, I0A2E3 Pipes RequestsStandard Requests Printer Class-Specific Requests Get Port Status Data Bit DescriptionVendor-Specific Requests GET1284REGISTERSET1284REGISTER Ieee 1284 Port Register-Based OperationRegisters GET1284REGISTER Data Byte Register DataInterrupt Pipe Read Data Byte Register DataStatus Register Address Bit Symbol Default Bit Symbol Bit DescriptionParallel Port nFault Signal Reserved Control Register Address Bit Symbol Access Default Bit Symbol Bit DescriptionParallel Port nInit Signal USB-to-IEEE1284 BridgeUSS-720Instant USB ECP Command Register Address Bit Symbol Access Extended Control Register Address Bit Symbol Mode20 DescriptionUSS-720 Control Register Address Bit Symbol USS-720 Setup Register Address Bit Symbol Interrupts External Circuitry Requirements External Crystal ConnectionFilter Bypass Mode High Drive ModeSelf-Powered Mode Absolute Maximum Ratings Parameter Symbol Min UnitElectrical Characteristics Parameter Symbol Test Conditions Min Typ Max UnitCapacitance Values Parameter Unit Clklo ClkhiTiming Characteristics Setup and Hold Input Timing ParameterOutput Delay Timing Parameter Min Max Unit Outline Diagram Ordering InformationPin Mqfp Device Code Package ComcodeApplication Note February Description Parallel PortBridging USB to Typical Circuit Showing USSLucent Technologies Inc Signal Directions Preliminary User Guide, Rev FebruaryIOCTL1284 Setmode Initialization O File FunctionsPreliminary User Guide, Rev USS-720 February USB Device DriverCreateFile Error Codes ReadFileWriteFile DeviceIoControl CloseHandle O Control Codes Control Code DescriptionIOCTL1284 Ecpfwdtorev ParametersIOCTL1284ECPREVTOFWD IOCTL1284 Ecpsetchannel Register Mode Description IOCTL1284 SetmodeIOCTL1284 Terminate Ioctlabortpipe Value DescriptionBulkoutpipe BulkinpipeIoctlcancelpiperequest IOCTLGET1284REGISTER Ioctlgetaltsetting ALTINTERFACE0ALTINTERFACE1 ALTINTERFACE2Ioctlgetcapabilities Ioctlgetconfigurationdescriptor Ioctlgetdevicedescriptor Ioctlgetdeviceinstances Ioctlgetinterface Ioctlgetportstatus Bit MeaningIOCTLISSUEUSS720COMMAND Command DescriptionIoctlreadinterruptpipe Byte DescriptionIoctlresetpipe IOCTLSET1284REGISTER Ioctlsetaltsetting Ioctlsoftreset O Control Data Structures DeviceinstanceheaderDeviceinstance Data StructureREGISTER1284 REGISTER1284, *PREGISTER1284ADVREGISTER1284 ADVREGISTER1284, *PADVREGISTER1284Lucent Technologies Inc USS-720 USB Port Monitor USS-720 Application Note USB Port Monitor February Printer Cable with Instant USBSoftware Installation Instructions W98USS720EvalKit2402.zip to download the installation filesApplication Note June Click on Enter LibrarySeptember MN99-052CMPR-1 Replaces MN97-061CMPR-04