All rights reserved. No parts of this work may be reproduced in any form or by any means - graphic, electronic, or
mechanical, including photocopying, recording, taping, or information storage and retrieval systems - without the
written permission of the publisher.
Products that are referred to in this document may be either trademarks and/or registered trademarks of the
respective owners. The publisher and the author make no claim to these trademarks.
While every precaution has been taken in the preparation of this document, the publisher and the author assume no
responsibility for errors or omissions, or for damages resulting from the use of information contained in this document
or from the use of programs and source code that may accompany it. In no event shall the publisher and the author be
liable for any loss of profit or any other commercial damage caused or alleged to have been caused directly or
indirectly by this document.
Cypress CyAPI Programmer's Reference
© 2003 Cypress Semiconductor
Table of Contents
Part I Overview
5
Part II CCyBulkEndPoint
5
................................................................................................................................... 61 BeginDataXfer( )
................................................................................................................................... 72 CCyBulkEndPoint( )
................................................................................................................................... 73 CCyBulkEndPoint( )
Part III CCyControlEndPoint
7
................................................................................................................................... 81 BeginDataXfer( )
................................................................................................................................... 92 CCyControlEndPoint( )
................................................................................................................................... 93 CCyControlEndPoint( )
................................................................................................................................... 94 Direction
................................................................................................................................... 105 Index
................................................................................................................................... 116 Read( )
................................................................................................................................... 117 ReqCode
................................................................................................................................... 128 ReqType
................................................................................................................................... 129 Target
................................................................................................................................... 1310 Value
................................................................................................................................... 1311 Write( )
Part IV
CCyInterruptEndPoint
14
................................................................................................................................... 141 BeginDataXfer( )
................................................................................................................................... 152 CCyInterruptEndPoint( )
................................................................................................................................... 153 CCyInterruptEndPoint( )
Part V CCyIsocEndPoint
16
................................................................................................................................... 161 BeginDataXfer( )
................................................................................................................................... 182 CCyIsocEndPoint( )
................................................................................................................................... 183 CCyIsocEndPoint( )
................................................................................................................................... 184 CreatePktInfos( )
Part VI
CCyIsoPktInfo
19
Part VII CCyUSBDevice
20
................................................................................................................................... 211 AltIntfc( )
................................................................................................................................... 212 AltIntfcCount( )
................................................................................................................................... 213 bHighSpeed
Cypress CyAPI Programmer's ReferenceI
© 2003 Cypress Semiconductor
................................................................................................................................... 214 BcdDevice
................................................................................................................................... 225 BcdUSB
................................................................................................................................... 226 BulkInEndPt
................................................................................................................................... 227 BulkOutEndPt
................................................................................................................................... 238 CCyUSBDevice( )
................................................................................................................................... 259 ~CCyUSBDevice( )
................................................................................................................................... 2510 Close( )
................................................................................................................................... 2511 Config( )
................................................................................................................................... 2512 ConfigAttrib
................................................................................................................................... 2513 ConfigCount( )
................................................................................................................................... 2614 ConfigValue
................................................................................................................................... 2615 ControlEndPt
................................................................................................................................... 2616 DevClass
................................................................................................................................... 2617 DeviceCount( )
................................................................................................................................... 2718 DeviceHandle( )
................................................................................................................................... 2719 DeviceName
................................................................................................................................... 2720 DevProtocol
................................................................................................................................... 2721 DevSubClass
................................................................................................................................... 2722 DriverGUID( )
................................................................................................................................... 2723 DriverVersion
................................................................................................................................... 2824 EndPointCount( )
................................................................................................................................... 2825 EndPointOf( )
................................................................................................................................... 2826 EndPoints
................................................................................................................................... 2927 FriendlyName
................................................................................................................................... 2928 GetDeviceDescriptor( )
................................................................................................................................... 2929 GetConfigDescriptor( )
................................................................................................................................... 2930 GetIntfcDescriptor( )
................................................................................................................................... 3031 GetUSBConfig( )
................................................................................................................................... 3132 Interface( )
................................................................................................................................... 3133 InterruptInEndPt
................................................................................................................................... 3134 InterruptOutEndPt
................................................................................................................................... 3235 IntfcClass
................................................................................................................................... 3236 IntfcCount( )
................................................................................................................................... 3237 IntfcProtocol
................................................................................................................................... 3238 IntfcSubClass
................................................................................................................................... 3339 IsocInEndPt
................................................................................................................................... 3340 IsocOutEndPt
................................................................................................................................... 3441 IsOpen( )
................................................................................................................................... 3442 Manufacturer
IIContents
II
© 2003 Cypress Semiconductor
................................................................................................................................... 3443 MaxPacketSize
................................................................................................................................... 3444 MaxPower
................................................................................................................................... 3445 NtStatus
................................................................................................................................... 3446 Open( )
................................................................................................................................... 3547 PowerState( )
................................................................................................................................... 3548 Product
................................................................................................................................... 3549 ProductID
................................................................................................................................... 3650 ReConnect( )
................................................................................................................................... 3651 Reset( )
................................................................................................................................... 3652 Resume( )
................................................................................................................................... 3653 SerialNumber
................................................................................................................................... 3654 SetConfig( )
................................................................................................................................... 3655 SetAltIntfc( )
................................................................................................................................... 3756 StrLangID
................................................................................................................................... 3757 Suspend( )
................................................................................................................................... 3758 USBAddress
................................................................................................................................... 3759 USBDIVersion
................................................................................................................................... 3760 UsbdStatus
................................................................................................................................... 3861 UsbdStatusString( )
................................................................................................................................... 3862 VendorID
Part VIII
CCyUSBConfig
38
................................................................................................................................... 401 AltInterfaces
................................................................................................................................... 402 bConfigurationValue
................................................................................................................................... 403 bDescriptorType
................................................................................................................................... 404 bLength
................................................................................................................................... 405 bmAttributes
................................................................................................................................... 406 bNumInterfaces
................................................................................................................................... 417 CCyUSBConfig( )
................................................................................................................................... 418 CCyUSBConfig( )
................................................................................................................................... 419 CCyUSBConfig( )
................................................................................................................................... 4110 ~CCyUSBConfig
................................................................................................................................... 4111 iConfiguration
................................................................................................................................... 4212 Interfaces
................................................................................................................................... 4313 wTotalLength
Part IX CCyUSBEndPoint
43
................................................................................................................................... 431 Abort( )
................................................................................................................................... 432 Address
................................................................................................................................... 443 Attributes
Cypress CyAPI Programmer's ReferenceIII
© 2003 Cypress Semiconductor
................................................................................................................................... 454 BeginDataXfer( )
................................................................................................................................... 465 bIn
................................................................................................................................... 466 CCyUSBEndPoint( )
................................................................................................................................... 467 CCyUSBEndPoint( )
................................................................................................................................... 478 CCyUSBEndPoint( )
................................................................................................................................... 479 DscLen
................................................................................................................................... 4710 DscType
................................................................................................................................... 4811 GetXferSize( )
................................................................................................................................... 4812 FinishDataXfer( )
................................................................................................................................... 4913 hDevice
................................................................................................................................... 4914 Interval
................................................................................................................................... 4915 MaxPktSize
................................................................................................................................... 5016 NtStatus
................................................................................................................................... 5017 Reset( )
................................................................................................................................... 5018 SetXferSize( )
................................................................................................................................... 5019 TimeOut
................................................................................................................................... 5120 UsbdStatus
................................................................................................................................... 5121 WaitForXfer( )
................................................................................................................................... 5222 XferData( )
Part X CCyUSBInterface
53
................................................................................................................................... 541 bAlternateSetting
................................................................................................................................... 542 bAltSettings
................................................................................................................................... 543 bDescriptorType
................................................................................................................................... 554 CCyUSBInterface( )
................................................................................................................................... 555 CCyUSBInterface( )
................................................................................................................................... 556 bInterfaceClass
................................................................................................................................... 557 bInterfaceNumber
................................................................................................................................... 568 bInterfaceProtocol
................................................................................................................................... 569 bInterfaceSubClass
................................................................................................................................... 5610 bLength
................................................................................................................................... 5611 bNumEndpoints
................................................................................................................................... 5612 EndPoints
................................................................................................................................... 5713 iInterface
IVContents
IV
© 2003 Cypress Semiconductor
- 1
- 2
前往页