https://github.com/lora-rs/smtc-modem-cores
Provides Rust bindings to Semtech's SX12xx drivers written in C
https://github.com/lora-rs/smtc-modem-cores
Last synced: 6 days ago
JSON representation
Provides Rust bindings to Semtech's SX12xx drivers written in C
- Host: GitHub
- URL: https://github.com/lora-rs/smtc-modem-cores
- Owner: lora-rs
- Created: 2025-03-21T04:49:06.000Z (about 1 month ago)
- Default Branch: main
- Last Pushed: 2025-04-16T04:46:26.000Z (16 days ago)
- Last Synced: 2025-04-25T19:09:38.626Z (6 days ago)
- Language: Rust
- Size: 17.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# smtc-modem-cores
Provides Rust bindings to [Semtech's SX12xx drivers written in C](https://github.com/Lora-net/SWL2001).
## Setup & build dependencies
Be sure to initialize the git submodule and to install the build dependencies:
```bash
git submodule update --init --recursive
sudo apt-get update && sudo apt-get install -y --no-install-recommends cmake llvm-dev clang libclang-dev
```## Project layout
### smtc-modem-cores-sys
This submodule generates the Rust bindings to the C library:
- `SWL2001`, the underlying C code by Semtech is included as a git submodule
- `CMakeLists.txt` is manually maintained here and invoked by `smtc-modem-cores-sys/build.rs`; it cherry-picks the
necessary files for building the modem cores.### smtc-modem-cores
Makes the bindings generated by `smtc-modem-cores-sys` and creates a relatively safe Rust API for
users.