Skip to content

Instantly share code, notes, and snippets.

@Arnold1
Created June 1, 2015 18:06
Show Gist options
  • Save Arnold1/835ebb37a222961bb33f to your computer and use it in GitHub Desktop.
Save Arnold1/835ebb37a222961bb33f to your computer and use it in GitHub Desktop.
// from crates.io
extern crate mmap;
extern crate libc;
mod fpga_awg;
fn main() {
let mut awg = fpga_awg::fpgaAwg::new();
let mut params: fpga_awg::awgParam = fpga_awg::awgParam::default();
let mut data: [i32; fpga_awg::n] = [0; fpga_awg::n];
awg.syntesize_signal(1.0, 1000.0, &mut data, &mut params);
awg.write_data_fpga(0, &mut data, &mut params);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment