Expand description
§hinawa crate
Rust API bindings and wrappers for hinawa library to operate 1394 OHCI hardware via Linux FireWire character device for asynchronous communication in IEEE 1394 bus.
The hinawa library version 4.0 is the minimum supported version for underlying library.
The hinawa crate is automatically generated by gir tool provided by gtk-rs project. Hinawa-4.0 file from hinawa library is used for the generation. But some functions are implemented manually.
§Usage
Add the following line to your Cargo.toml file:
[dependencies]
hinawa = "0.12"
The API documentation is available in https://docs.rs/hinawa/.
§License
The hinawa crate is released under MIT license.
§Dependency
The hinawa crate depends on API crates provided by gtk-rs project for type/object system, event loop, and dispacher.
§Repository
The hinawa crate is maintained by Takashi Sakamoto for upstream of Linux FireWire subsystem. The remote repository locates in https://git.kernel.org/pub/scm/libs/ieee1394/hinawa-rs.git/.
§Support
If finding issue, please file it in https://github.com/alsa-project/hinawa-rs which is the mirror of upstream for user support and continuous integration.
§Sample programs
Some programs are available under examples
directory.
-
read-quadlet.rs
- demonstration to read quadlet data from node in IEEE 1394 bus identified as
/dev/fw1
.
- demonstration to read quadlet data from node in IEEE 1394 bus identified as
-
read-quadlet-async.rs
- demonstration of the above example with async runtime.
Re-exports§
pub use ffi;
Modules§
- For convenience to provide auto-generated/manual traits, and their blanket implementations.
- For subclass implementations derived from provided class.
Structs§
- A boxed object to express data of cycle time.
- A FCP transaction executor to node in IEEE 1394 bus.
- An event listener for node in IEEE 1394 bus.
- A transaction executor to a node in IEEE 1394 bus.
- A transaction responder for request subaction initiated by node in IEEE 1394 bus.
Enums§
- A set of error code for
glib::Error
for operations inFwFcp
. - A set of error code for
glib::Error
for operations inFwNode
. - A representation for rcode of asynchronous transaction on IEEE 1394 bus.
- A set of error code for
glib::Error
for operations inFwReq
. - A set of error code for
glib::Error
for operations inFwResp
. - A representation for tcode of asynchronous transaction on IEEE 1394 bus.