stub base station
This commit is contained in:
@@ -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(())
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user