Crates.io | ArmlabRadio |
lib.rs | ArmlabRadio |
version | 0.6.5 |
source | src |
created_at | 2022-08-20 07:20:12.499762 |
updated_at | 2022-10-17 04:28:51.707018 |
description | A library for interfacing with CC1200 Radios |
homepage | |
repository | https://github.com/explosion33/ArmLabCC1200 |
max_upload_size | |
id | 649074 |
size | 52,499 |
Libraries for interfacring with Armstrong Labs CC1200 based radios
Download with crates.io
https://crates.io/crates/ArmlabRadio
ArmLabCC1200 contains a set of libraries for interfacing with STM32 controlled CC1200 radios. An STM32 wired to a CC1200 chip, and flashed with the following code will be able to be controlled by
cargo run --example terminal
cargo run --features i2clib --example terminal
cargo run --example beacon
More exposed features on the radio
Platform independent library for C / C++
view the Latest design specifications, for an explanation on protocols, schematics, testing, and more
I2C (Linux)
use ArmlabRadio::radio_i2c::Radio;
fn main () {
let mut radio: Radio = Radio::new_rpi().unrwap();
radio.transmit(b"test message").expect("transmit error");
let packet = radio.get_packet().expect("read error");
println!("got message: \"{:?}\"", packet);
}
Serial
use ArmlabRadio::radio_serial::Radio;
fn main () {
let mut radio: Radio = Radio::new("COM 4").unrwap();
radio.transmit(b"test message").expect("transmit error");
let packet = radio.get_packet().expect("read error");
println!("got message: \"{:?}\"", packet);
}