Hcon_Devices_Build_From_Demand_With_Existing_Hardware()
摘要
提供增量式硬件配置。
语法
Hcon_Devices_Build_From_Demand_With_Existing_Hardware (device_library, demand, existing_top_level_devices)
| 参数 | 类型 | 说明 |
|---|---|---|
device_library |
HconT_Library * |
可从中挑选设备的设备库 |
demand |
HconT_Demand * |
硬件配置中必须提供的最低层级设备 |
existing_top_level_devices |
PrgT_List * |
现有硬件配置(顶层设备列表) |
返回类型
PrgT_List *
顶层设备列表,这些设备连同其组件将满足需求中定义的要求。若需求无法满足,本函数返回 NIL。
头文件
hcon.h
详情
在给定现有硬件的前提下,本函数将找出需要添加到该现有硬件中的额外设备,以满足需求。所有设备均从给定的设备库中选取。传入的 existing_top_level_device 列表会先被复制,不会以任何方式被修改。
另见 Hcon_Demand_Create() 和 Hcon_Demand_Devices_Needed_Add(),了解如何设置需求。