{"id":21317212,"url":"https://github.com/oldrev/device-tree","last_synced_at":"2025-03-15T21:44:05.265Z","repository":{"id":172598774,"uuid":"649490928","full_name":"oldrev/device-tree","owner":"oldrev","description":"A Linux Device Tree Source (DTS) parser for .NET","archived":false,"fork":false,"pushed_at":"2023-06-23T16:58:07.000Z","size":23,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-22T10:47:19.931Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/oldrev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-06-05T01:45:36.000Z","updated_at":"2024-09-28T03:57:05.000Z","dependencies_parsed_at":null,"dependency_job_id":"10498b60-fae3-4cab-815f-d6dc6cfa175f","html_url":"https://github.com/oldrev/device-tree","commit_stats":null,"previous_names":["oldrev/device-tree"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oldrev%2Fdevice-tree","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oldrev%2Fdevice-tree/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oldrev%2Fdevice-tree/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oldrev%2Fdevice-tree/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oldrev","download_url":"https://codeload.github.com/oldrev/device-tree/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243796647,"owners_count":20349252,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-21T18:42:27.809Z","updated_at":"2025-03-15T21:44:05.249Z","avatar_url":"https://github.com/oldrev.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"﻿# Sandwych.DeviceTree\n\n[![Build Status](https://travis-ci.org/{your_username}/{your_repo}.svg?branch=master)](https://travis-ci.org/{your_username}/{your_repo})\n\nSandwych.DeviceTree is a .NET library for parsing Linux Device Tree Source (DTS) files. It provides a convenient and efficient way to extract information from DTS files and work with the device tree data in a structured manner.\n\n## Status\n\nCurrent status: **WORKING-IN-PROGRESS**\n\n⚠️ **This project is currently a work in progress and is not yet production-ready.** ⚠️\n\nThe library is under active development and should be considered as an early-stage project.\nIt may have missing features, known issues, or limited compatibility with certain DTS file formats.\nUse it at your own risk and be prepared for frequent updates and changes.\n\n\n## Features\n\n- Parse DTS files and convert them into an easy-to-use object model.\n- Traverse and query the device tree data using a familiar and intuitive API.\n- Extract information about devices, nodes, properties, and their values.\n- Handle includes, references, and overlays for complex device tree structures.\n- Support for both 32-bit and 64-bit device tree sources.\n\n## Installation\n\nYou can install the Sandwych.DeviceTree library using NuGet. Simply run the following command in the Package Manager Console:\n\n```shell\nInstall-Package Sandwych.DeviceTree\n```\n\n\n## Usage\n\nTo parse a DTS file and extract information from it, follow these steps:\n\nCreate an instance of DeviceTreeDocument:\n\n```csharp\nvar document = new DeviceTreeDocument();\n```\n\nLoad the DTS file:\n\n```csharp\ndocument.Load(\"path/to/your/dts/file.dts\");\n```\n\nAccess the device tree nodes and properties:\n\n```csharp\nvar rootNode = document.RootNode;\nforeach (var childNode in rootNode.ChildNodes)\n{\n    // Process child nodes\n}\n\nvar property = rootNode.Properties[\"property_name\"];\nif (property != null)\n{\n    // Access the property value\n}\n```\n\nFor more detailed usage examples and API documentation, please refer to the Wiki section.\n\n\n## Contributing\n\nContributions to Sandwych.DeviceTree are welcome! If you find a bug, have a feature request, or want to contribute code, please feel free to open an issue or submit a pull request.\n\nPlease make sure to follow our Contribution Guidelines and adhere to our Code of Conduct.\n\n## License\nThis project is licensed under the MIT License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foldrev%2Fdevice-tree","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foldrev%2Fdevice-tree","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foldrev%2Fdevice-tree/lists"}