Created
June 1, 2015 18:06
-
-
Save Arnold1/835ebb37a222961bb33f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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