stub base station

This commit is contained in:
2025-03-25 13:25:54 -04:00
parent fa1a8807a2
commit 483e9d9475
4 changed files with 474 additions and 2 deletions

View File

@@ -1,3 +1,24 @@
fn main() {
println!("Hello, world!");
use ferris_says::say;
use std::io::{stdout, BufWriter};
mod sdr;
fn main() -> Result<(), Box<dyn std::error::Error>> {
let stdout = stdout();
let message = String::from("Welcome to the Cellular Revolution!");
let width = message.chars().count();
let mut writer = BufWriter::new(stdout.lock());
say(&message, width, &mut writer).unwrap();
// test SDR stuff
let device_args = sdr::find_device()?;
println!("Using device: {}", device_args);
let transmitter = sdr::SdrTransmitter::new(device_args, 0)?;
transmitter.transmit_tone(800e6, 1e6, 10e3)?;
Ok(())
}