Crates.io | sx1262 |
lib.rs | sx1262 |
version | |
source | src |
created_at | 2024-12-09 07:10:14.015652 |
updated_at | 2024-12-13 01:16:59.16617 |
description | A embedded-hal driver for the Semtech SX1261/2 sub-GHz radio transceiver |
homepage | |
repository | https://github.com/BroderickCarlin/SX1261 |
max_upload_size | |
id | 1477053 |
Cargo.toml error: | TOML parse error at line 18, column 1 | 18 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include` |
size | 0 |
A type-safe embedded-hal driver for the Semtech SX1261/2 sub-GHz radio transceivers. This crate provides a robust interface for controlling these highly integrated, long range, low power radio transceivers designed for ISM band applications.
no_std
Compatible: Suitable for embedded systemsregiface
for reliable register accessAdd this to your Cargo.toml
:
[dependencies]
sx1262 = "0.1.0"
The driver is organized into modules for registers and commands:
use sx1262::{commands, registers};
// Configure radio in STDBY_RC mode
// Set packet type (LoRa/FSK)
// Configure RF frequency and modulation
// Set up packet format
// Configure DIO pins
// Enter RX/TX mode
use sx1262::commands::*;
use embedded_hal::spi::SpiDevice;
fn configure_radio<SPI>(spi: &mut SPI) -> Result<(), SPI::Error>
where
SPI: SpiDevice,
{
// Basic setup would go here
// This is a placeholder for actual implementation
Ok(())
}
registers: Hardware register definitions
commands: Control interface
Licensed under either of:
at your option.