没有合适的资源?快使用搜索试试~ 我知道了~
首页CyUSB.NET.pdf
CyUSB.NET.pdf
需积分: 22 197 浏览量
更新于2023-05-29
评论
收藏 1.21MB PDF 举报
在学习cyusb3.0相关知识后,打算通过C#进行上位机开发时,可以学习参考的官方文档;Cypress CyUSB .NET Programmer's Reference
资源详情
资源评论
资源推荐

© 2012 Cypress Semiconductor
Cypress CyUSB .NET
Programmer's Reference

Cypress CyUSB .NET Programmer's Reference2
© 2012 Cypress Semiconductor
Table of Contents
Part I Overview
7
Part II CyUSB Library Class Hierarchy
9
Part III New Features
10
................................................................................................................................... 111 USB3.0 Support Overview
Part IV CyUSB
12
................................................................................................................................... 131 CyBOS_CONTAINER_ID
.......................................................................................................................................................... 14Tree
.......................................................................................................................................................... 15Length
.......................................................................................................................................................... 16DescriptorType
.......................................................................................................................................................... 17DevCapabilityType
.......................................................................................................................................................... 18Reserved
.......................................................................................................................................................... 19ContainerID
.......................................................................................................................................................... 20ToString()
................................................................................................................................... 212 CyBOS_SS_DEVICE_CAPABILITY
.......................................................................................................................................................... 22Tree
.......................................................................................................................................................... 23Length
.......................................................................................................................................................... 24DescriptorType
.......................................................................................................................................................... 25DevCapabilityType
.......................................................................................................................................................... 26bmAttribute
.......................................................................................................................................................... 27SpeedsSupported
.......................................................................................................................................................... 28FunctionalitySupport
.......................................................................................................................................................... 29U1DevExitLat
.......................................................................................................................................................... 30U2DevExitLat
.......................................................................................................................................................... 31ToString()
................................................................................................................................... 323 CyBOS_USB20_DEVICE_EXT
.......................................................................................................................................................... 33Tree
.......................................................................................................................................................... 34Length
.......................................................................................................................................................... 35DescriptorType
.......................................................................................................................................................... 36DevCapabilityType
.......................................................................................................................................................... 37bmAttribute
.......................................................................................................................................................... 38ToString()
................................................................................................................................... 394 CyUSBBOS
.......................................................................................................................................................... 41USB20_DeviceExt
.......................................................................................................................................................... 42SS_DeviceCap
.......................................................................................................................................................... 43Container_ID
.......................................................................................................................................................... 44Tree
.......................................................................................................................................................... 45Length
.......................................................................................................................................................... 46DescriptorType
.......................................................................................................................................................... 47TotalLength
.......................................................................................................................................................... 48NumDeviceCaps
.......................................................................................................................................................... 49ToString()

3Contents
3
© 2012 Cypress Semiconductor
................................................................................................................................... 505 CyBulkEndPoint
................................................................................................................................... 516 CyConst
.......................................................................................................................................................... 52DEVICES_CYUSB
.......................................................................................................................................................... 53DEVICES_HID
.......................................................................................................................................................... 54DEVICES_MSC
.......................................................................................................................................................... 55DIR_FROM_DEVICE
.......................................................................................................................................................... 56DIR_TO_DEVICE
.......................................................................................................................................................... 57REQ_CLASS
.......................................................................................................................................................... 58REQ_STD
.......................................................................................................................................................... 59REQ_VENDOR
.......................................................................................................................................................... 60SINGLE_XFER_LEN
.......................................................................................................................................................... 61TGT_DEVICE
.......................................................................................................................................................... 62TGT_ENDPT
.......................................................................................................................................................... 63TGT_INTFC
.......................................................................................................................................................... 64TGT_OTHER
.......................................................................................................................................................... 65INFINITE
.......................................................................................................................................................... 66FX3_FWDWNLOAD_MEDIA_TYPE
.......................................................................................................................................................... 67FX3_FWDWNLOAD_ERROR_CODE
................................................................................................................................... 687 CyControlEndPoint
.......................................................................................................................................................... 69Read( )
.......................................................................................................................................................... 70Write( )
.......................................................................................................................................................... 71XferData( )
.......................................................................................................................................................... 72Direction
.......................................................................................................................................................... 73Index
.......................................................................................................................................................... 74ReqCode
.......................................................................................................................................................... 75ReqType
.......................................................................................................................................................... 76Target
.......................................................................................................................................................... 77Value
................................................................................................................................... 788 CyFX2Device
.......................................................................................................................................................... 79LoadEEPROM
.......................................................................................................................................................... 81LoadRAM
.......................................................................................................................................................... 83Reset
................................................................................................................................... 849 CyFX3Device
.......................................................................................................................................................... 85Dow nloadFw ( )
.......................................................................................................................................................... 86IsBootLoaderRunning( )
.......................................................................................................................................................... 87GetFw ErrorString( )
................................................................................................................................... 8810 CyInterruptEndPoint
................................................................................................................................... 8911 CyIsocEndPoint
.......................................................................................................................................................... 90BeginDataXfer( )
.......................................................................................................................................................... 92FinishDataXfer( )
.......................................................................................................................................................... 94GetPktBlockSize( )
.......................................................................................................................................................... 96GetPktCount( )
.......................................................................................................................................................... 97XferData( )
.......................................................................................................................................................... 98XferData( )
................................................................................................................................... 9912 CyUSBConfig
.......................................................................................................................................................... 103ToString( )
.......................................................................................................................................................... 107AltInterfaces
.......................................................................................................................................................... 108bConfigurationValue
.......................................................................................................................................................... 109bDescriptorType
.......................................................................................................................................................... 110bLength
.......................................................................................................................................................... 111bmAttributes

Cypress CyUSB .NET Programmer's Reference4
© 2012 Cypress Semiconductor
.......................................................................................................................................................... 112bNumInterfaces
.......................................................................................................................................................... 113iConfiguration
.......................................................................................................................................................... 114MaxPower
.......................................................................................................................................................... 115Tree
.......................................................................................................................................................... 116wTotalLength
.......................................................................................................................................................... 117Interfaces
................................................................................................................................... 12113 CyUSBDevice
.......................................................................................................................................................... 122EndPointOf( )
.......................................................................................................................................................... 123GetConfigDescriptor( )
.......................................................................................................................................................... 124GetDeviceDescriptor( )
.......................................................................................................................................................... 125GetIntfcDescriptor( )
.......................................................................................................................................................... 126GetBosDescriptor()
.......................................................................................................................................................... 127GetBosUSB20DeviceExtensionDescriptor()
.......................................................................................................................................................... 128GetBosSSCapabilityDescriptor()
.......................................................................................................................................................... 129GetBosContainerIDDescriptor()
.......................................................................................................................................................... 130ReConnect( )
.......................................................................................................................................................... 131Reset( )
.......................................................................................................................................................... 132ToString( )
.......................................................................................................................................................... 136UsbdStatusString( )
.......................................................................................................................................................... 137AltIntfc
.......................................................................................................................................................... 138AltIntfcCount
.......................................................................................................................................................... 142bHighSpeed
.......................................................................................................................................................... 143bSuperSpeed
.......................................................................................................................................................... 144BcdDevice
.......................................................................................................................................................... 145Config
.......................................................................................................................................................... 146ConfigAttrib
.......................................................................................................................................................... 147ConfigCount
.......................................................................................................................................................... 148ConfigValue
.......................................................................................................................................................... 149DeviceHandle
.......................................................................................................................................................... 150DriverVersion
.......................................................................................................................................................... 151EndPointCount
.......................................................................................................................................................... 154IntfcClass
.......................................................................................................................................................... 155IntfcProtocol
.......................................................................................................................................................... 156IntfcSubClass
.......................................................................................................................................................... 157MaxPacketSize
.......................................................................................................................................................... 158MaxPow er
.......................................................................................................................................................... 159StrLangID
.......................................................................................................................................................... 160Tree
.......................................................................................................................................................... 161USBDIVersion
.......................................................................................................................................................... 162BulkInEndPt
.......................................................................................................................................................... 163BulkOutEndPt
.......................................................................................................................................................... 164ControlEndPt
.......................................................................................................................................................... 165EndPoints
.......................................................................................................................................................... 168InterruptInEndPt
.......................................................................................................................................................... 169InterruptOutEndPt
.......................................................................................................................................................... 170IsocInEndPt
.......................................................................................................................................................... 171IsocOutEndPt
.......................................................................................................................................................... 172USBCfgs
................................................................................................................................... 17314 CyUSBEndPoint
.......................................................................................................................................................... 174Abort( )
.......................................................................................................................................................... 175BeginDataXfer( )
.......................................................................................................................................................... 178FinishDataXfer( )
.......................................................................................................................................................... 181Reset( )

5Contents
5
© 2012 Cypress Semiconductor
.......................................................................................................................................................... 182ToString( )
.......................................................................................................................................................... 185WaitForXfer( )
.......................................................................................................................................................... 188XferData( )
.......................................................................................................................................................... 189Address
.......................................................................................................................................................... 190Attributes
.......................................................................................................................................................... 191bIn
.......................................................................................................................................................... 192BytesWritten
.......................................................................................................................................................... 193DscLen
.......................................................................................................................................................... 194DscType
.......................................................................................................................................................... 195hDevice
.......................................................................................................................................................... 196Interval
.......................................................................................................................................................... 197MaxPktSize
.......................................................................................................................................................... 198NtStatus
.......................................................................................................................................................... 199TimeOut
.......................................................................................................................................................... 200Tree
.......................................................................................................................................................... 201UsbdStatus
.......................................................................................................................................................... 202XferMode
.......................................................................................................................................................... 203XferSize
.......................................................................................................................................................... 204SSDscLen
.......................................................................................................................................................... 205SSDscType
.......................................................................................................................................................... 206SSMaxBurst
.......................................................................................................................................................... 207SSBmAttribute
.......................................................................................................................................................... 208SSBytePerInterval
................................................................................................................................... 20915 CyUSBInterface
.......................................................................................................................................................... 213ToString
.......................................................................................................................................................... 217bAlternateSetting
.......................................................................................................................................................... 218bAltSettings
.......................................................................................................................................................... 219bDescriptorType
.......................................................................................................................................................... 220bInterfaceClass
.......................................................................................................................................................... 221bInterfaceNumber
.......................................................................................................................................................... 222bInterfaceProtocol
.......................................................................................................................................................... 223bInterfaceSubClass
.......................................................................................................................................................... 224bLength
.......................................................................................................................................................... 225bNumEndpoints
.......................................................................................................................................................... 226iInterface
.......................................................................................................................................................... 227Tree
.......................................................................................................................................................... 228w TotalLength
.......................................................................................................................................................... 229EndPoints
................................................................................................................................... 23216 CyUSBStorDevice
.......................................................................................................................................................... 233SendScsiCmd( )
.......................................................................................................................................................... 234ToString( )
.......................................................................................................................................................... 235BlockSize
.......................................................................................................................................................... 236TimeOut
................................................................................................................................... 23717 ISO_PKT_INFO
................................................................................................................................... 23818 OVERLAPPED
................................................................................................................................... 23919 OverlapSignalAllocSize
................................................................................................................................... 24020 PInvoke
.......................................................................................................................................................... 241CreateEvent( )
.......................................................................................................................................................... 242WaitForSingleObject( )
................................................................................................................................... 24321 USB_CONFIGURATION_DESCRIPTOR
................................................................................................................................... 24422 USB_DEVICE_DESCRIPTOR
剩余293页未读,继续阅读








安全验证
文档复制为VIP权益,开通VIP直接复制

评论0