#gpio #nvidia #jetson #jetgpio

sys jetgpio-sys

Low-level Rust bindings for https://github.com/Rubberazer/JETGPIO

5 releases

new 0.2.1 Apr 13, 2024
0.2.0 Apr 12, 2024
0.2.0-beta.0 Apr 8, 2024
0.1.1 Sep 23, 2023
0.1.0 Sep 23, 2023

#694 in Hardware support

Download history 1/week @ 2024-02-16 12/week @ 2024-02-23 9/week @ 2024-03-01 14/week @ 2024-03-08 6/week @ 2024-03-15 25/week @ 2024-03-29 81/week @ 2024-04-05

113 downloads per month

Unlicense

155KB
4.5K SLoC

C 4.5K SLoC // 0.1% comments Rust 32 SLoC // 0.3% comments Shell 3 SLoC // 0.4% comments

jetgpio-sys

This crate provides a low-level Rust interface to the JETGPIO package. That package provides memory-mapped (not file-based) access to NvidiaⓇ Jetson Nano™ or Jetson Orin Nano™ GPIO interface. On standard installations, this requires root access.

By default, the orin feature is disabled and Jetson Nano™ implementation is built. If the orin feature is enabled, then Orin support is built instead (and Nano support is not).

Clang is required in the compilation process.

Limitations

At run-time, root access is required in standard configurations, to be able to directly access the memory that controls the GPIO. Only Linux is supported by this crate.

The crate can be built to either work on Jetson Nano™ or Jetson Orin Nano™, but not both at the same time. Contributions to relax this limitation are welcome.

Licence

This crate is published under the UNLICENSE, just as the underlying library.

Disclaimer

This crate or its author is not affiliated, associated, authorized, endorsed by, or in any way officially connected with Nvidia, or its subsidiaries, or its affiliates. The official Jetson Nano™ page can be found at https://developer.nvidia.com/embedded/jetson-nano-developer-kit.

The names Nvidia, Jetson Nano, and Orin Nano, as well as related names, marks, emblems, and images belong to their respective owners.

Dependencies

~0–2MB
~39K SLoC