Chapter 7
L7-7(8)
Ask the class for the total size of endpoint class-specific descriptors.
7
L7-7(9)
Ask the class to process a standard request whose recipient is an interface.
L7-7(10)
Ask the class to process a class-specific request.
L7-7(11)
Ask the class to process a vendor-specific request.
A class is not required to provide all the callbacks. If a class for instance does not define
alternate interface settings and does not process any vendor requests, the corresponding
function pointer will be a null-pointer. Listing 7-8 presents the callback structure for that case.
static USBD_CLASS_DRV USBD_XXXX_Drv = {
USBD_XXXX_Conn,
USBD_XXXX_Disconn,
0,
USBD_XXXX_UpdateEPState,
USBD_XXXX_IFDesc,
USBD_XXXX_IFDescGetSize,
USBD_XXXX_EPDesc,
USBD_XXXX_EPDescGetSize,
USBD_XXXX_IFReq,
USBD_XXXX_ClassReq,
0
};
Listing 7-8 Class Callback Structure with Null Function Pointers
If a class is composed of one interface then one class callback structure is required. If a
class is composed of several interfaces then the class may define several class callback
structures. In that case, a callback structure may be linked to one or several interfaces. For
instance, the Communication Device Class (CDC) is composed of one Communication
Interface and one or more Data Interfaces. The Communication interface will be linked to a
callback structure. The Data interfaces may be linked to another callback structure common
to all Data interfaces.
The class callbacks are called by the core task when receiving a request from the host sent
over control endpoints (refer to section 4-2 “Task Model” on page 58 for more details on the
core task). Table 7-2 indicates which callbacks are mandatory and optional and upon
reception of which request the core task calls a specific callback.
112
相关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