https://github.com/bradeneverson/jetgpio
Peripheral abstraction layer for the NVIDIA Jetson devices in Rust
https://github.com/bradeneverson/jetgpio
gpio jetson peripherals rust
Last synced: 3 months ago
JSON representation
Peripheral abstraction layer for the NVIDIA Jetson devices in Rust
- Host: GitHub
- URL: https://github.com/bradeneverson/jetgpio
- Owner: BradenEverson
- License: unlicense
- Created: 2024-11-07T14:32:52.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2025-01-02T12:14:05.000Z (6 months ago)
- Last Synced: 2025-03-26T10:11:20.487Z (4 months ago)
- Topics: gpio, jetson, peripherals, rust
- Language: Rust
- Homepage: https://crates.io/crates/jetgpio
- Size: 38.1 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# JetGpio
This crate provides a peripheral abstraction layer over the [jetgpio-sys](https://github.com/raoz/jetgpio-sys) crate to provide memory-mapped access to NvidiaⓇ Jetson Nano™ or Jetson Orin Nano™ GPIO interfaces.This library is built on top of [jetgpio-sys](https://github.com/raoz/jetgpio-sys), which iteslf is built on top of the [JETGPIO](https://github.com/Rubberazer/JETGPIO) package.
By default this crate assumes Jetson Nano usage. For interfacing with a Jetson Orin Nano, enable the `orin` feature flag.
## Requirements
* Clang
- Can be installed with `sudo apt-get install clang`
* sudo
- In order for the crate to work properly, you must run the code with sudo level permissions. The workflow I have personally been using so far is as follows:
```bash
cargo build
sudo ./target/debug/{MY_CRATE_HERE}
```
- The examples can be built and run in a very similar way.
* PWM
- For PWM to work currently, the `pwm.sh` shell script must be run## Currently Supported Interfaces (and those in progress)
- [x] GPIO Input and Output Pins
- [x] PWM
- [x] i2c (currently untested)## Licence
This crate is published under the [UNLICENSE](LICENSE), just as both of the underlying libraries.