1 unstable release

0.1.0 Nov 8, 2024

#10 in #nano

Download history 57/week @ 2024-11-02 74/week @ 2024-11-09

131 downloads per month

Unlicense

10KB
170 lines

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.

Dependencies

~0.2–2.4MB
~50K SLoC