{"id":15698552,"url":"https://github.com/drom/node-iio","last_synced_at":"2025-05-09T01:30:01.333Z","repository":{"id":145177339,"uuid":"134921366","full_name":"drom/node-iio","owner":"drom","description":"libiio bindings for Node.js","archived":false,"fork":false,"pushed_at":"2019-08-03T14:04:10.000Z","size":61,"stargazers_count":6,"open_issues_count":3,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-31T20:38:13.917Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/drom.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2018-05-26T02:06:06.000Z","updated_at":"2021-11-09T18:28:03.000Z","dependencies_parsed_at":"2023-04-18T17:31:21.841Z","dependency_job_id":null,"html_url":"https://github.com/drom/node-iio","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drom%2Fnode-iio","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drom%2Fnode-iio/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drom%2Fnode-iio/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drom%2Fnode-iio/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/drom","download_url":"https://codeload.github.com/drom/node-iio/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253174020,"owners_count":21865786,"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-10-03T19:29:50.144Z","updated_at":"2025-05-09T01:30:01.312Z","avatar_url":"https://github.com/drom.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.org/drom/node-iio.svg?branch=master)](https://travis-ci.org/drom/node-iio)\n[![npm version](https://badge.fury.io/js/libiio.svg)](https://badge.fury.io/js/libiio)\n\nLinux Industrial Input/Output ([IIO](https://wiki.analog.com/software/linux/docs/iio/iio)) Subsystem library ([libiio](https://wiki.analog.com/resources/tools-software/linux-software/libiio)) bindings for Node.js\n\n### Dependencies\n\nThis module depends on [libiio package](https://github.com/analogdevicesinc/libiio) being installed on your system.\n\n### Install\n\n`npm i libiio`\n\n### Usage\n\n```js\nconst iio = require('libiio');\n\nfor(let i = 0; i \u003c iio.get_backends_count(); i++) {\n    console.log(iio.get_backend(i));\n}\n```\n\n### API\n\nMost of API calls are directly mapped to [libiio API](http://analogdevicesinc.github.io/libiio/) without `iio_` prefix.\n\n| name                               | description                                                    |\n|:-----------------------------------|:---------------------------------------------------------------|\n| library_get_version                | Get the version of the libiio library                          |\n| get_backends_count                 | Get the number of available backends                           |\n| get_backend                        | Retrieve the name of a given backend                           |\n| create_scan_context                | Create a scan context                                          |\n| scan_context_get_info_list         | Enumerate available contexts                                   |\n| create_context_from_uri            | Create a context from a URI description                        |\n| context_info_get_uri               | Get a uri of a discovered context **+ index**                  |\n| context_info_get_description       | Get a description of a discovered context **+ index**          |\n| context_get_devices_count          | Enumerate the devices found in the given context               |\n| context_get_device                 | Get the device present at the given index                      |\n|                                    |                                                                |\n| device_get_id                      | Retrieve the device ID (e.g. iio:device0)                      |\n| device_get_name                    | Retrieve the device name (e.g. xadc)                           |\n| device_get_attrs_count             | Enumerate the device-specific attributes of the given device   |\n| device_get_attr                    | Get the device-specific attribute present at the given index   |\n| device_attr_read                   | Read the content of the given device-specific attribute        |\n| device_get_channels_count          | Enumerate the channels of the given device                     |\n| device_get_channel                 | Get the channel present at the given index                     |\n|                                    |                                                                |\n| channel_is_output                  | Return True if the given channel is an output channel          |\n| channel_get_id                     | Retrieve the channel ID (e.g. voltage0)                        |\n| channel_get_name                   | Retrieve the channel name (e.g. vccint)                        |\n| channel_is_enabled                 | Returns True if the channel is enabled                         |\n| channel_get_type                   | Get the type of the given channel                              |\n| channel_disable                    | Disable the given channel                                      |\n| channel_enable                     | Enable the given channel                                       |\n| channel_get_attrs_count            | Enumerate the channel-specific attributes of the given channel |\n| channel_get_attr                   | Get the channel-specific attribute present at the given index  |\n| channel_attr_read                  | Read the content of the given channel-specific attribute       |\n|                                    |                                                                |\n| channel_attr_write_raw             | Set the value of the given channel-specific attribute          |\n| channel_attr_write                 | Set the value of the given channel-specific attribute          |\n\n\n### License\n\n[MIT](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrom%2Fnode-iio","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdrom%2Fnode-iio","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrom%2Fnode-iio/lists"}