Chapter 12
L12-3(1)
The class instance number serves internally to the Vendor class to route the
transfer to the proper bulk OUT or IN endpoint.
L12-3(2)
Application must ensure that the buffer provided to the function is large
enough to accommodate all the data. Otherwise, synchronization issues might
happen.
L12-3(3)
The application provides a callback passed as a parameter. Upon completion of
12
the transfer, the device stack calls this callback so that the application can
finalize the transfer by analyzing the transfer result. For instance, upon read
operation completion, the application may do a certain processing with the
received data. Upon write completion, the application may indicate if the write
was successful and how many bytes were sent.
L12-3(4)
An argument associated to the callback can be also passed. Then in the
callback context, some private information can be retrieved.
L12-3(5)
Application provides the initialized transmit buffer.
L12-3(6)
If this flag is set to DEF_TRUE and the transfer length is a multiple of the
endpoint maximum packet size, the device stack will send a zero-length packet
to the host to signal the end of transfer.
The use of interrupt endpoint communication functions, USBD_Vendor_IntrRdAsync() and
USBD_Vendor_IntrWrAsync() , is similar to bulk endpoint communication functions
presented in Listing 12-3.
12-3 USBDev_API
Windows application communicates with a vendor device through USBDev_API . The latter
is a wrapper developed by Micriμm allowing the application to access the WinUSB
functionalities to manage a USB device. Windows USB (WinUSB) is a generic driver for USB
devices. The WinUSB architecture consists of a kernel-mode driver ( Winusb.sys ) and a
user-mode dynamic link library ( Winusb.dll ) that exposes WinUSB functions. USBDev_API
eases the use of WinUSB by providing a comprehensive API (refer to section G-2
“USBDev_API Functions” on page 497 for the complete list). Figure 12-2 shows the
USBDev_API library and WinUSB.
214
相关PDF资料
AD637-EVALZ BOARD EVALUATION FOR AD637
AD736-EVALZ BOARD EVALUATION FOR AD736
AD737-EVALZ BOARD EVALUATION FOR AD737
AD8007AKS-EBZ BOARD EVAL FOR AD8007AKS
AD8018ARU-EVAL BOARD EVAL FOR AD8018
AD8034ART-EBZ BOARD EVAL FOR AD8034ART
AD8040AR-EBZ BOARD EVAL FOR AD8040AR
AD8045ARD-EBZ BOARD EVAL FOR AD8045ARD
相关代理商/技术参数
AD-UCUSB-HCCDC-SPL 制造商:Analog Devices 功能描述:?C/USB HC CDC FOR CCES SINGLE PROD LIC - Virtual or Non-Physical Inventory (Software & Literature)
AD-UCUSB-HCMSC-SPL 制造商:Analog Devices 功能描述:?C/USB HC MSC FOR CCES SINGLE PROD LIC - Virtual or Non-Physical Inventory (Software & Literature)
AD-UCUSBH-MCDC-SPL 制造商:Analog Devices 功能描述:MAINTENANCE ?C/USBH CDC SINGLE PRD LIC - Virtual or Non-Physical Inventory (Software & Literature)
AD-UCUSBH-MHID-SPL 制造商:Analog Devices 功能描述:MAINTENANCE ?C/USBH HID SINGLE PRD LIC - Virtual or Non-Physical Inventory (Software & Literature)
AD-UCUSBH-MMSC-SPL 制造商:Analog Devices 功能描述:MAINTENANCE ?C/USBH MSC SINGLE PRD LIC - Virtual or Non-Physical Inventory (Software & Literature)
AD-UCUSBH-SPRD 功能描述:PRD LIC UCUSB DEV CORE CCES SGL 制造商:analog devices inc. 系列:CrossCore? Embedded Studio 零件状态:在售 类型:- 应用:- 版本:- 许可长度:- 许可 - 用户明细:- 操作系统:- 配套使用产品/相关产品:Blackfin? 处理器 媒体分发类型:- 标准包装:1
ADUM1100 制造商:AD 制造商全称:Analog Devices 功能描述:iCoupler Digital Isolator
ADUM1100AR 功能描述:IC DIGITAL ISOLATOR 1CH 8-SOIC RoHS:否 类别:隔离器 >> 数字隔离器 系列:iCoupler® 产品培训模块:IsoLoop® Isolator 标准包装:50 系列:IsoLoop® 输入 - 1 侧/2 侧:5/0 通道数:5 电源电压:3 V ~ 5.5 V 电压 - 隔离:2500Vrms 数据速率:110Mbps 传输延迟:12ns 输出类型:CMOS 封装/外壳:16-SOIC(0.154",3.90mm 宽) 供应商设备封装:16-SOIC N 包装:管件 工作温度:-40°C ~ 85°C 其它名称:390-1053-5