Skip to content

Rust library providing raw access to BCM2709 SPI hardware in Linux via mmap(...) + memory IO.

License

Notifications You must be signed in to change notification settings

dpruessner/rust-bcm2709-spi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Overview

Sometimes it's a pain to get the kernel modules loaded for SPIDev on Raspberry Pi.

Sometimes you just need a quick way to access SPI devices.

This is a library for accessing SPI devices quickly, but with little regard to playing nice with other processes/peripherals. The access to the SPI peripheral is mmap()'d, without any provosion for mutual exclusion of the peripheral.

Initializiation will update GPIO registers for MUXing the pins to SPI functions. So don't use this with anything that uses the Linux GPIO drivers on the same pins as the SPI pins.

Interrupts are not implemented.

About

Rust library providing raw access to BCM2709 SPI hardware in Linux via mmap(...) + memory IO.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages