Expand description
The Rust Industrial I/O crate for Linux.
This is a Rust wrapper for libiio, a library for high-performance analog I/O from Linux user-space. It interacts with Linux Industrial I/O (IIO) devices such as A/D’s, D/A’s, accelerometers, pressure and temperature sensors, magnetometers, and so on.
For more information, see:
§Default Features
- utilities - Whether to build the utility applications
- libiio_v0_24 - Use the bindings for libiio v0.24
§Optional Features
Note, if using alternate bindings for libiio, you must disable the default features, and only select one version.
- libiio_v0_25 - Use the bindings for libiio v0.25
- libiio_v0_24 - Use the bindings for libiio v0.24
- libiio_v0_23 - Use the bindings for libiio v0.23
- libiio_v0_21 - Use the bindings for libiio v0.21
- libiio_v0_19 - Use the bindings for libiio v0.19
Re-exports§
pub use crate::buffer::AttrIterator as BufferAttrIterator;
pub use crate::buffer::Buffer;
pub use crate::channel::AttrIterator as ChannelAttrIterator;
pub use crate::channel::Channel;
pub use crate::channel::ChannelType;
pub use crate::channel::DataFormat;
pub use crate::channel::Direction;
pub use crate::context::AttrIterator as ContextAttrIterator;
pub use crate::context::Backend;
pub use crate::context::Context;
pub use crate::context::DeviceIterator;
pub use crate::context::InnerContext;
pub use crate::device::AttrIterator as DeviceAttrIterator;
pub use crate::device::ChannelIterator;
pub use crate::device::Device;
pub use crate::errors::Error;
pub use crate::errors::Result;
pub use crate::scan_context::ScanContext;
pub use crate::scan_context::ScanContextIterator;
Modules§
- buffer
- Industrial I/O Buffers.
- channel
- Industrial I/O Channels
- context
- Industrial I/O Contexts.
- device
- Industrial I/O Devices
- errors
- Error definitions for the Industrial I/O Library.
- scan_
context - Scan context to get information about the available backends.
Structs§
- Version
- A struct to hold version numbers
Traits§
- From
Attribute - Trait to convert an attribute string to a typed value.
- ToAttribute
- Trait to convert a value to a proper attribute string.
Functions§
- library_
version - Gets the library version as (Major, Minor, Git Tag)