jetgpio

Crates.iojetgpio
lib.rsjetgpio
version0.1.0
sourcesrc
created_at2024-11-08 11:27:32.961794
updated_at2024-11-08 11:27:32.961794
descriptionPeripheral Abstraction Layer for Jetson Nano Devices
homepage
repositoryhttps://github.com/BradenEverson/jetgpio
max_upload_size
id1441090
size22,841
Braden Everson (BradenEverson)

documentation

README

JetGpio

This crate provides a peripheral abstraction layer over the 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, which iteslf is built on top of the 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:
    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)

  • GPIO Input and Output Pins
  • PWM

Licence

This crate is published under the UNLICENSE, just as both of the underlying libraries.

Commit count: 15

cargo fmt