Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Implementation of the `embedded-hal` traits for Linux devices

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
NotificationsYou must be signed in to change notification settings

rust-embedded/linux-embedded-hal

crates.iocrates.ioDocumentationMinimum Supported Rust Version

linux-embedded-hal

Implementation of theembedded-hal traits for Linux devices

This project is developed and maintained by theEmbedded Linux team.

GPIO character device

Since Linux kernel v4.4 the use of sysfs GPIO was deprecated and replaced by the character device GPIO.Seegpio-cdev documentation for details.

This crate includes feature flaggpio_cdev that exposesCdevPin as wrapper aroundLineHandle fromgpio-cdev.To enable it update your Cargo.toml. Please note that in order to preventLineHandle fd from closing you shouldassign to a variable, seecdev issue for more details.

linux-embedded-hal = { version = "0.4", features = ["gpio_cdev"] }

SysfsPin can be still used with feature flaggpio_sysfs.

Withdefault-features = false you can enable the featuresgpio_cdev,gpio_sysfs,i2c, andspi as needed.

Minimum Supported Rust Version (MSRV)

This crate is guaranteed to compile on stable Rust 1.65.0 and up. Itmightcompile with older versions but that may change in any new patch release.

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submittedfor inclusion in the work by you, as defined in the Apache-2.0 license, shall bedual licensed as above, without any additional terms or conditions.

Code of Conduct

Contribution to this crate is organized under the terms of theRust Code ofConduct, the maintainer of this crate, theHAL team, promisesto intervene to uphold that code of conduct.

About

Implementation of the `embedded-hal` traits for Linux devices

Topics

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp