Hcon_Device_Build_From_Demand()
Abstract
Build a hardware configuration from a set of demands.
Syntax
Hcon_Device_Build_From_Demand (demand, device_library)
| Argument | Type | Description |
|---|---|---|
demand |
HconT_Demand * |
what lowest level devices must be provided in the hardware configuration |
device_library |
HconT_Library * |
device library from which device can be chosen |
Return Type
PrgT_List *
The list of top level devices in the hardware configuration.
Header
hcon.h
Details
Returns a list of top level devices (a PRG list of HconT_Devices *), which together with their components (lower level devices contained by them), will fulfill the requirements as defined in the given demand. All the devices are chosen from the given device library. If the demand cannot be fulfilled, this function returns NULL. See also Hcon_Demand_Create() and Hcon_Demand_Devices_Needed_Add() on how to set up a demand.