# DriverConfig - [Overview](#section343659875165623) - [Summary](#section758624607165623) - [Files](#files) - [Data Structures](#nested-classes) - [Macros](#define-members) - [Enumerations](#enum-members) - [Functions](#func-members) - [Details](#section1336663313165623) - [Macro Definition](#section1194593549165623) - [DEV\_RES\_NODE\_FOR\_EACH\_ATTR](#gaea582d01be42ff534e33b0484094af9b) - [DEV\_RES\_NODE\_FOR\_EACH\_CHILD\_NODE](#ga1b848db724617a3cf0e5b3f2453b8846) - [Enumeration Type](#section1597354189165623) - [DeviceResourceType](#ga09c9585a5d95c79fd5ee4bd8863ba66a) - [Function](#section240152397165623) - [DeviceResourceGetIfaceInstance\(\)](#gabfbfb1ffec32f04e8f3660eadb7677a0) ## **Overview** **Description:** Defines an API for HDF driver developers to read driver configuration information. During version compilation of the device resource source file defined by developers, the compilation tool \(for example, the compilation tool of the HCS file is hc-gen\) generates bytecodes. When the HDF starts, it transfers the bytecode memory to the **DriverConfig** module. The **DriverConfig** module converts the bytecodes into a configuration tree and provides an API for developers to query the tree. **Since:** 1.0 **Version:** 1.0 ## **Summary** ## Files
Defines the attributes of a tree node in the configuration tree. |
|
Provides functions for obtaining information about the device resource configuration tree. |
DEV_RES_NODE_FOR_EACH_ATTR(node, attr) for ((attr) = (node)->attrData; (attr) != NULL; (attr) = (attr)->next) |
Traverses the attributes of the current configuration tree node. |
DEV_RES_NODE_FOR_EACH_CHILD_NODE(node, childNode) for ((childNode) = (node)->child; (childNode) != NULL; (childNode) = (childNode)->sibling) |
Traverses the child nodes of the current configuration tree node. |
DeviceResourceType { HDF_CONFIG_SOURCE = 0, INVALID } |
struct DeviceResourceIface * Obtains the device resource interface handle of the corresponding configuration tree type. |
| node | Indicates the configuration tree node to traverse. |
| attr | Indicates the traversed attributes. |
| node | Indicates the configuration tree node to traverse. |
| childNode | Indicates the traversed child nodes. |
| HDF_CONFIG_SOURCE | |
| INVALID |
| type | Indicates the type of the device resource interface handle to obtain. |