# DeviceResourceIface - [Overview](#section793276185165631) - [Summary](#section1215722636165631) - [Data Fields](#pub-attribs) - [Details](#section156908930165631) - [Field](#section1644935392165631) - [GetBool](#a0a3446a50f3644a29cf812af0c915f8a) - [GetChildNode](#a70d5844ef0f0c35b9eb3bbba177bccc0) - [GetElemNum](#a0fafd4d32592ce2fbe951807995c5ab3) - [GetNodeByMatchAttr](#a8d7c819ee3d00ded8eef01b0594f3571) - [GetNodeByRefAttr](#a8066548056633048c008e7a29aac8c8f) - [GetRootNode](#adc489c2c907ebf9a098c91ba110a2c37) - [GetString](#a1989a47b8d61401e57ee523e01bc25ee) - [GetStringArrayElem](#a787eb71963c16c96bca913729078dd9d) - [GetUint16](#a1d3191febf1c9a0731a1614295a1529b) - [GetUint16Array](#a54977ca0fd60515bad5e33adf830fc64) - [GetUint16ArrayElem](#a27abcf7cdca0b25b6e620b75590e0a2d) - [GetUint32](#a87cf305ff9cabdbeb5011e6c04106b9e) - [GetUint32Array](#a2ed5d24a45946e270b4416c400839966) - [GetUint32ArrayElem](#a942b67fcd814a37d92e33f3de33c2ff5) - [GetUint64](#a3c364db9381da16449bb96d6be86aed8) - [GetUint64Array](#ab378caa47c5b01c31ca602d4eaa3046f) - [GetUint64ArrayElem](#aac32428eb3762de48514bd14348fd230) - [GetUint8](#a5610a62186ad18320dadcad7077fb3bb) - [GetUint8Array](#a067d741f2c3938ca08be2282e741b0a4) - [GetUint8ArrayElem](#a0973933ace2447ec38a82e7995e2c5af) ## **Overview** **Related Modules:** [DriverConfig](DriverConfig.md) **Description:** Provides functions for obtaining information about the device resource configuration tree. This structure provides functions for obtaining information about the device resource configuration tree, including the root node, the **unit** attribute data, and the **String** attribute data. **Since:** 1.0 **Version:** 1.0 ## **Summary** ## Data Fields
GetRootNode )(void) |
const struct DeviceResourceNode *(* |
GetBool )(const struct DeviceResourceNode *node, const char *attrName) |
Obtains the value of a BOOL attribute of a configuration tree node. |
GetUint8 )(const struct DeviceResourceNode *node, const char *attrName, uint8_t *value, uint8_t def) |
Obtains the value of a Uint8 attribute of a configuration tree node. |
GetUint8ArrayElem )(const struct DeviceResourceNode *node, const char *attrName, uint32_t index, uint8_t *value, uint8_t def) |
Obtains the value of a Unit8 array attribute numbered index of a configuration tree node. |
GetUint8Array )(const struct DeviceResourceNode *node, const char *attrName, uint8_t *value, uint32_t len, uint8_t def) |
Obtains the values of a Uint8 array attribute of a configuration tree node. |
GetUint16 )(const struct DeviceResourceNode *node, const char *attrName, uint16_t *value, uint16_t def) |
Obtains the value of a Uint16 attribute of a configuration tree node. |
GetUint16ArrayElem )(const struct DeviceResourceNode *node, const char *attrName, uint32_t index, uint16_t *value, uint16_t def) |
Obtains the value of a Uint16 array attribute numbered index of a configuration tree node. |
GetUint16Array )(const struct DeviceResourceNode *node, const char *attrName, uint16_t *value, uint32_t len, uint16_t def) |
Obtains the values of a Uint16 array attribute of a configuration tree node. |
GetUint32 )(const struct DeviceResourceNode *node, const char *attrName, uint32_t *value, uint32_t def) |
Obtains the value of a Uint32 attribute of a configuration tree node. |
GetUint32ArrayElem )(const struct DeviceResourceNode *node, const char *attrName, uint32_t index, uint32_t *value, uint32_t def) |
Obtains the value of a Uint32 array attribute numbered index of a configuration tree node. |
GetUint32Array )(const struct DeviceResourceNode *node, const char *attrName, uint32_t *value, uint32_t len, uint32_t def) |
Obtains the values of a Uint32 array attribute of a configuration tree node. |
GetUint64 )(const struct DeviceResourceNode *node, const char *attrName, uint64_t *value, uint64_t def) |
Obtains the value of a Uint64 attribute of a configuration tree node. |
GetUint64ArrayElem )(const struct DeviceResourceNode *node, const char *attrName, uint32_t index, uint64_t *value, uint64_t def) |
Obtains the value of a Uint64 array attribute numbered index of a configuration tree node. |
GetUint64Array )(const struct DeviceResourceNode *node, const char *attrName, uint64_t *value, uint32_t len, uint64_t def) |
Obtains the values of a Uint64 array attribute of a configuration tree node. |
GetString )(const struct DeviceResourceNode *node, const char *attrName, const char **value, const char *def) |
Obtains the value of a String attribute of a configuration tree node. |
GetStringArrayElem )(const struct DeviceResourceNode *node, const char *attrName, uint32_t index, const char **value, const char *def) |
Obtains the value of a String array attribute numbered index of a configuration tree node. |
GetElemNum )(const struct DeviceResourceNode *node, const char *attrName) |
Obtains the number of values for an array attribute of a configuration tree node. |
GetNodeByMatchAttr )(const struct DeviceResourceNode *node, const char *attrValue) |
const struct DeviceResourceNode *(* Obtains a specified child node of the current tree node based on the value of a specific reserved attribute (for example, the reserved attribute of the HCS is match_attr). |
GetChildNode )(const struct DeviceResourceNode *node, const char *nodeName) |
const struct DeviceResourceNode *(* Obtains the child node with a specified node name from a parent node. |
GetNodeByRefAttr )(const struct DeviceResourceNode *node, const char *attrName) |
const struct DeviceResourceNode *(* Obtains the node that is specified by a node-type attribute of a configuration tree node. |
| node | Indicates the pointer to the configuration tree node. |
| attrName | Indicates the pointer to the name of the attribute. |
| node | Indicates the pointer to the parent node. |
| nodeName | Indicates the pointer to the name of the child node to obtain. |
| node | Indicates the pointer to the configuration tree node. |
| attrName | Indicates the pointer to the name of the array attribute. |
| node | Indicates the pointer to the node for whom a child node is to be obtained. The node can be the child node's parent node or grandparent node. |
| attrValue | Indicates the pointer to the value of the reserved attribute configured for the child node. |
| node | Indicates the pointer to the tree node whose attribute is to obtain. |
| attrName | Indicates the pointer to the name of attribute whose value is a node path. |