Configuration
9-3 CONFIGURATION
9-3-1 GENERAL CONFIGURATION
Some constants are available to customize the class. These constants are located in the USB
9
device configuration file, usbd_cfg.h . Table 9-4 shows their description.
Constant
USBD_HID_CFG_MAX_NBR_DEV
USBD_HID_CFG_MAX_NBR_CFG
USBD_HID_CFG_MAX_NBR_REPORT_ID
USBD_HID_CFG_MAX_NBR_REPORT_PUSHPOP
Description
Configures the maximum number of class instances. Unless you plan
on having multiple configurations or interfaces using different class
instances, this can be set to 1.
Configures the maximum number of configurations in which HID class
is used. Keep in mind that if you use a high-speed device, two
configurations will be built, one for full-speed and another for
high-speed.
Configures the maximum number of report IDs allowed in a report. The
value should be set properly to accommodate the number of report ID
to be used in the report. The minimum value is 1.
Configures the maximum number of Push and Pop items used in a
report. If the constant is set to 0, no Push and Pop items are present in
the report.
Table 9-4 HID Class Configuration Constants
The HID class uses an internal class to manage periodic input reports. The task priority and
stack size shown in Table 9-5 are defined in the application configuration file, app_cfg.h .
Refer to section 9-6 “Periodic Input Reports Task” on page 161 for more details about the
HID internal task.
Constant
USBD_HID_OS_CFG_TMR_TASK_PRIO
USBD_HID_OS_CFG_TMR_TASK_STK_SIZE
Description
Configures the priority of the HID periodic input reports task.
Configures the stack size of the HID periodic input reports task.
Table 9-5 HID Internal Task’s Configuration Constants
143
相关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